tags:

views:

123

answers:

1

Dear all;

in my application i want to support 2 languages (English and arabic). For now i throw the english version of the help file in a cartain path what if i want the user choose the language he wants to install his application with and according to choise i'll throw the related chm file in that path.

also another part of the Q, can i do somthing like when you install an application it asks you the language then it throws only the related exe file.

thnx in advance

A: 

You didn't tell how you achieve localization in your application. Since you are developing in .NET I assume that you have a .resx file for every language containing all localized data. So why not install both help files and make the path to the help file a localized string in the resource file?

By the way, using localized resource files you will only have one executable to install. You can choose during the loading of your forms which language will be using by specifying the CultureInfo.CurrentUICulture accordingly, e.g. based on a config setting or registry key.

Concerning the second part of your question: You can have your user select the target language. This would set the config setting or registry key described above. However, changing the language during installation would not change the UI language of the MSI installer (I don't think this is supported *).

I would therefore recommend you to have a separate installer for each language or use a different install system (NSIS seems to be a good choice).

*) MSI can select the UI language automatically based on the Regional Settings defined for the user. However, this behaviour is not officially supported and teh way to achieve it is also a little complicated.

0xA3