win32: try to fix language selection. works in xp; need to verify in vista
This commit is contained in:
parent
6a03c7ff09
commit
823b57c6db
|
@ -1262,14 +1262,17 @@ void SetLanguage(int langid)
|
||||||
case 1:
|
case 1:
|
||||||
// French
|
// French
|
||||||
setLanguage(MAKELCID(MAKELANGID(LANG_FRENCH, SUBLANG_FRENCH), SORT_DEFAULT));
|
setLanguage(MAKELCID(MAKELANGID(LANG_FRENCH, SUBLANG_FRENCH), SORT_DEFAULT));
|
||||||
|
SetThreadLocale(MAKELCID(MAKELANGID(LANG_FRENCH, SUBLANG_FRENCH), SORT_DEFAULT));
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
// Danish
|
// Danish
|
||||||
setLanguage(MAKELCID(MAKELANGID(LANG_DANISH, SUBLANG_DEFAULT), SORT_DEFAULT));
|
setLanguage(MAKELCID(MAKELANGID(LANG_DANISH, SUBLANG_DEFAULT), SORT_DEFAULT));
|
||||||
|
SetThreadLocale(MAKELCID(MAKELANGID(LANG_DANISH, SUBLANG_DEFAULT), SORT_DEFAULT));
|
||||||
break;
|
break;
|
||||||
case 0:
|
case 0:
|
||||||
// English
|
// English
|
||||||
setLanguage(MAKELCID(MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US), SORT_DEFAULT));
|
setLanguage(MAKELCID(MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US), SORT_DEFAULT));
|
||||||
|
SetThreadLocale(MAKELCID(MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US), SORT_DEFAULT));
|
||||||
break;
|
break;
|
||||||
default: break;
|
default: break;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue