how do I select the required language pack for my application

  • Thread starter Thread starter Wiktor Zychla
  • Start date Start date
W

Wiktor Zychla

I've downloaded and installed several language pack for .NET Framework 1.1.
I've noticed that this is legal to install several language packs over the
same framework.

but how do I select the required one for my application? Now it seems that
the framework selects one of the language packs automatically, depending on
my OS language version, I suppose. how do I override the selection?

is it possible at all to run the application with, say, Italian language
pack, and then run it again with French language pack?

Thanks for your help,
Wiktor Zychla
 
Hi Wiktor,


What language resource is used on your app is decided by
System.Threading.Thread.CurrentThread.CurrentUICulture.
Also formating language such as date/time, number formattings are controled
by System.Threading.Thread.CurrentThread.CurrentCulture.
Default values are coming from OS UI locale and User locale.
You can override those values in your code like below.

System.Threading.Thread.CurrentThread.CurrentUICulture = new
System.Globalization.CultureInfo("fr-FR"); // explicitely change to French.

Thanks,
Tadao
--------------------
 
Back
Top