Search code examples
c#winformslocalizationinstallationmultilingual

Howto install single language of multilingual WinForms application


I have a WinForms application, which I need to support in multiple languages. I would love to have a possibility to offer to the user during the installation setup (default Visual studio setup project) selection of a language he wants to install. Afterwards, application will use this language rather than choosing language based on system language.

Currently, I have application localized with standard WinForms localization + some custom resources for messages. This will produce satellite assemblies for me.

What would be the best practice for what I would like to achieve?

Best, Jozef


Solution

  • On a first shot i would save the selected language in the registry or the .config file.

    Then within the program.cs before starting Application.Run() i would read this information and change the CultureInfo.CurrentCulture to this setting.