Click here to Skip to main content
15,888,527 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have to write an application in specific language base on its computer locale. But I have no idea how to get LCID or system locale in sandbox environment.
In desktop app, I use this to get info, Does Metro have something similar to this ? Any idea ?

C#
WqlObjectQuery objectQuery = new WqlObjectQuery("select * from win32_OperatingSystem");
ManagementObjectSearcher searcher = new ManagementObjectSearcher(objectQuery);
foreach (ManagementObject MO in searcher.Get())
{
    string locale = MO["locale"] + string.Empty;
}
Posted
Updated 16-Jan-12 21:32pm
v2

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900