Reputation: 2555
I am adding multi-language capabilities to my application, and I added all the text strings into the main english resource file, and then translated them into different languages. I now have about 8 folders with the name in this format "de-DE" and inside is the resource files for the corresponding language. Now that these are translated..What exactly do I do with them? How do I add them to my project so I can have different variations of my project, or have the user be able to switch languages? Thanks alot I really appreciate it.
Upvotes: 0
Views: 2179
Reputation: 292605
Just create a "Resources.xx.resx" file for each language "xx" and add them to your project. They will be compiled into YourAppName.resources.dll
files in directories for each language. The .NET resource system will pick them up automatically based on the current UI culture (Thread.CurrentUICulture
).
Upvotes: 1