Wpf Resx files
I'm using in a C# Wpf Project's Properties -> Resources.resx
Using this to get the list of available cultures so they can be changed for one section of the app on the fly: https://stackoverflow.com/questions/553244/programmatic-way-to-get-all-the-available-languages-in-satellite-assemblies/11047894#11047894
I added a
but I wanted them to be simple editable xml files so the client could customize translations. I tried changing it to
Any idea how to get this to work with xml .resx files?
var rm = new ResourceManager(typeof(MyClient.WPF.Properties.Resources));rm.GetString("foo", System.Globalization.CultureInfo.DefaultThreadCurrentUICulture)Using this to get the list of available cultures so they can be changed for one section of the app on the fly: https://stackoverflow.com/questions/553244/programmatic-way-to-get-all-the-available-languages-in-satellite-assemblies/11047894#11047894
I added a
Resources.es.resx initially both resource files were set to EmbeddedResource with copy never.but I wanted them to be simple editable xml files so the client could customize translations. I tried changing it to
Resource instead of embedded but that doesn't seem to be detected at runtime, and it dumps into a /Properties folder. even when I copy the Resources.es.resx up to the app root, it doesn't detect it as being availableAny idea how to get this to work with xml .resx files?
Stack Overflow
I'm designing a multilingual application using .resx files.
I have a few files like GlobalStrings.resx, GlobalStrings.es.resx, GlobalStrings.en.resx, etc.
When I want to use this, I just need to set
I have a few files like GlobalStrings.resx, GlobalStrings.es.resx, GlobalStrings.en.resx, etc.
When I want to use this, I just need to set