From 823b57c6db60df36a3f353b789b6d81e735e6e3c Mon Sep 17 00:00:00 2001 From: zeromus Date: Sat, 18 Apr 2009 23:32:14 +0000 Subject: [PATCH] win32: try to fix language selection. works in xp; need to verify in vista --- desmume/src/windows/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/desmume/src/windows/main.cpp b/desmume/src/windows/main.cpp index ce9a81d07..98c510587 100644 --- a/desmume/src/windows/main.cpp +++ b/desmume/src/windows/main.cpp @@ -1262,14 +1262,17 @@ void SetLanguage(int langid) case 1: // French setLanguage(MAKELCID(MAKELANGID(LANG_FRENCH, SUBLANG_FRENCH), SORT_DEFAULT)); + SetThreadLocale(MAKELCID(MAKELANGID(LANG_FRENCH, SUBLANG_FRENCH), SORT_DEFAULT)); break; case 2: // Danish setLanguage(MAKELCID(MAKELANGID(LANG_DANISH, SUBLANG_DEFAULT), SORT_DEFAULT)); + SetThreadLocale(MAKELCID(MAKELANGID(LANG_DANISH, SUBLANG_DEFAULT), SORT_DEFAULT)); break; case 0: // English setLanguage(MAKELCID(MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US), SORT_DEFAULT)); + SetThreadLocale(MAKELCID(MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US), SORT_DEFAULT)); break; default: break; break;