Reputation: 175
I have window-7 Ultimate OS.I written below code for get current culture info.
void TestMessage()
{
CultureInfo culture = CultureInfo.CurrentCulture;
CultureInfo culture1 = Thread.CurrentThread.CurrentCulture;
}
it is working fine with window-8,server 2012 Japanese OS. But it is not working in window-7 only. Please look below image of my computer region setting
Can any anyone guide me to get correct culture name?
Thanks,
Upvotes: 0
Views: 748
Reputation: 432
There's CurrentCulture and CurrentUICulture.
Your screenshot:
So, if you need to know what language to use for localization, as is probably your case, you should be using CurrentUICulture.
Upvotes: 1