Internationalization and localization tools


Windows C++ Locale Function

LCID GetThreadLocale(void);

Internationalization (I18n) Function Overview

The GetThreadLocale function retrieves the current locale of the calling thread. Initially, the thread locale is set to the user's default locale; the locale identifier that is returned from GetUserDefaultLCID.

I18n Issues

In an internationalized application, the desired locale may be different from the user's default locale. Call SetThreadLocale to initialize the thread's locale to the desired locale, and then pass that locale identifier when making Win32 locale-dependent calls.

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.

Windows C++ Locale Functions

 

Lingoport internationalization and localization services and software