From 92c6bc62762532c80ace44e60cb2ee449ae8b39b Mon Sep 17 00:00:00 2001 From: Heiko Hund Date: Thu, 15 Apr 2010 20:28:11 +0200 Subject: [PATCH] set gui language for common controls as well --- localization.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/localization.c b/localization.c index fc6cbfd..dac6f81 100644 --- a/localization.c +++ b/localization.c @@ -19,8 +19,11 @@ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#define _WIN32_IE 0x0500 + #include #include +#include #include #include #include @@ -72,6 +75,7 @@ GetGUILanguage(void) GetRegistryValueNumeric(regkey, _T("ui_language"), &value); gui_language = ( value != 0 ? value : LANGIDFROMLCID(GetSystemDefaultLCID()) ); + InitMUILanguage(gui_language); return gui_language; } @@ -85,6 +89,7 @@ SetGUILanguage(LANGID langId) ShowLocalizedMsg(IDS_ERR_CREATE_REG_HKCU_KEY, GUI_REGKEY_HKCU); SetRegistryValueNumeric(regkey, _T("ui_language"), langId); + InitMUILanguage(langId); gui_language = langId; }