Locale

From Free net encyclopedia

(Difference between revisions)
Revision as of 07:19, 12 April 2006
Unixguy (Talk | contribs)
See also - add link to list of unix programs
← Previous diff
Current revision
Unixguy (Talk | contribs)
See also - add link to list of unix programs

Current revision

This page is about locales as used in software localization. For the use of the term locale in order theory and pointless topology, see complete Heyting algebra.

In computing, locale is a set of parameters that defines the user's language, country and any special variant preferences that the user wants to see in their user interface. Usually a locale identifier consists of at least a language identifier and a region identifier.

Locale identifiers can be defined in several ways:

  • Locale Identifier (LCID) for unmanaged code on Microsoft Windows, a number such as 1033 for English (United States) or 1041 for Japanese (Japan). These numbers consist of a language code (lower 10 bits) and culture code (upper bits) and are therefore often written in hexadecimal notation, such as 0x0409 or 0x0411.
  • In XML, Microsoft .NET, Java and other Unicode-based environments, they are defined in a format similar to RFC 3066 or one of its successors. They are usually defined with just ISO 639 and ISO 3166-1 alpha-2 codes.
  • On Unix, Linux and other POSIX-type platforms, they are defined similar to the RFC 3066 definition, but the locale variant modifier is defined differently, and the charset is included as a part of the identifier. It is defined in this format:
[language[_territory][.codeset][@modifier]].

See also

External links

Template:Wiktionary

fr:Paramètres régionaux pt:Locale