|
Converts a POSIX language string to a IANA language tag following RFC
4646 http://www.ietf.org/rfc/rfc4646.txt, the format
recommended for AEOutput device language settings.
The POSIX format is language[_territory][.codeset]
Some examples include "en", "fr_CA",
"en_US.UTF-8". Ambiguous conversions such as "zh_CN"
are allowed, but do not pinpoint specific spoken dialects (i.e. Mandarin,
Cantonese, Pinyin, Taiwanese Mandarin, etc.) The code set is currently
ignored, though may serve as a hint for the dialect in the future.
- Parameters:
lang (string) - POSIX locale string
- Returns: string
- IANA language tag
|