The Cookies Dog
The Cookies Dog

Reputation: 1940

Installed OS Language with Language Pack installed?

When the user has an en-US Windows 7 version, the "CultureInfo.InstalledUICulture" function reports back en-US even when you have installed a different language pack (such as nl-NL). Is there a .NET/PInvoke method to get the language the current user is actually using (preferably as a CultureInfo class)? I also can't rely on the CultureInfo.CurrentUICulture as this can be changed by the user.

Upvotes: 0

Views: 983

Answers (1)

The Cookies Dog
The Cookies Dog

Reputation: 1940

Use "GetUserDefaultUILanguage" with:

CultureInfo.GetCultureInfo(GetUserDefaultUILanguage());

Upvotes: 1

Related Questions