Localization from regional settings?

O

Ole

Hi,

Is it possible to let the application choose the language setting from
regional setting instead of of the OS user interface?

Thanks
Ole
 
P

Pavel Minaev

Is it possible to let the application choose the language setting from
regional setting instead of of the OS user interface?

Yes, you can just do the following at the beginning of your UI thread:

Thread.CurrentThread.CurrentCulture =
Thread.CurrentThread.CurrentUICulture;
 
M

Mihai N.

Is it possible to let the application choose the language setting from
regional setting instead of of the OS user interface?

Yes (see Pavel's answer).
But it is the wrong thing to do!
 
P

Pavel Minaev

Yes (see Pavel's answer).
But it is the wrong thing to do!

In theory, yes. In practice, depending on the region, many people ask
for it. E.g. in Russia there are quite a lot of English XP installs,
but users prefer to have as many applications as possible to be
localized nonetheless. In that case using CurrentUICulture to
distinguish an English Windows install of a user with a preference for
Russian from a typical English install is the only sensible thing to
do. Customers ask for it (and they want Russian to be there by
default), so we have to do it.
 
M

Mihai N.

In theory, yes. In practice, depending on the region, many people ask
for it. E.g. in Russia there are quite a lot of English XP installs,
but users prefer to have as many applications as possible to be
localized nonetheless. In that case using CurrentUICulture to
distinguish an English Windows install of a user with a preference for
Russian from a typical English install is the only sensible thing to
do. Customers ask for it (and they want Russian to be there by
default), so we have to do it.

The right thing is to "guess" based on the UI locale, and allow the
user to change that *in the application*
The CurrentCulture is for formatting number/date/time/etc.
 

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