diff --git a/src/common/intl.cpp b/src/common/intl.cpp index a4bab1bafb..fbe672550e 100644 --- a/src/common/intl.cpp +++ b/src/common/intl.cpp @@ -473,7 +473,12 @@ bool wxLocale::Init(int language, int flags) // behavior, so avoid calling it there. if ( wxGetWinVersion() >= wxWinVersion_Vista ) { - ::SetThreadUILanguage(LANGIDFROMLCID(lcid)); + wxLoadedDLL dllKernel32(wxS("kernel32.dll")); + typedef LANGID(WINAPI *SetThreadUILanguage_t)(LANGID); + SetThreadUILanguage_t pfnSetThreadUILanguage = NULL; + wxDL_INIT_FUNC(pfn, SetThreadUILanguage, dllKernel32); + if (pfnSetThreadUILanguage) + pfnSetThreadUILanguage(LANGIDFROMLCID(lcid)); } // and also call setlocale() to change locale used by the CRT