C
C#2y ago
Maslow

Wpf Resx files

I'm using in a C# Wpf Project's Properties -> Resources.resx 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 available Any idea how to get this to work with xml .resx files?
Stack Overflow
Programmatic way to get all the available languages (in satellite a...
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
0 Replies
No replies yetBe the first to reply to this messageJoin