U++ framework - RDF feed
type: channel
description: Do not panic. Ask here before giving up.
items: How to retrieve current language?
items: Re: How to retrieve current language?

How to retrieve current language?
type: item
description: 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?
creator: cdoty
date: 2008-04-23T17:17:37-00:00

Re: How to retrieve current language?
type: item
description: 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
creator: mirek
date: 2008-04-24T03:23:12-00:00

Re: How to retrieve current language?
type: item
description: 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.
creator: cdoty
date: 2008-04-24T15:43:06-00:00

Re: How to retrieve current language?
type: item
description: LNGAsText(0xF8320C) = PL-PL windows-1250 LNGAsText(0x112BAB3) = EN-US windows-1252 What is wrong then? Mirek
creator: mirek
date: 2008-04-26T08:22:00-00:00

Re: How to retrieve current language?
type: item
description: I use this construction String(ToLower(LNGAsText(GetCurrentLanguage()& 0xfffff))) This return 'en' or 'ru' in string format.
creator: sergeynikitin
date: 2008-05-07T22:25:39-00:00