Revert "Use standard spelling for two languages"
[profile/ivi/qtbase.git] / util / local_database / enumdata.py
1 #!/usr/bin/env python
2 #############################################################################
3 ##
4 ## Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
5 ## All rights reserved.
6 ## Contact: Nokia Corporation (qt-info@nokia.com)
7 ##
8 ## This file is part of the test suite of the Qt Toolkit.
9 ##
10 ## $QT_BEGIN_LICENSE:LGPL$
11 ## GNU Lesser General Public License Usage
12 ## This file may be used under the terms of the GNU Lesser General Public
13 ## License version 2.1 as published by the Free Software Foundation and
14 ## appearing in the file LICENSE.LGPL included in the packaging of this
15 ## file. Please review the following information to ensure the GNU Lesser
16 ## General Public License version 2.1 requirements will be met:
17 ## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
18 ##
19 ## In addition, as a special exception, Nokia gives you certain additional
20 ## rights. These rights are described in the Nokia Qt LGPL Exception
21 ## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
22 ##
23 ## GNU General Public License Usage
24 ## Alternatively, this file may be used under the terms of the GNU General
25 ## Public License version 3.0 as published by the Free Software Foundation
26 ## and appearing in the file LICENSE.GPL included in the packaging of this
27 ## file. Please review the following information to ensure the GNU General
28 ## Public License version 3.0 requirements will be met:
29 ## http://www.gnu.org/copyleft/gpl.html.
30 ##
31 ## Other Usage
32 ## Alternatively, this file may be used in accordance with the terms and
33 ## conditions contained in a signed written agreement between you and Nokia.
34 ##
35 ##
36 ##
37 ##
38 ##
39 ## $QT_END_LICENSE$
40 ##
41 #############################################################################
42
43 # langugae_list and country_list reflect the current values of enums in qlocale.h
44 # If new xml language files are available in CLDR, these languages and countries
45 # need to be *appended* to this list.
46
47 language_list = {
48     0 : [ "AnyLanguage",          "  " ],
49     1 : [ "C",                    "  " ],
50     2 : [ "Abkhazian",            "ab" ],
51     3 : [ "Afan",                 "om" ],
52     4 : [ "Afar",                 "aa" ],
53     5 : [ "Afrikaans",            "af" ],
54     6 : [ "Albanian",             "sq" ],
55     7 : [ "Amharic",              "am" ],
56     8 : [ "Arabic",               "ar" ],
57     9 : [ "Armenian",             "hy" ],
58     10 : [ "Assamese",            "as" ],
59     11 : [ "Aymara",              "ay" ],
60     12 : [ "Azerbaijani",         "az" ],
61     13 : [ "Bashkir",             "ba" ],
62     14 : [ "Basque",              "eu" ],
63     15 : [ "Bengali",             "bn" ],
64     16 : [ "Bhutani",             "dz" ],
65     17 : [ "Bihari",              "bh" ],
66     18 : [ "Bislama",             "bi" ],
67     19 : [ "Breton",              "br" ],
68     20 : [ "Bulgarian",           "bg" ],
69     21 : [ "Burmese",             "my" ],
70     22 : [ "Byelorussian",        "be" ],
71     23 : [ "Cambodian",           "km" ],
72     24 : [ "Catalan",             "ca" ],
73     25 : [ "Chinese",             "zh" ],
74     26 : [ "Corsican",            "co" ],
75     27 : [ "Croatian",            "hr" ],
76     28 : [ "Czech",               "cs" ],
77     29 : [ "Danish",              "da" ],
78     30 : [ "Dutch",               "nl" ],
79     31 : [ "English",             "en" ],
80     32 : [ "Esperanto",           "eo" ],
81     33 : [ "Estonian",            "et" ],
82     34 : [ "Faroese",             "fo" ],
83     35 : [ "Fiji",        "fj" ],
84     36 : [ "Finnish",             "fi" ],
85     37 : [ "French",              "fr" ],
86     38 : [ "Frisian",             "fy" ],
87     39 : [ "Gaelic",              "gd" ],
88     40 : [ "Galician",            "gl" ],
89     41 : [ "Georgian",            "ka" ],
90     42 : [ "German",              "de" ],
91     43 : [ "Greek",               "el" ],
92     44 : [ "Greenlandic",         "kl" ],
93     45 : [ "Guarani",             "gn" ],
94     46 : [ "Gujarati",            "gu" ],
95     47 : [ "Hausa",               "ha" ],
96     48 : [ "Hebrew",              "he" ],
97     49 : [ "Hindi",               "hi" ],
98     50 : [ "Hungarian",           "hu" ],
99     51 : [ "Icelandic",           "is" ],
100     52 : [ "Indonesian",          "id" ],
101     53 : [ "Interlingua",         "ia" ],
102     54 : [ "Interlingue",         "ie" ],
103     55 : [ "Inuktitut",           "iu" ],
104     56 : [ "Inupiak",             "ik" ],
105     57 : [ "Irish",               "ga" ],
106     58 : [ "Italian",             "it" ],
107     59 : [ "Japanese",            "ja" ],
108     60 : [ "Javanese",            "jv" ],
109     61 : [ "Kannada",             "kn" ],
110     62 : [ "Kashmiri",            "ks" ],
111     63 : [ "Kazakh",              "kk" ],
112     64 : [ "Kinyarwanda",         "rw" ],
113     65 : [ "Kirghiz",             "ky" ],
114     66 : [ "Korean",              "ko" ],
115     67 : [ "Kurdish",             "ku" ],
116     68 : [ "Kurundi",             "rn" ],
117     69 : [ "Laothian",            "lo" ],
118     70 : [ "Latin",               "la" ],
119     71 : [ "Latvian",             "lv" ],
120     72 : [ "Lingala",             "ln" ],
121     73 : [ "Lithuanian",          "lt" ],
122     74 : [ "Macedonian",          "mk" ],
123     75 : [ "Malagasy",            "mg" ],
124     76 : [ "Malay",               "ms" ],
125     77 : [ "Malayalam",           "ml" ],
126     78 : [ "Maltese",             "mt" ],
127     79 : [ "Maori",               "mi" ],
128     80 : [ "Marathi",             "mr" ],
129     81 : [ "Moldavian",           "mo" ],
130     82 : [ "Mongolian",           "mn" ],
131     83 : [ "Nauru",       "na" ],
132     84 : [ "Nepali",              "ne" ],
133     85 : [ "Norwegian",           "nb" ],
134     86 : [ "Occitan",             "oc" ],
135     87 : [ "Oriya",               "or" ],
136     88 : [ "Pashto",              "ps" ],
137     89 : [ "Persian",             "fa" ],
138     90 : [ "Polish",              "pl" ],
139     91 : [ "Portuguese",          "pt" ],
140     92 : [ "Punjabi",             "pa" ],
141     93 : [ "Quechua",             "qu" ],
142     94 : [ "RhaetoRomance",       "rm" ],
143     95 : [ "Romanian",            "ro" ],
144     96 : [ "Russian",             "ru" ],
145     97 : [ "Samoan",              "sm" ],
146     98 : [ "Sangho",              "sg" ],
147     99 : [ "Sanskrit",            "sa" ],
148     100 : [ "Serbian",            "sr" ],
149     101 : [ "SerboCroatian",      "sh" ],
150     102 : [ "Sesotho",            "st" ],
151     103 : [ "Setswana",           "tn" ],
152     104 : [ "Shona",              "sn" ],
153     105 : [ "Sindhi",             "sd" ],
154     106 : [ "Singhalese",         "si" ],
155     107 : [ "Siswati",            "ss" ],
156     108 : [ "Slovak",             "sk" ],
157     109 : [ "Slovenian",          "sl" ],
158     110 : [ "Somali",             "so" ],
159     111 : [ "Spanish",            "es" ],
160     112 : [ "Sundanese",          "su" ],
161     113 : [ "Swahili",            "sw" ],
162     114 : [ "Swedish",            "sv" ],
163     115 : [ "Tagalog",            "tl" ],
164     116 : [ "Tajik",              "tg" ],
165     117 : [ "Tamil",              "ta" ],
166     118 : [ "Tatar",              "tt" ],
167     119 : [ "Telugu",             "te" ],
168     120 : [ "Thai",               "th" ],
169     121 : [ "Tibetan",            "bo" ],
170     122 : [ "Tigrinya",           "ti" ],
171     123 : [ "Tonga",      "to" ],
172     124 : [ "Tsonga",             "ts" ],
173     125 : [ "Turkish",            "tr" ],
174     126 : [ "Turkmen",            "tk" ],
175     127 : [ "Twi",                "tw" ],
176     128 : [ "Uigur",              "ug" ],
177     129 : [ "Ukrainian",          "uk" ],
178     130 : [ "Urdu",               "ur" ],
179     131 : [ "Uzbek",              "uz" ],
180     132 : [ "Vietnamese",         "vi" ],
181     133 : [ "Volapuk",            "vo" ],
182     134 : [ "Welsh",              "cy" ],
183     135 : [ "Wolof",              "wo" ],
184     136 : [ "Xhosa",              "xh" ],
185     137 : [ "Yiddish",            "yi" ],
186     138 : [ "Yoruba",             "yo" ],
187     139 : [ "Zhuang",             "za" ],
188     140 : [ "Zulu",               "zu" ],
189     141 : [ "Nynorsk",            "nn" ],
190     142 : [ "Bosnian",            "bs" ],
191     143 : [ "Divehi",             "dv" ],
192     144 : [ "Manx",               "gv" ],
193     145 : [ "Cornish",            "kw" ],
194     146 : [ "Akan",               "ak"  ],
195     147 : [ "Konkani",            "kok" ],
196     148 : [ "Ga",                 "gaa" ],
197     149 : [ "Igbo",               "ig"  ],
198     150 : [ "Kamba",              "kam" ],
199     151 : [ "Syriac",             "syr" ],
200     152 : [ "Blin",               "byn" ],
201     153 : [ "Geez",               "gez" ],
202     154 : [ "Koro",               "kfo" ],
203     155 : [ "Sidamo",             "sid" ],
204     156 : [ "Atsam",              "cch" ],
205     157 : [ "Tigre",              "tig" ],
206     158 : [ "Jju",                "kaj" ],
207     159 : [ "Friulian",           "fur" ],
208     160 : [ "Venda",              "ve"  ],
209     161 : [ "Ewe",                "ee"  ],
210     162 : [ "Walamo",             "wal" ],
211     163 : [ "Hawaiian",           "haw" ],
212     164 : [ "Tyap",               "kcg" ],
213     165 : [ "Chewa",              "ny"  ],
214     166 : [ "Filipino",           "fil" ],
215     167 : [ "Swiss German",       "gsw" ],
216     168 : [ "Sichuan Yi",         "ii"  ],
217     169 : [ "Kpelle",             "kpe" ],
218     170 : [ "Low German",         "nds" ],
219     171 : [ "South Ndebele",      "nr"  ],
220     172 : [ "Northern Sotho",     "nso" ],
221     173 : [ "Northern Sami",      "se"  ],
222     174 : [ "Taroko",             "trv" ],
223     175 : [ "Gusii",              "guz" ],
224     176 : [ "Taita",              "dav" ],
225     177 : [ "Fulah",              "ff" ],
226     178 : [ "Kikuyu",             "ki" ],
227     179 : [ "Samburu",            "saq" ],
228     180 : [ "Sena",               "seh" ],
229     181 : [ "North Ndebele",      "nd" ],
230     182 : [ "Rombo",              "rof" ],
231     183 : [ "Tachelhit",          "shi" ],
232     184 : [ "Kabyle",             "kab" ],
233     185 : [ "Nyankole",           "nyn" ],
234     186 : [ "Bena",               "bez" ],
235     187 : [ "Vunjo",              "vun" ],
236     188 : [ "Bambara",            "bm" ],
237     189 : [ "Embu",               "ebu" ],
238     190 : [ "Cherokee",           "chr" ],
239     191 : [ "Morisyen",           "mfe" ],
240     192 : [ "Makonde",            "kde" ],
241     193 : [ "Langi",              "lag" ],
242     194 : [ "Ganda",              "lg" ],
243     195 : [ "Bemba",              "bem" ],
244     196 : [ "Kabuverdianu",       "kea" ],
245     197 : [ "Meru",               "mer" ],
246     198 : [ "Kalenjin",           "kln" ],
247     199 : [ "Nama",               "naq" ],
248     200 : [ "Machame",            "jmc" ],
249     201 : [ "Colognian",          "ksh" ],
250     202 : [ "Masai",              "mas" ],
251     203 : [ "Soga",               "xog" ],
252     204 : [ "Luyia",              "luy" ],
253     205 : [ "Asu",                "asa" ],
254     206 : [ "Teso",               "teo" ],
255     207 : [ "Saho",               "ssy" ],
256     208 : [ "Koyra Chiini",       "khq" ],
257     209 : [ "Rwa",                "rwk" ],
258     210 : [ "Luo",                "luo" ],
259     211 : [ "Chiga",              "cgg" ],
260     212 : [ "Central Morocco Tamazight", "tzm" ],
261     213 : [ "Koyraboro Senni",    "ses" ],
262     214 : [ "Shambala",           "ksb" ]
263 }
264
265 country_list = {
266     0 : [ "AnyCountry",                                 "  "  ],
267     1 : [ "Afghanistan",                                "AF"  ],
268     2 : [ "Albania",                                    "AL"  ],
269     3 : [ "Algeria",                                    "DZ"  ],
270     4 : [ "AmericanSamoa",                              "AS"  ],
271     5 : [ "Andorra",                                    "AD"  ],
272     6 : [ "Angola",                                     "AO"  ],
273     7 : [ "Anguilla",                                   "AI"  ],
274     8 : [ "Antarctica",                                 "AQ"  ],
275     9 : [ "AntiguaAndBarbuda",                          "AG"  ],
276     10 : [ "Argentina",                                 "AR"  ],
277     11 : [ "Armenia",                                   "AM"  ],
278     12 : [ "Aruba",                                     "AW"  ],
279     13 : [ "Australia",                                 "AU"  ],
280     14 : [ "Austria",                                   "AT"  ],
281     15 : [ "Azerbaijan",                                "AZ"  ],
282     16 : [ "Bahamas",                                   "BS"  ],
283     17 : [ "Bahrain",                                   "BH"  ],
284     18 : [ "Bangladesh",                                "BD"  ],
285     19 : [ "Barbados",                                  "BB"  ],
286     20 : [ "Belarus",                                   "BY"  ],
287     21 : [ "Belgium",                                   "BE"  ],
288     22 : [ "Belize",                                    "BZ"  ],
289     23 : [ "Benin",                                     "BJ"  ],
290     24 : [ "Bermuda",                                   "BM"  ],
291     25 : [ "Bhutan",                                    "BT"  ],
292     26 : [ "Bolivia",                                   "BO"  ],
293     27 : [ "BosniaAndHerzegowina",                      "BA"  ],
294     28 : [ "Botswana",                                  "BW"  ],
295     29 : [ "BouvetIsland",                              "BV"  ],
296     30 : [ "Brazil",                                    "BR"  ],
297     31 : [ "BritishIndianOceanTerritory",               "IO"  ],
298     32 : [ "BruneiDarussalam",                          "BN"  ],
299     33 : [ "Bulgaria",                                  "BG"  ],
300     34 : [ "BurkinaFaso",                               "BF"  ],
301     35 : [ "Burundi",                                   "BI"  ],
302     36 : [ "Cambodia",                                  "KH"  ],
303     37 : [ "Cameroon",                                  "CM"  ],
304     38 : [ "Canada",                                    "CA"  ],
305     39 : [ "CapeVerde",                                 "CV"  ],
306     40 : [ "CaymanIslands",                             "KY"  ],
307     41 : [ "CentralAfricanRepublic",                    "CF"  ],
308     42 : [ "Chad",                                      "TD"  ],
309     43 : [ "Chile",                                     "CL"  ],
310     44 : [ "China",                                     "CN"  ],
311     45 : [ "ChristmasIsland",                           "CX"  ],
312     46 : [ "CocosIslands",                              "CC"  ],
313     47 : [ "Colombia",                                  "CO"  ],
314     48 : [ "Comoros",                                   "KM"  ],
315     49 : [ "DemocraticRepublicOfCongo",                 "CD"  ],
316     50 : [ "PeoplesRepublicOfCongo",                    "CG"  ],
317     51 : [ "CookIslands",                               "CK"  ],
318     52 : [ "CostaRica",                                 "CR"  ],
319     53 : [ "IvoryCoast",                                "CI"  ],
320     54 : [ "Croatia",                                   "HR"  ],
321     55 : [ "Cuba",                                      "CU"  ],
322     56 : [ "Cyprus",                                    "CY"  ],
323     57 : [ "CzechRepublic",                             "CZ"  ],
324     58 : [ "Denmark",                                   "DK"  ],
325     59 : [ "Djibouti",                                  "DJ"  ],
326     60 : [ "Dominica",                                  "DM"  ],
327     61 : [ "DominicanRepublic",                         "DO"  ],
328     62 : [ "EastTimor",                                 "TL"  ],
329     63 : [ "Ecuador",                                   "EC"  ],
330     64 : [ "Egypt",                                     "EG"  ],
331     65 : [ "ElSalvador",                                "SV"  ],
332     66 : [ "EquatorialGuinea",                          "GQ"  ],
333     67 : [ "Eritrea",                                   "ER"  ],
334     68 : [ "Estonia",                                   "EE"  ],
335     69 : [ "Ethiopia",                                  "ET"  ],
336     70 : [ "FalklandIslands",                           "FK"  ],
337     71 : [ "FaroeIslands",                              "FO"  ],
338     72 : [ "Fiji",                               "FJ"  ],
339     73 : [ "Finland",                                   "FI"  ],
340     74 : [ "France",                                    "FR"  ],
341     75 : [ "MetropolitanFrance",                        "FX"  ],
342     76 : [ "FrenchGuiana",                              "GF"  ],
343     77 : [ "FrenchPolynesia",                           "PF"  ],
344     78 : [ "FrenchSouthernTerritories",                 "TF"  ],
345     79 : [ "Gabon",                                     "GA"  ],
346     80 : [ "Gambia",                                    "GM"  ],
347     81 : [ "Georgia",                                   "GE"  ],
348     82 : [ "Germany",                                   "DE"  ],
349     83 : [ "Ghana",                                     "GH"  ],
350     84 : [ "Gibraltar",                                 "GI"  ],
351     85 : [ "Greece",                                    "GR"  ],
352     86 : [ "Greenland",                                 "GL"  ],
353     87 : [ "Grenada",                                   "GD"  ],
354     88 : [ "Guadeloupe",                                "GP"  ],
355     89 : [ "Guam",                                      "GU"  ],
356     90 : [ "Guatemala",                                 "GT"  ],
357     91 : [ "Guinea",                                    "GN"  ],
358     92 : [ "GuineaBissau",                              "GW"  ],
359     93 : [ "Guyana",                                    "GY"  ],
360     94 : [ "Haiti",                                     "HT"  ],
361     95 : [ "HeardAndMcDonaldIslands",                   "HM"  ],
362     96 : [ "Honduras",                                  "HN"  ],
363     97 : [ "HongKong",                                  "HK"  ],
364     98 : [ "Hungary",                                   "HU"  ],
365     99 : [ "Iceland",                                   "IS"  ],
366     100 : [ "India",                                    "IN"  ],
367     101 : [ "Indonesia",                                "ID"  ],
368     102 : [ "Iran",                                     "IR"  ],
369     103 : [ "Iraq",                                     "IQ"  ],
370     104 : [ "Ireland",                                  "IE"  ],
371     105 : [ "Israel",                                   "IL"  ],
372     106 : [ "Italy",                                    "IT"  ],
373     107 : [ "Jamaica",                                  "JM"  ],
374     108 : [ "Japan",                                    "JP"  ],
375     109 : [ "Jordan",                                   "JO"  ],
376     110 : [ "Kazakhstan",                               "KZ"  ],
377     111 : [ "Kenya",                                    "KE"  ],
378     112 : [ "Kiribati",                                 "KI"  ],
379     113 : [ "DemocraticRepublicOfKorea",                "KP"  ],
380     114 : [ "RepublicOfKorea",                          "KR"  ],
381     115 : [ "Kuwait",                                   "KW"  ],
382     116 : [ "Kyrgyzstan",                               "KG"  ],
383     117 : [ "Lao",                                      "LA"  ],
384     118 : [ "Latvia",                                   "LV"  ],
385     119 : [ "Lebanon",                                  "LB"  ],
386     120 : [ "Lesotho",                                  "LS"  ],
387     121 : [ "Liberia",                                  "LR"  ],
388     122 : [ "LibyanArabJamahiriya",                     "LY"  ],
389     123 : [ "Liechtenstein",                            "LI"  ],
390     124 : [ "Lithuania",                                "LT"  ],
391     125 : [ "Luxembourg",                               "LU"  ],
392     126 : [ "Macau",                                    "MO"  ],
393     127 : [ "Macedonia",                                "MK"  ],
394     128 : [ "Madagascar",                               "MG"  ],
395     129 : [ "Malawi",                                   "MW"  ],
396     130 : [ "Malaysia",                                 "MY"  ],
397     131 : [ "Maldives",                                 "MV"  ],
398     132 : [ "Mali",                                     "ML"  ],
399     133 : [ "Malta",                                    "MT"  ],
400     134 : [ "MarshallIslands",                          "MH"  ],
401     135 : [ "Martinique",                               "MQ"  ],
402     136 : [ "Mauritania",                               "MR"  ],
403     137 : [ "Mauritius",                                "MU"  ],
404     138 : [ "Mayotte",                                  "YT"  ],
405     139 : [ "Mexico",                                   "MX"  ],
406     140 : [ "Micronesia",                               "FM"  ],
407     141 : [ "Moldova",                                  "MD"  ],
408     142 : [ "Monaco",                                   "MC"  ],
409     143 : [ "Mongolia",                                 "MN"  ],
410     144 : [ "Montserrat",                               "MS"  ],
411     145 : [ "Morocco",                                  "MA"  ],
412     146 : [ "Mozambique",                               "MZ"  ],
413     147 : [ "Myanmar",                                  "MM"  ],
414     148 : [ "Namibia",                                  "NA"  ],
415     149 : [ "Nauru",                             "NR"  ],
416     150 : [ "Nepal",                                    "NP"  ],
417     151 : [ "Netherlands",                              "NL"  ],
418     152 : [ "NetherlandsAntilles",                      "AN"  ],
419     153 : [ "NewCaledonia",                             "NC"  ],
420     154 : [ "NewZealand",                               "NZ"  ],
421     155 : [ "Nicaragua",                                "NI"  ],
422     156 : [ "Niger",                                    "NE"  ],
423     157 : [ "Nigeria",                                  "NG"  ],
424     158 : [ "Niue",                                     "NU"  ],
425     159 : [ "NorfolkIsland",                            "NF"  ],
426     160 : [ "NorthernMarianaIslands",                   "MP"  ],
427     161 : [ "Norway",                                   "NO"  ],
428     162 : [ "Oman",                                     "OM"  ],
429     163 : [ "Pakistan",                                 "PK"  ],
430     164 : [ "Palau",                                    "PW"  ],
431     165 : [ "PalestinianTerritory",                     "PS"  ],
432     166 : [ "Panama",                                   "PA"  ],
433     167 : [ "PapuaNewGuinea",                           "PG"  ],
434     168 : [ "Paraguay",                                 "PY"  ],
435     169 : [ "Peru",                                     "PE"  ],
436     170 : [ "Philippines",                              "PH"  ],
437     171 : [ "Pitcairn",                                 "PN"  ],
438     172 : [ "Poland",                                   "PL"  ],
439     173 : [ "Portugal",                                 "PT"  ],
440     174 : [ "PuertoRico",                               "PR"  ],
441     175 : [ "Qatar",                                    "QA"  ],
442     176 : [ "Reunion",                                  "RE"  ],
443     177 : [ "Romania",                                  "RO"  ],
444     178 : [ "RussianFederation",                        "RU"  ],
445     179 : [ "Rwanda",                                   "RW"  ],
446     180 : [ "SaintKittsAndNevis",                       "KN"  ],
447     181 : [ "StLucia",                                  "LC"  ],
448     182 : [ "StVincentAndTheGrenadines",                "VC"  ],
449     183 : [ "Samoa",                                    "WS"  ],
450     184 : [ "SanMarino",                                "SM"  ],
451     185 : [ "SaoTomeAndPrincipe",                       "ST"  ],
452     186 : [ "SaudiArabia",                              "SA"  ],
453     187 : [ "Senegal",                                  "SN"  ],
454     188 : [ "Seychelles",                               "SC"  ],
455     189 : [ "SierraLeone",                              "SL"  ],
456     190 : [ "Singapore",                                "SG"  ],
457     191 : [ "Slovakia",                                 "SK"  ],
458     192 : [ "Slovenia",                                 "SI"  ],
459     193 : [ "SolomonIslands",                           "SB"  ],
460     194 : [ "Somalia",                                  "SO"  ],
461     195 : [ "SouthAfrica",                              "ZA"  ],
462     196 : [ "SouthGeorgiaAndTheSouthSandwichIslands",   "GS"  ],
463     197 : [ "Spain",                                    "ES"  ],
464     198 : [ "SriLanka",                                 "LK"  ],
465     199 : [ "StHelena",                                 "SH"  ],
466     200 : [ "StPierreAndMiquelon",                      "PM"  ],
467     201 : [ "Sudan",                                    "SD"  ],
468     202 : [ "Suriname",                                 "SR"  ],
469     203 : [ "SvalbardAndJanMayenIslands",               "SJ"  ],
470     204 : [ "Swaziland",                                "SZ"  ],
471     205 : [ "Sweden",                                   "SE"  ],
472     206 : [ "Switzerland",                              "CH"  ],
473     207 : [ "SyrianArabRepublic",                       "SY"  ],
474     208 : [ "Taiwan",                                   "TW"  ],
475     209 : [ "Tajikistan",                               "TJ"  ],
476     210 : [ "Tanzania",                                 "TZ"  ],
477     211 : [ "Thailand",                                 "TH"  ],
478     212 : [ "Togo",                                     "TG"  ],
479     213 : [ "Tokelau",                                  "TK"  ],
480     214 : [ "Tonga",                             "TO"  ],
481     215 : [ "TrinidadAndTobago",                        "TT"  ],
482     216 : [ "Tunisia",                                  "TN"  ],
483     217 : [ "Turkey",                                   "TR"  ],
484     218 : [ "Turkmenistan",                             "TM"  ],
485     219 : [ "TurksAndCaicosIslands",                    "TC"  ],
486     220 : [ "Tuvalu",                                   "TV"  ],
487     221 : [ "Uganda",                                   "UG"  ],
488     222 : [ "Ukraine",                                  "UA"  ],
489     223 : [ "UnitedArabEmirates",                       "AE"  ],
490     224 : [ "UnitedKingdom",                            "GB"  ],
491     225 : [ "UnitedStates",                             "US"  ],
492     226 : [ "UnitedStatesMinorOutlyingIslands",         "UM"  ],
493     227 : [ "Uruguay",                                  "UY"  ],
494     228 : [ "Uzbekistan",                               "UZ"  ],
495     229 : [ "Vanuatu",                                  "VU"  ],
496     230 : [ "VaticanCityState",                         "VA"  ],
497     231 : [ "Venezuela",                                "VE"  ],
498     232 : [ "VietNam",                                  "VN"  ],
499     233 : [ "BritishVirginIslands",                     "VG"  ],
500     234 : [ "USVirginIslands",                          "VI"  ],
501     235 : [ "WallisAndFutunaIslands",                   "WF"  ],
502     236 : [ "WesternSahara",                            "EH"  ],
503     237 : [ "Yemen",                                    "YE"  ],
504     238 : [ "Yugoslavia",                               "YU"  ],
505     239 : [ "Zambia",                                   "ZM"  ],
506     240 : [ "Zimbabwe",                                 "ZW"  ],
507     241 : [ "SerbiaAndMontenegro",                      "CS"  ],
508     242 : [ "Montenegro",                               "ME"  ],
509     243 : [ "Serbia",                                   "RS"  ],
510     244 : [ "Saint Barthelemy",                         "BL"  ],
511     245 : [ "Saint Martin",                             "MF"  ],
512     246 : [ "LatinAmericaAndTheCaribbean",              "419" ]
513 }
514
515 script_list = {
516     0   : [ "AnyScript",         "" ],
517     1   : [ "Arabic",            "Arab" ],
518     2   : [ "Cyrillic",          "Cyrl" ],
519     3   : [ "Deseret",           "Dsrt" ],
520     4   : [ "Gurmukhi",          "Guru" ],
521     5   : [ "Simplified Han",    "Hans" ],
522     6   : [ "Traditional Han",   "Hant" ],
523     7   : [ "Latin",             "Latn" ],
524     8   : [ "Mongolian",         "Mong" ],
525     9   : [ "Tifinagh",          "Tfng" ]
526 }
527
528 def countryCodeToId(code):
529     for country_id in country_list:
530         if country_list[country_id][1] == code:
531             return country_id
532     return -1
533
534 def languageCodeToId(code):
535     for language_id in language_list:
536         if language_list[language_id][1] == code:
537             return language_id
538     return -1
539
540 def scriptCodeToId(code):
541     for script_id in script_list:
542         if script_list[script_id][1] == code:
543             return script_id
544     return -1