ICU-8461 Update Windows LCID to locale ID mapping table

X-SVN-Rev: 29831
This commit is contained in:
Michael Ow 2011-04-19 17:57:54 +00:00
parent 5322a01c0a
commit 2adda1f394

View File

@ -1,6 +1,6 @@
/*
**********************************************************************
* Copyright (C) 1996-2010, International Business Machines
* Copyright (C) 1996-2011, International Business Machines
* Corporation and others. All Rights Reserved.
**********************************************************************
*
@ -138,6 +138,7 @@ ILCID_POSIX_SUBTABLE(ar) {
{0x3001, "ar_LB"},
{0x1001, "ar_LY"},
{0x1801, "ar_MA"},
{0x1801, "ar_MO"},
{0x2001, "ar_OM"},
{0x4001, "ar_QA"},
{0x0401, "ar_SA"},
@ -172,6 +173,8 @@ ILCID_POSIX_SUBTABLE(ber) {
ILCID_POSIX_ELEMENT_ARRAY(0x0402, bg, bg_BG)
ILCID_POSIX_ELEMENT_ARRAY(0x0466, bin, bin_NG)
ILCID_POSIX_SUBTABLE(bn) {
{0x45, "bn"},
{0x0845, "bn_BD"},
@ -215,6 +218,8 @@ ILCID_POSIX_SUBTABLE(en) {
{0x2809, "en_BZ"},
{0x1009, "en_CA"},
{0x0809, "en_GB"},
{0x3c09, "en_HK"},
{0x3809, "en_ID"},
{0x1809, "en_IE"},
{0x4009, "en_IN"},
{0x2009, "en_JM"},
@ -262,6 +267,7 @@ ILCID_POSIX_SUBTABLE(es) {
{0x540a, "es_US"},
{0x380a, "es_UY"},
{0x200a, "es_VE"},
{0xe40a, "es_419"},
{0x040a, "es_ES@collation=traditional"},
{0x040a, "es@collation=traditional"}
};
@ -291,6 +297,7 @@ ILCID_POSIX_SUBTABLE(fr) {
{0x080c, "fr_BE"},
{0x0c0c, "fr_CA"},
{0x240c, "fr_CD"},
{0x240c, "fr_CG"},
{0x100c, "fr_CH"},
{0x300c, "fr_CI"},
{0x2c0c, "fr_CM"},
@ -301,14 +308,27 @@ ILCID_POSIX_SUBTABLE(fr) {
{0x180c, "fr_MC"},
{0x340c, "fr_ML"},
{0x200c, "fr_RE"},
{0x280c, "fr_SN"}
{0x280c, "fr_SN"},
{0xe40c, "fr_015"},
{0x1c0c, "fr_029"}
};
ILCID_POSIX_ELEMENT_ARRAY(0x0467, fuv, fuv_NG)
ILCID_POSIX_ELEMENT_ARRAY(0x0462, fy, fy_NL)
/* This LCID is really two different locales.*/
ILCID_POSIX_ELEMENT_ARRAY(0x083c, ga, ga_IE) /* Gaelic (Ireland) */
ILCID_POSIX_ELEMENT_ARRAY(0x0491, gd, gd_GB) /* Gaelic (Scotland) */
ILCID_POSIX_SUBTABLE(ga) { /* Gaelic (Ireland) */
{0x3c, "ga"},
{0x083c, "ga_IE"},
{0x043c, "gd_GB"}
};
ILCID_POSIX_SUBTABLE(gd) { /* Gaelic (Scotland) */
{0x91, "gd"},
{0x0491, "gd_GB"},
{0x043c, "gd_GB"}
};
ILCID_POSIX_ELEMENT_ARRAY(0x0456, gl, gl_ES)
ILCID_POSIX_ELEMENT_ARRAY(0x0447, gu, gu_IN)
@ -351,6 +371,7 @@ ILCID_POSIX_SUBTABLE(hr) {
ILCID_POSIX_ELEMENT_ARRAY(0x040e, hu, hu_HU)
ILCID_POSIX_ELEMENT_ARRAY(0x042b, hy, hy_AM)
ILCID_POSIX_ELEMENT_ARRAY(0x0469, ibb, ibb_NG)
ILCID_POSIX_ELEMENT_ARRAY(0x0421, id, id_ID)
ILCID_POSIX_ELEMENT_ARRAY(0x0470, ig, ig_NG)
ILCID_POSIX_ELEMENT_ARRAY(0x0478, ii, ii_CN)
@ -390,7 +411,8 @@ ILCID_POSIX_ELEMENT_ARRAY(0x0471, kr, kr_NG)
ILCID_POSIX_SUBTABLE(ks) { /* We could add PK and CN too */
{0x60, "ks"},
{0x0860, "ks_IN"}, /* Documentation doesn't mention script */
{0x0460, "ks_Arab_IN"}
{0x0460, "ks_Arab_IN"},
{0x0860, "ks_Deva_IN"}
};
ILCID_POSIX_ELEMENT_ARRAY(0x0440, ky, ky_KG) /* Kyrgyz is spoken in Kyrgyzstan */
@ -450,7 +472,12 @@ ILCID_POSIX_SUBTABLE(no) {
ILCID_POSIX_ELEMENT_ARRAY(0x046c, nso,nso_ZA) /* TODO: Verify the ISO-639 code */
ILCID_POSIX_ELEMENT_ARRAY(0x0482, oc, oc_FR)
ILCID_POSIX_ELEMENT_ARRAY(0x0472, om, om_ET) /* TODO: Verify the country */
ILCID_POSIX_SUBTABLE(om) { /* TODO: Verify the country */
{0x72, "om"},
{0x0472, "om_ET"},
{0x0472, "gaz_ET"}
};
/* Declared as or_IN to get around compiler errors*/
ILCID_POSIX_SUBTABLE(or_IN) {
@ -465,6 +492,7 @@ ILCID_POSIX_SUBTABLE(pa) {
{0x0846, "pa_PK"}
};
ILCID_POSIX_ELEMENT_ARRAY(0x0479, pap, pap_AN)
ILCID_POSIX_ELEMENT_ARRAY(0x0415, pl, pl_PL)
ILCID_POSIX_ELEMENT_ARRAY(0x0463, ps, ps_AF)
@ -478,18 +506,31 @@ ILCID_POSIX_SUBTABLE(qu) {
{0x6b, "qu"},
{0x046b, "qu_BO"},
{0x086b, "qu_EC"},
{0x0C6b, "qu_PE"}
{0x0C6b, "qu_PE"},
{0x046b, "quz_BO"},
{0x086b, "quz_EC"},
{0x0C6b, "quz_PE"}
};
ILCID_POSIX_ELEMENT_ARRAY(0x0486, qut, qut_GT) /* qut is an ISO-639-3 code */
ILCID_POSIX_ELEMENT_ARRAY(0x0417, rm, rm_CH)
ILCID_POSIX_ELEMENT_ARRAY(0x0418, ro, ro_RO)
ILCID_POSIX_SUBTABLE(ro) {
{0x18, "ro"},
{0x0418, "ro_RO"},
{0x0818, "ro_MD"}
};
ILCID_POSIX_SUBTABLE(root) {
{0x00, "root"}
};
ILCID_POSIX_ELEMENT_ARRAY(0x0419, ru, ru_RU)
ILCID_POSIX_SUBTABLE(ru) {
{0x19, "ru"},
{0x0419, "ru_RU"},
{0x0819, "ru_MD"}
};
ILCID_POSIX_ELEMENT_ARRAY(0x0487, rw, rw_RW)
ILCID_POSIX_ELEMENT_ARRAY(0x044f, sa, sa_IN)
ILCID_POSIX_ELEMENT_ARRAY(0x0485, sah,sah_RU)
@ -520,8 +561,15 @@ ILCID_POSIX_SUBTABLE(se) {
ILCID_POSIX_ELEMENT_ARRAY(0x045b, si, si_LK)
ILCID_POSIX_ELEMENT_ARRAY(0x041b, sk, sk_SK)
ILCID_POSIX_ELEMENT_ARRAY(0x0424, sl, sl_SI)
ILCID_POSIX_ELEMENT_ARRAY(0x0477, so, so_ET) /* TODO: Verify the country */
ILCID_POSIX_SUBTABLE(so) { /* TODO: Verify the country */
{0x77, "so"},
{0x0477, "so_ET"},
{0x0477, "so_SO"}
};
ILCID_POSIX_ELEMENT_ARRAY(0x041c, sq, sq_AL)
ILCID_POSIX_ELEMENT_ARRAY(0x0430, st, st_ZA)
ILCID_POSIX_SUBTABLE(sv) {
{0x1d, "sv"},
@ -545,22 +593,37 @@ ILCID_POSIX_ELEMENT_ARRAY(0x041e, th, th_TH)
ILCID_POSIX_SUBTABLE(ti) {
{0x73, "ti"},
{0x0473, "ti_ER"},
{0x0873, "ti_ER"},
{0x0873, "ti_ET"},
{0x0473, "ti_ET"}
};
ILCID_POSIX_ELEMENT_ARRAY(0x0442, tk, tk_TM)
ILCID_POSIX_ELEMENT_ARRAY(0x0432, tn, tn_BW)
ILCID_POSIX_SUBTABLE(tn) {
{0x32, "tn"},
{0x0432, "tn_BW"},
{0x0432, "tn_ZA"}
};
ILCID_POSIX_ELEMENT_ARRAY(0x041f, tr, tr_TR)
ILCID_POSIX_ELEMENT_ARRAY(0x0431, ts, ts_ZA)
ILCID_POSIX_ELEMENT_ARRAY(0x0444, tt, tt_RU)
ILCID_POSIX_SUBTABLE(tzm) {
{0x5f, "tzm"},
{0x7c5f, "tzm_Latn"},
{0x085f, "tzm_Latn_DZ"}
{0x085f, "tzm_Latn_DZ"},
{0x045f, "tmz"}
};
ILCID_POSIX_SUBTABLE(ug) {
{0x80, "ug"},
{0x0480, "ug_CN"},
{0x0480, "ug_Arab_CN"}
};
ILCID_POSIX_ELEMENT_ARRAY(0x0480, ug, ug_CN)
ILCID_POSIX_ELEMENT_ARRAY(0x0422, uk, uk_UA)
ILCID_POSIX_SUBTABLE(ur) {
@ -578,7 +641,12 @@ ILCID_POSIX_SUBTABLE(uz) {
{0x7c43, "uz_Latn"} /* Latin based */
};
ILCID_POSIX_ELEMENT_ARRAY(0x0433, ve, ve_ZA) /* TODO: Verify the country */
ILCID_POSIX_SUBTABLE(ve) { /* TODO: Verify the country */
{0x33, "ve"},
{0x0433, "ve_ZA"},
{0x0433, "ven_ZA"}
};
ILCID_POSIX_ELEMENT_ARRAY(0x042a, vi, vi_VN)
ILCID_POSIX_SUBTABLE(wen) {
@ -592,6 +660,7 @@ ILCID_POSIX_SUBTABLE(wen) {
ILCID_POSIX_ELEMENT_ARRAY(0x0488, wo, wo_SN)
ILCID_POSIX_ELEMENT_ARRAY(0x0434, xh, xh_ZA)
ILCID_POSIX_ELEMENT_ARRAY(0x043d, yi, yi)
ILCID_POSIX_ELEMENT_ARRAY(0x046a, yo, yo_NG)
ILCID_POSIX_SUBTABLE(zh) {
@ -625,7 +694,6 @@ ILCID_POSIX_ELEMENT_ARRAY(0x0435, zu, zu_ZA)
/* non-existent ISO-639-2 codes */
/*
0x466 Edo
0x467 Fulfulde - Nigeria
0x486 K'iche - Guatemala
0x430 Sutu
@ -641,6 +709,7 @@ static const ILcidPosixMap gPosixIDmap[] = {
ILCID_POSIX_MAP(be), /* be Belarusian 0x23 */
/* ILCID_POSIX_MAP(ber), ber Berber/Tamazight 0x5f */
ILCID_POSIX_MAP(bg), /* bg Bulgarian 0x02 */
ILCID_POSIX_MAP(bin), /* bin Edo 0x66 */
ILCID_POSIX_MAP(bn), /* bn Bengali; Bangla 0x45 */
ILCID_POSIX_MAP(bo), /* bo Tibetan 0x51 */
ILCID_POSIX_MAP(br), /* br Breton 0x7e */
@ -664,6 +733,7 @@ static const ILcidPosixMap gPosixIDmap[] = {
ILCID_POSIX_MAP(fil), /* fil Filipino 0x64 */
ILCID_POSIX_MAP(fo), /* fo Faroese 0x38 */
ILCID_POSIX_MAP(fr), /* fr French 0x0c */
ILCID_POSIX_MAP(fuv), /* fuv Fulfulde - Nigeria 0x67 */
ILCID_POSIX_MAP(fy), /* fy Frisian 0x62 */
ILCID_POSIX_MAP(ga), /* * Gaelic (Ireland,Scotland) 0x3c */
ILCID_POSIX_MAP(gd), /* gd Gaelic (United Kingdom) 0x91 */
@ -678,6 +748,7 @@ static const ILcidPosixMap gPosixIDmap[] = {
ILCID_POSIX_MAP(hr), /* * Croatian and others 0x1a */
ILCID_POSIX_MAP(hu), /* hu Hungarian 0x0e */
ILCID_POSIX_MAP(hy), /* hy Armenian 0x2b */
ILCID_POSIX_MAP(ibb), /* ibb Ibibio - Nigeria 0x69 */
ILCID_POSIX_MAP(id), /* id Indonesian (formerly in) 0x21 */
ILCID_POSIX_MAP(ig), /* ig Igbo 0x70 */
ILCID_POSIX_MAP(ii), /* ii Sichuan Yi 0x78 */
@ -721,6 +792,7 @@ static const ILcidPosixMap gPosixIDmap[] = {
ILCID_POSIX_MAP(om), /* om Oromo 0x72 */
ILCID_POSIX_MAP(or_IN), /* or Oriya 0x48 */
ILCID_POSIX_MAP(pa), /* pa Punjabi 0x46 */
ILCID_POSIX_MAP(pap), /* pap Papiamentu 0x79 */
ILCID_POSIX_MAP(pl), /* pl Polish 0x15 */
ILCID_POSIX_MAP(ps), /* ps Pashto 0x63 */
ILCID_POSIX_MAP(pt), /* pt Portuguese 0x16 */
@ -742,6 +814,7 @@ static const ILcidPosixMap gPosixIDmap[] = {
ILCID_POSIX_MAP(so), /* so Somali 0x77 */
ILCID_POSIX_MAP(sq), /* sq Albanian 0x1c */
/* ILCID_POSIX_MAP(sr), // sr Serbian 0x1a */
ILCID_POSIX_MAP(st), /* st Sutu 0x30 */
ILCID_POSIX_MAP(sv), /* sv Swedish 0x1d */
ILCID_POSIX_MAP(sw), /* sw Swahili 0x41 */
ILCID_POSIX_MAP(syr), /* syr Syriac 0x5A */
@ -753,8 +826,9 @@ static const ILcidPosixMap gPosixIDmap[] = {
ILCID_POSIX_MAP(tk), /* tk Turkmen 0x42 */
ILCID_POSIX_MAP(tn), /* tn Tswana 0x32 */
ILCID_POSIX_MAP(tr), /* tr Turkish 0x1f */
ILCID_POSIX_MAP(ts), /* ts Tsonga 0x31 */
ILCID_POSIX_MAP(tt), /* tt Tatar 0x44 */
ILCID_POSIX_MAP(tzm), /* tzm 0x5f */
ILCID_POSIX_MAP(tzm), /* tzm Tamazight 0x5f */
ILCID_POSIX_MAP(ug), /* ug Uighur 0x80 */
ILCID_POSIX_MAP(uk), /* uk Ukrainian 0x22 */
ILCID_POSIX_MAP(ur), /* ur Urdu 0x20 */
@ -764,6 +838,7 @@ static const ILcidPosixMap gPosixIDmap[] = {
ILCID_POSIX_MAP(wen), /* wen Sorbian 0x2e */
ILCID_POSIX_MAP(wo), /* wo Wolof 0x88 */
ILCID_POSIX_MAP(xh), /* xh Xhosa 0x34 */
ILCID_POSIX_MAP(yi), /* yi Yiddish 0x3d */
ILCID_POSIX_MAP(yo), /* yo Yoruba 0x6a */
ILCID_POSIX_MAP(zh), /* zh Chinese 0x04 */
ILCID_POSIX_MAP(zu), /* zu Zulu 0x35 */