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:
|
||||
// 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;
|
||||
|
|
Loading…
Reference in New Issue