Reputation: 1077
I have a winform, C# application that I would like to have run in localised languages. The target .Net is 3.0 as a lot of my users are still using XP. The application is a system tray application.
I have put all the strings into a Resources.resx and have generated Resources.XX.resx files for the different languages I need, using ResX Resource Manager.
If I set the CurrentUICulture to another language (i.e. Finnish) using the code:
Thread.CurrentThread.CurrentUICulture = new CultureInfo("fi-FI");
It works as expected and shows all the forms in Finnish.
However if I install the application on a machine with the Language set as Finnish all of the winforms come up with te English strings (English is also the neutral string)
I have checked that the forms have the property localizable set to true.
Why does it work for when I hardcode the CurrentUICulture but not when I don't?
Is there an alternative way to check the UI language of the PC and update the application CurrentUICulture?
Upvotes: 0
Views: 193
Reputation: 3756
You can set Locate and Language on form, It will display by language of windows
Upvotes: 1