Difference between revisions of "LanguageSpecification"
From LogicalDOC Community Wiki
Jump to navigationJump to searchm |
(→Language Specification) |
||
Line 1: | Line 1: | ||
==Language Specification== | ==Language Specification== | ||
− | LogicalDOC can handle a wide set of different languages and variants. A language | + | LogicalDOC can handle a wide set of different languages and variants. A language specification is a string that follows this format: <b><language></b>(_<b><country></b>)? |
− | * The language | + | * The language part(mandatory) 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 | * 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 |
Latest revision as of 07:48, 27 April 2011
Language Specification
LogicalDOC can handle a wide set of different languages and variants. A language specification is a string that follows this format: <language>(_<country>)?
- The language part(mandatory) 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