© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y 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));
var rm = new ResourceManager(typeof(MyClient.WPF.Properties.Resources));

rm.GetString("foo", System.Globalization.CultureInfo.DefaultThreadCurrentUICulture)
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
Resources.es.resx
initially both resource files were set to
EmbeddedResource
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
Resource
instead of embedded but that doesn't seem to be detected at runtime, and it dumps into a
/Properties
/Properties
folder. even when I copy the
Resources.es.resx
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
Programmatic way to get all the available languages (in satellite a...
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ WPF Image with resource file .resx
C#CC# / help
3y ago
Dockerfile build complains about missing resx files, even without any mention of resx files
C#CC# / help
3w ago
Work with .resx Resource files on vscode
C#CC# / help
2y ago
Resx file problems
C#CC# / help
2y ago