it seems there are a number of approaches on how to implement multiple languages in a WPF application. But I would like some more information about what method I should be using with the following requirements:
- It’s a PRISM application, so a number of independent modules (assemblies) working together. I would like that each assembly has its own translations of UI elements.
- I need a simple approach, no tools needed to generate stuff
- Should still be able to use blend to design the UI
- Optionally be able to switch language without restarting the application (not a dealbreaker)
Can someone advice me on how to achieve this?
Thanks!
Meanwhile I found an open source project that works really well: http://wpflocalizeextension.codeplex.com. It’s just adding a reference to the dll, adding the resources with translations, and using it in XAML. It worked in 5 minutes. I can add multiple resources to individual modules; and it works fine in visual studio designer and blend. And, locale can be changed on the fly. Meets my requirements 🙂