How to change CurrentCulture?

S

Serge Wautier

Env.: CF 3.5 / VS 2008

Hi All,

I need to localize the app I'm working on to a couple of languages. I
created a first satellite DLL and wanted to give it a test.
That's where I realize that Thread.CurrentCulture is not supported by the
CF. How do I programmatically specify which language should be loaded?

TIA,

Serge Wautier.
 
S

Simon Hart [MVP]

You can't. You have to manually change it on the device, then restart the
app. There might be (probably is a way) to programmatically change the
region settings.
 
S

Serge Wautier

Simon,

Thanks for your reply. Even though it's bad news :-(
Does VS2008 make it possible to recompile the exe using resources for
another languages (instead of creating resource dlls)?

TIA,

Serge.
 
S

Stanislav Nikodem

set Culture property of your resources
MyApp.MyStringResources.Culture = new System.Globalization.CultureInfo(
"en" );

Stanislav Nikodem
 

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