rhdunn/cainteoir-engine — Issue #20: support RFC4646 and CLDR for language tag processing
Author: rhdunn
Created: 2011-12-20 12:24:06+00:00
State: open

RFC4646: http://www.ietf.org/rfc/rfc4646.txt
CLDR: http://cldr.unicode.org/

Language codes (en, zh, af, owl, etc.), scripts (Hans, Latin, Ogham, etc.) and territories (CN, US, TK, etc.).

Language code aliases (e.g. i-klingon => tlh, spa => es) -- map to their primary Unicode/ISO-639 code (shortest code).

Expand to full canonical form (e.g. en => en-Latn-US; es-MX => es-Latn-MX).

Equivalent language forms (e.g. en <> en-US <> en-Latn-US).

Compare language codes -- exact match ; partial match.

Related languages (language tree) e,g, Middle Irish Gaelic is ancestral to Scottish Gaelic ==> use for sharing language rules (e.g. between Afrikaans and Dutch).