Search code examples
c#globalization

Which is the best way to use the Culture Globalization for winforms c#


I want to make my application which supports all the languages based on the resx file. If not resx file is available it has to take the default language from the display language set in the control panel. How can I do this? Which is the best way to do it?


Solution

  • You can't.

    The default language in the control panel is the language that is going to be used automatically (unless you change the UI culture).

    However, what do you expect the application to do if the default windows language cannot be found?

    You have to create a resource file which do not have the language suffix (just yourResource.resx and not yourResource.fi.resx). The resource files without the prefix will be used if the chosen language is not found.