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