Difference between revisions of "Internationalization/locale"
m (Category) |
(→Format of locale on OS's (from wikipedia: [http://en.wikipedia.org/wiki/Locale Locale])) |
||
Line 7: | Line 7: | ||
* windows (for unmanaged code): hexadecimal code consisting of a language code (lower 10 bits) and culture code (upper bits), aka Locale Identifier (LCID) | * windows (for unmanaged code): hexadecimal code consisting of a language code (lower 10 bits) and culture code (upper bits), aka Locale Identifier (LCID) | ||
* linux, unix: defined as [language[_territory][.codeset][@modifier]] | * linux, unix: defined as [language[_territory][.codeset][@modifier]] | ||
+ | |||
+ | == Where to find locale == | ||
+ | === Linux === | ||
+ | the environment variable is LANG | ||
+ | |||
+ | here is a list for more specific variables: | ||
+ | |||
+ | {| border="0" cellspacing="3" cellpadding="5" align="left" | ||
+ | ! '''Locale category''' | ||
+ | ! '''Application''' | ||
+ | |- | ||
+ | |LC_COLLATE | ||
+ | |Collation of strings (sort order.) | ||
+ | |- | ||
+ | |LC_CTYPE | ||
+ | |Classification and conversion of characters. | ||
+ | |- | ||
+ | |LC_MESSAGES | ||
+ | |Translations of yes and no. | ||
+ | |- | ||
+ | |LC_MONETARY | ||
+ | |Format of monetary values. | ||
+ | |- | ||
+ | |LC_NUMERIC | ||
+ | |Format of non-monetary numeric values. | ||
+ | |- | ||
+ | |LC_TIME | ||
+ | |Date and time formats. | ||
+ | |- | ||
+ | |LC_ALL | ||
+ | |Sets all of the above (overrides all of them.) | ||
+ | |- | ||
+ | |LANG | ||
+ | |Sets all the categories, but can be overridden by the individual locale categories. | ||
+ | |} | ||
== Useful links == | == Useful links == | ||
* [http://www-950.ibm.com/software/globalization/icu/demo/locales info] about what's contained in a locale (language codes, time format,...) | * [http://www-950.ibm.com/software/globalization/icu/demo/locales info] about what's contained in a locale (language codes, time format,...) | ||
* [http://en.wikipedia.org/wiki/Date_and_time_notation_by_country date and time notations] | * [http://en.wikipedia.org/wiki/Date_and_time_notation_by_country date and time notations] |
Revision as of 06:14, 19 June 2006
Contents
Definition (from wikipedia: Locale)
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.
Format of locale on OS's (from wikipedia: Locale)
- windows (for unmanaged code): hexadecimal code consisting of a language code (lower 10 bits) and culture code (upper bits), aka Locale Identifier (LCID)
- linux, unix: defined as [language[_territory][.codeset][@modifier]]
Where to find locale
Linux
the environment variable is LANG
here is a list for more specific variables:
Locale category | Application |
---|---|
LC_COLLATE | Collation of strings (sort order.) |
LC_CTYPE | Classification and conversion of characters. |
LC_MESSAGES | Translations of yes and no. |
LC_MONETARY | Format of monetary values. |
LC_NUMERIC | Format of non-monetary numeric values. |
LC_TIME | Date and time formats. |
LC_ALL | Sets all of the above (overrides all of them.) |
LANG | Sets all the categories, but can be overridden by the individual locale categories. |
Useful links
- info about what's contained in a locale (language codes, time format,...)
- date and time notations