Click to Rate and Give Feedback
MSDN
MSDN Library
Windows Development
 Language Identifiers
Language Identifiers

A language identifier is a standard international numeric abbreviation for the language in a country or geographical region. Each language has a unique language identifier (data type LANGID), a 16-bit value that consists of a primary language identifier and a sublanguage identifier. For details of language identifiers, see Language Identifier Constants and Strings.

A language identifier is constructed using the MAKELANGID macro. The following illustration shows the format of the bits in a language identifier.


+-------------------------+-------------------------+
|     SubLanguage ID      |   Primary Language ID   |
+-------------------------+-------------------------+
15                    10  9                         0   bit

The following are predefined language identifiers:

  • LANG_SYSTEM_DEFAULT. The operating system default language.
  • LANG_USER_DEFAULT. The language of the current user.

Your application can retrieve the current language identifiers by using the Multilingual User Interface functions.

Related topics

Locales and Languages
Language Identifier Constants and Strings
Multilingual User Interface
MAKELANGID

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Community Content   What is Community Content?
Add new content RSS  Annotations
1255      Doron Ben Meir   |   Edit   |   Show History
אבגד
Tags What's this?: Add a tag
Flag as ContentBug
Processing
© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker