Can user change localized resources at runtime?

May 7, 2012 at 7:55 PM

I see that your method is using resx files, which are normally compiled. Is it somehow possible to allow user to change the translation at runtime for all translations, even the neutral (fallback) resource? And is it possible to have to different translations for one culture?

Coordinator
May 8, 2012 at 6:59 AM

For different cultures BAMLs - precompiled XAML resources - are generated during compilation.

This means that at runtime they cannot be changed.

I'd recommend to consider using custom XAML extension for your scenario. E.g. http://wpflocalizeextension.codeplex.com/ combined with http://wpflocalizeaddin.codeplex.com/.

Besides, Easy BAML uses resx files, but let this doesn't confuse you: they used for generation of BAMLs and not compliled as embedded resources as other resx files.With same success it is possible to use CSV files like in standard BAML localization. Resx files were selected because they are widely supported by different translation tools.