Windows C++ Locale Function
LCID ConvertDefaultLocale(LCID Locale);
Internationalization (I18n) Function Overview
The ConvertDefaultLocale function converts the default locale
value specified by Locale to an actual locale identifier, and returns it. If there is an error, then
the function returns Locale .
The Locale argument must be one of the following predefined values:
LOCALE_SYSTEM_DEFAULT is the system's default locale;
LOCALE_USER_DEFAULT is the current user's default locale;
A sublanguage-neutral locale constructed by calling
MAKELCID with a primary language identifier,
such as LANG_ENGLISH , and the SUBLANG_NEUTRAL sublanguage identifier.
I18n Issues
Formulate the correct locale to pass into
ConvertDefaultLocale . Although there are two predefined locale constants
that may be used:
LOCALE_SYSTEM_DEFAULT
(the system's default locale returned by GetSystemDefaultLCID )
and LOCALE_USER_DEFAULT (the current user's default locale returned by
GetUserDefaultLCID ),
neither of these should be used in an internationalized application where the locale is independent of
the user's system settings.
Recommended Replacements*
There are no variations of the function call.
*If you're already using the recommended function, see I18n Issues for other reasons why Globalyzer is detecting the function.
|