Difference between revisions of "LanguageSpecification"
From LogicalDOC Community Wiki
Jump to navigationJump to search (New page: ==Language Specification== LogicalDOC can handle a wide set of different languages and variants. A language specifications is a string that follows this format: <b><language></b>(_<b><cou...) |
m |
||
Line 7: | Line 7: | ||
* The country part(optional) is a valid ISO Country Code. These codes are the upper-case, two-letter codes as defined by ISO-3166. You can find a full list of these codes at a number of sites, such as: http://www.iso.ch/iso/en/prods-services/iso3166ma/02iso-3166-code-lists/list-en1.html | * The country part(optional) is a valid ISO Country Code. These codes are the upper-case, two-letter codes as defined by ISO-3166. You can find a full list of these codes at a number of sites, such as: http://www.iso.ch/iso/en/prods-services/iso3166ma/02iso-3166-code-lists/list-en1.html | ||
− | + | For example: | |
− | * English | + | * English is represented by <tt>en</tt> |
− | * Italian | + | * Italian is represented by <tt>it</tt> |
− | * Spanish | + | * Spanish is represented by <tt>es</tt> |
− | * Portuguese | + | * Portuguese is represented by <tt>pt</tt> |
− | * Brazilian | + | * Brazilian is represented by <tt>pt_BR</tt> |
Revision as of 07:44, 27 April 2011
Language Specification
LogicalDOC can handle a wide set of different languages and variants. A language specifications is a string that follows this format: <language>(_<country>)?
- The language argument is a valid ISO Language Code. These codes are the lower-case, two-letter codes as defined by ISO-639. You can find a full list of these codes at a number of sites, such as: http://www.loc.gov/standards/iso639-2/englangn.html
- The country part(optional) is a valid ISO Country Code. These codes are the upper-case, two-letter codes as defined by ISO-3166. You can find a full list of these codes at a number of sites, such as: http://www.iso.ch/iso/en/prods-services/iso3166ma/02iso-3166-code-lists/list-en1.html
For example:
- English is represented by en
- Italian is represented by it
- Spanish is represented by es
- Portuguese is represented by pt
- Brazilian is represented by pt_BR