Link to home
Avatar of -Karamja-
-Karamja-

asked on

LCID Locate...

Hello,

I have coders block and really cant think at the moment, so a helping hand might be nice :)

I get a systems LCID using GetSystemDefaultLCID(); but then how can I convert this into its three letter abbreviation.

For example,

English LCID 0809 returns ENG
English LCID 0409 returns ENU
French LCID 040C reutrns FRA

Many thanks.
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Ooops, forgot:

LOCALE_SABBREVLANGNAME
Abbreviated name of the language, created by taking the 2-letter language abbreviation from the ISO Standard 639 and adding a third letter, as appropriate, to indicate the sublanguage.

BTW, see also http://www.microsoft.com/globaldev/reference/winxp/langtla.mspx ("List of Windows XP's Three Letter Acronyms for Languages") and http://msdn.microsoft.com/library/en-us/intl/nls_34rz.asp ("GetLocaleInfo")
Avatar of -Karamja-
-Karamja-

ASKER

Cheers perfect :)