Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Libraries and TheIDE: i18n, Unicode and Internationalization » How to retrieve current language?
How to retrieve current language? [message #15437] Wed, 23 April 2008 19:17 Go to next message
cdoty is currently offline  cdoty
Messages: 23
Registered: April 2008
Location: Houston, TX
Promising Member

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?



a3e77f341aa1d91d0388a0c8b786e8b5
Re: How to retrieve current language? [message #15450 is a reply to message #15437] Thu, 24 April 2008 05:23 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
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
Re: How to retrieve current language? [message #15453 is a reply to message #15450] Thu, 24 April 2008 17:43 Go to previous messageGo to next message
cdoty is currently offline  cdoty
Messages: 23
Registered: April 2008
Location: Houston, TX
Promising Member

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.


a3e77f341aa1d91d0388a0c8b786e8b5
Re: How to retrieve current language? [message #15491 is a reply to message #15453] Sat, 26 April 2008 10:22 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
LNGAsText(0xF8320C) = PL-PL windows-1250
LNGAsText(0x112BAB3) = EN-US windows-1252

What is wrong then?

Mirek
Re: How to retrieve current language? [message #15802 is a reply to message #15491] Thu, 08 May 2008 00:25 Go to previous message
sergeynikitin is currently offline  sergeynikitin
Messages: 748
Registered: January 2008
Location: Moscow, Russia
Contributor

I use this construction

String(ToLower(LNGAsText(GetCurrentLanguage()& 0xfffff)))


This return 'en' or 'ru' in string format.


SergeyNikitin<U++>( linux, wine )
{
    under( Ubuntu || Debian || Raspbian );
}
Previous Topic: cjk - XIM - upp only process one character
Next Topic: Japanese IME test code
Goto Forum:
  


Current Time: Thu Mar 28 17:32:05 CET 2024

Total time taken to generate the page: 0.01531 seconds