Localization from regional settings?

  • Thread starter Thread starter Ole
  • Start date Start date
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
 
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;
 
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!
 
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.
 
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.
 
Back
Top