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...)
 
(Language Specification)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
==Language Specification==
 
==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><country></b>)?
+
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 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 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
  
Some examples:
+
For example:
* English: en
+
* English is represented by <tt>en</tt>
* Italian: it
+
* Italian is represented by <tt>it</tt>
* Spanish: es
+
* Spanish is represented by <tt>es</tt>
* Portuguese: pt
+
* Portuguese is represented by <tt>pt</tt>
* Brazilian: pt_BR
+
* Brazilian is represented by <tt>pt_BR</tt>

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>)?

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