how do I select the required language pack for my application

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
 
T

Tadao Machida [MS]

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
--------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top