Do not panic. Ask here before giving up.
I'm using Windows XP with MUI pack installed. When I use either GetSystemLNG() or GetCurrentLanguage(), GetLangName() returns English. What function do I use to retrieve the current language setting?
cdoty wrote on Wed, 23 April 2008 13:17 I'm using Windows XP with MUI pack installed. When I use either GetSystemLNG() or GetCurrentLanguage(), GetLangName() returns English. What function do I use to retrieve the current language setting? GetSystemLNG should work. Maybe it does not with MUI. Could you check the GetSystemLNG code please? Mirek
luzr wrote on Wed, 23 April 2008 22:23 Could you check the GetSystemLNG code please? GetSystemLNG returns 0xF8320C for Polish and 0x112BAB3 for English.
LNGAsText(0xF8320C) = PL-PL windows-1250 LNGAsText(0x112BAB3) = EN-US windows-1252 What is wrong then? Mirek
I use this construction String(ToLower(LNGAsText(GetCurrentLanguage()& 0xfffff))) This return 'en' or 'ru' in string format.