Set Regional Settings but not Language

S

sippyuconn

Hi

I have a multi-language APP
en-US, es-ES, it-IT

I usually change Languages and Locales by using the CultureInfo
to switch Languages

System.Globalization.CultureInfo myCI = new
System.Globalization.CultureInfo("es-ES");

My issue is - what if the user wants to View App in english and use the
Regional Options on a PC in say Spain ???

If I change the CultureInfo to en-US then they can view APP in English (
English satelite assemblies) but date and numbers will be in US format

If I change the CultureInfo to es-ES then date and numbers will be in Spain
format which is correct but the APP language will be Spainish ( Spainish
satelite assemblies)

What I want is to change the Language of the App thru a setting
en-US,es-ES,it-IT but the regional settings be pulled from what is set in
Control Panel -> Regional Options


Thanks
 
C

Colbert Zhou [MSFT]

Hello

The managed support service of the newsgroup
microsoft.public.dotnet.languages.csharp is now available instead on C#:
http://social.msdn.microsoft.com/Forums/en-US/category/visualcsharp.

Would you please repost the question in the forum with the Windows Live ID
used to access your Subscription benefits? Our engineers will assist you in
the new platform. The article
http://msdn.microsoft.com/en-us/subscriptions/aa974230.aspx introduces more
information about the migration. In the future, please post your C#-related
questions directly to the forums. If you have any questions or concerns,
please feel free to contact us: (e-mail address removed).


Regards,
Colbert Zhou
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).
 
M

Mihai N.

My issue is - what if the user wants to View App in english and use the
Regional Options on a PC in say Spain ???

Thread::CurrentUICulture sets the locale for the UI
Thread::CurrentUICulture sets the locale for the regional options
(formatting, sorting, etc.)
 
J

Johnny J.

I think you mean:

Thread.CurrentUICulture sets the locale for the UI
Thread.CurrentCulture sets the locale for the regional options
(formatting, sorting, etc.)

Cheers,
Johnny J.
 
M

Mihai N.

I think you mean:
Thread.CurrentUICulture sets the locale for the UI
Thread.CurrentCulture sets the locale for the regional options
(formatting, sorting, etc.)

Sorry. Yes, you are right.
 

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