Setting thread culture to default
Posted
by synergetic
on Stack Overflow
See other posts from Stack Overflow
or by synergetic
Published on 2010-04-06T05:06:25Z
Indexed on
2010/04/06
5:13 UTC
Read the original article
Hit count: 376
Silverlight
|globalization
In silverlight application I have MyTexts.resx (for english) and MyTexts.ja-JP.resx (for japanese) resource files. Before loading a page I can set current culture to japanese as following:
Thread.CurrentThread.CurrentCulture = new CultureInfo("ja-JP");
Thread.CurrentThread.CurrentUICulture = new CultureInfo("ja-JP");
But sometimes I need to reset culture to default. How can I do that? The following wouldn't work:
Thread.CurrentThread.CurrentCulture = new CultureInfo("default");
OR
Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");
© Stack Overflow or respective owner