Как определить локализацию ОС: английская или русская?

Используй функцию GetSystemDefaultLangID(). Ниже небольшой примерчик.

#include <windows.h>
#include <iostream>

using namespace std;

void main()
{
cout << GetSystemDefaultLangID() << '\n';
cout << MAKELANGID(LANG_RUSSIAN, SUBLANG_DEFAULT) << '\n';
cout << MAKELANGID(LANG_ENGLISH, SUBLANG_DEFAULT) << '\n';
}
Also, you must decide on a default language for your application to use during application initialization. This requires a fallback in case the requested language is not available. To detect which UI languages are installed, call EnumUILanguages. To determine the user default and system default UI languages, use GetUserDefaultUILanguage and GetSystemDefaultUILanguage, respectively. For earlier platforms, check the registry to determine the interface language of the system: on Windows 95/98/Me, use the language of the resource locale (HKEY_CURRENT_USER\Control Panel\desktop\ResourceLocale) and on Windows NT use the locale of the default user (HKEY_USERS\.DEFAULT\Control Panel\International\Locale).

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/intl/nls_0xrn.asp


TopList Rambler's Top100