1 /* Table of languages. 2 Copyright (C) 2001-2009 Free Software Foundation, Inc. 3 Written by Bruno Haible <haible@clisp.cons.org>, 2005. 4 5 This program is free software: you can redistribute it and/or modify 6 it under the terms of the GNU General Public License as published by 7 the Free Software Foundation; either version 3 of the License, or 8 (at your option) any later version. 9 10 This program is distributed in the hope that it will be useful, 11 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 GNU General Public License for more details. 14 15 You should have received a copy of the GNU General Public License 16 along with this program. If not, see <https://www.gnu.org/licenses/>. */ 17 18 #ifdef HAVE_CONFIG_H 19 # include "config.h" 20 #endif 21 22 /* Specification. */ 23 #include "lang-table.h" 24 25 /* Derived from ISO 639. */ 26 struct language_table_entry language_table[] = 27 { 28 { "aa", "Afar" }, 29 { "ab", "Abkhazian" }, 30 { "ace", "Achinese" }, 31 { "ae", "Avestan" }, 32 { "af", "Afrikaans" }, 33 { "ak", "Akan" }, 34 { "am", "Amharic" }, 35 { "an", "Aragonese" }, 36 { "ang", "Old English" }, 37 { "ar", "Arabic" }, 38 { "arn", "Mapudungun" }, 39 { "as", "Assamese" }, 40 { "ast", "Asturian" }, 41 { "av", "Avaric" }, 42 { "awa", "Awadhi" }, 43 { "ay", "Aymara" }, 44 { "az", "Azerbaijani" }, 45 { "ba", "Bashkir" }, 46 { "bal", "Baluchi" }, 47 { "ban", "Balinese" }, 48 { "be", "Belarusian" }, 49 { "bej", "Beja" }, 50 { "bem", "Bemba" }, 51 { "bg", "Bulgarian" }, 52 { "bh", "Bihari" }, 53 { "bho", "Bhojpuri" }, 54 { "bi", "Bislama" }, 55 { "bik", "Bikol" }, 56 { "bin", "Bini" }, 57 { "bm", "Bambara" }, 58 { "bn", "Bengali" }, 59 { "bo", "Tibetan" }, 60 { "br", "Breton" }, 61 { "bs", "Bosnian" }, 62 { "bug", "Buginese" }, 63 { "ca", "Catalan" }, 64 { "ce", "Chechen" }, 65 { "ceb", "Cebuano" }, 66 { "ch", "Chamorro" }, 67 { "co", "Corsican" }, 68 { "cr", "Cree" }, 69 { "crh", "Crimean Tatar" }, 70 { "cs", "Czech" }, 71 { "csb", "Kashubian" }, 72 { "cu", "Church Slavic" }, 73 { "cv", "Chuvash" }, 74 { "cy", "Welsh" }, 75 { "da", "Danish" }, 76 { "de", "German" }, 77 { "din", "Dinka" }, 78 { "doi", "Dogri" }, 79 { "dsb", "Lower Sorbian" }, 80 { "dv", "Divehi" }, 81 { "dz", "Dzongkha" }, 82 { "ee", "Ewe" }, 83 { "el", "Greek" }, 84 { "en", "English" }, 85 { "eo", "Esperanto" }, 86 { "es", "Spanish" }, 87 { "et", "Estonian" }, 88 { "eu", "Basque" }, 89 { "fa", "Persian" }, 90 { "ff", "Fulah" }, 91 { "fi", "Finnish" }, 92 { "fil", "Filipino" }, 93 { "fj", "Fijian" }, 94 { "fo", "Faroese" }, 95 { "fon", "Fon" }, 96 { "fr", "French" }, 97 { "fur", "Friulian" }, 98 { "fy", "Western Frisian" }, 99 { "ga", "Irish" }, 100 { "gd", "Scottish Gaelic" }, 101 { "gl", "Galician" }, 102 { "gn", "Guarani" }, 103 { "gon", "Gondi" }, 104 { "gsw", "Swiss German" }, /* can also be "Alsatian" */ 105 { "gu", "Gujarati" }, 106 { "gv", "Manx" }, 107 { "ha", "Hausa" }, 108 { "he", "Hebrew" }, 109 { "hi", "Hindi" }, 110 { "hil", "Hiligaynon" }, 111 { "hmn", "Hmong" }, 112 { "ho", "Hiri Motu" }, 113 { "hr", "Croatian" }, 114 { "hsb", "Upper Sorbian" }, 115 { "ht", "Haitian" }, 116 { "hu", "Hungarian" }, 117 { "hy", "Armenian" }, 118 { "hz", "Herero" }, 119 { "ia", "Interlingua" }, 120 { "id", "Indonesian" }, 121 { "ie", "Interlingue" }, 122 { "ig", "Igbo" }, 123 { "ii", "Sichuan Yi" }, 124 { "ik", "Inupiak" }, 125 { "ilo", "Iloko" }, 126 { "is", "Icelandic" }, 127 { "it", "Italian" }, 128 { "iu", "Inuktitut" }, 129 { "ja", "Japanese" }, 130 { "jab", "Hyam" }, 131 { "jv", "Javanese" }, 132 { "ka", "Georgian" }, 133 { "kab", "Kabyle" }, 134 { "kaj", "Jju" }, 135 { "kam", "Kamba" }, 136 { "kbd", "Kabardian" }, 137 { "kcg", "Tyap" }, 138 { "kdm", "Kagoma" }, 139 { "kg", "Kongo" }, 140 { "ki", "Kikuyu" }, 141 { "kj", "Kuanyama" }, 142 { "kk", "Kazakh" }, 143 { "kl", "Kalaallisut" }, 144 { "km", "Central Khmer" }, 145 { "kmb", "Kimbundu" }, 146 { "kn", "Kannada" }, 147 { "ko", "Korean" }, 148 { "kr", "Kanuri" }, 149 { "kru", "Kurukh" }, 150 { "ks", "Kashmiri" }, 151 { "ku", "Kurdish" }, 152 { "kv", "Komi" }, 153 { "kw", "Cornish" }, 154 { "ky", "Kirghiz" }, 155 { "kok", "Konkani" }, 156 { "la", "Latin" }, 157 { "lb", "Letzeburgesch" }, 158 { "lg", "Ganda" }, 159 { "li", "Limburgish" }, 160 { "ln", "Lingala" }, 161 { "lo", "Laotian" }, 162 { "lt", "Lithuanian" }, 163 { "lu", "Luba-Katanga" }, 164 { "lua", "Luba-Lulua" }, 165 { "luo", "Luo" }, 166 { "lv", "Latvian" }, 167 { "mad", "Madurese" }, 168 { "mag", "Magahi" }, 169 { "mai", "Maithili" }, 170 { "mak", "Makasar" }, 171 { "man", "Mandingo" }, 172 { "men", "Mende" }, 173 { "mg", "Malagasy" }, 174 { "mh", "Marshallese" }, 175 { "mi", "Maori" }, 176 { "min", "Minangkabau" }, 177 { "mk", "Macedonian" }, 178 { "ml", "Malayalam" }, 179 { "mn", "Mongolian" }, 180 { "mni", "Manipuri" }, 181 { "mo", "Moldavian" }, 182 { "moh", "Mohawk" }, 183 { "mos", "Mossi" }, 184 { "mr", "Marathi" }, 185 { "ms", "Malay" }, 186 { "mt", "Maltese" }, 187 { "mwr", "Marwari" }, 188 { "my", "Burmese" }, 189 { "myn", "Mayan" }, 190 { "na", "Nauru" }, 191 { "nap", "Neapolitan" }, 192 { "nah", "Nahuatl" }, 193 { "nb", "Norwegian Bokmal" }, 194 { "nd", "North Ndebele" }, 195 { "nds", "Low Saxon" }, 196 { "ne", "Nepali" }, 197 { "ng", "Ndonga" }, 198 { "nl", "Dutch" }, 199 { "nn", "Norwegian Nynorsk" }, 200 { "no", "Norwegian" }, 201 { "nr", "South Ndebele" }, 202 { "nso", "Northern Sotho" }, 203 { "nv", "Navajo" }, 204 { "ny", "Nyanja" }, 205 { "nym", "Nyamwezi" }, 206 { "nyn", "Nyankole" }, 207 { "oc", "Occitan" }, 208 { "oj", "Ojibwa" }, 209 { "om", "(Afan) Oromo" }, 210 { "or", "Oriya" }, 211 { "os", "Ossetian" }, 212 { "pa", "Punjabi" }, 213 { "pag", "Pangasinan" }, 214 { "pam", "Pampanga" }, 215 { "pap", "Papiamento" }, 216 { "pbb", "Páez" }, 217 { "pi", "Pali" }, 218 { "pl", "Polish" }, 219 { "ps", "Pashto" }, 220 { "pt", "Portuguese" }, 221 { "qu", "Quechua" }, 222 { "raj", "Rajasthani" }, 223 { "rm", "Romansh" }, 224 { "rn", "Kirundi" }, 225 { "ro", "Romanian" }, 226 { "ru", "Russian" }, 227 { "rw", "Kinyarwanda" }, 228 { "sa", "Sanskrit" }, 229 { "sah", "Yakut" }, 230 { "sas", "Sasak" }, 231 { "sat", "Santali" }, 232 { "sc", "Sardinian" }, 233 { "scn", "Sicilian" }, 234 { "sd", "Sindhi" }, 235 { "se", "Northern Sami" }, 236 { "sg", "Sango" }, 237 { "shn", "Shan" }, 238 { "si", "Sinhala" }, 239 { "sid", "Sidamo" }, 240 { "sk", "Slovak" }, 241 { "sl", "Slovenian" }, 242 { "sm", "Samoan" }, 243 { "sma", "Southern Sami" }, 244 { "smj", "Lule Sami" }, 245 { "smn", "Inari Sami" }, 246 { "sms", "Skolt Sami" }, 247 { "sn", "Shona" }, 248 { "so", "Somali" }, 249 { "sq", "Albanian" }, 250 { "sr", "Serbian" }, 251 { "srr", "Serer" }, 252 { "ss", "Siswati" }, 253 { "st", "Sesotho" }, 254 { "su", "Sundanese" }, 255 { "suk", "Sukuma" }, 256 { "sus", "Susu" }, 257 { "sv", "Swedish" }, 258 { "sw", "Swahili" }, 259 { "ta", "Tamil" }, 260 { "te", "Telugu" }, 261 { "tem", "Timne" }, 262 { "tet", "Tetum" }, 263 { "tg", "Tajik" }, 264 { "th", "Thai" }, 265 { "ti", "Tigrinya" }, 266 { "tiv", "Tiv" }, 267 { "tk", "Turkmen" }, 268 { "tl", "Tagalog" }, 269 { "tn", "Setswana" }, 270 { "to", "Tonga" }, 271 { "tr", "Turkish" }, 272 { "ts", "Tsonga" }, 273 { "tt", "Tatar" }, 274 { "tum", "Tumbuka" }, 275 { "tw", "Twi" }, 276 { "ty", "Tahitian" }, 277 { "ug", "Uighur" }, 278 { "uk", "Ukrainian" }, 279 { "umb", "Umbundu" }, 280 { "ur", "Urdu" }, 281 { "uz", "Uzbek" }, 282 { "ve", "Venda" }, 283 { "vi", "Vietnamese" }, 284 { "vo", "Volapuk" }, 285 { "wal", "Walamo" }, 286 { "war", "Waray" }, 287 { "wen", "Sorbian" }, 288 { "wo", "Wolof" }, 289 { "xh", "Xhosa" }, 290 { "yao", "Yao" }, 291 { "yi", "Yiddish" }, 292 { "yo", "Yoruba" }, 293 { "za", "Zhuang" }, 294 { "zh", "Chinese" }, 295 { "zu", "Zulu" }, 296 { "zap", "Zapotec" } 297 }; 298 const size_t language_table_size = sizeof (language_table) / sizeof (language_table[0]); 299 300 /* The language names for variants of languages, according to the catalog name 301 (usually built from the language code and territory code). 302 Should be consistent with the list of languages found on the TP site, see 303 the URL contained in gettext-tools/projects/TP/teams.url. */ 304 struct language_table_entry language_variant_table[] = 305 { 306 { "de_AT", "Austrian" }, 307 { "en_GB", "English (British)" }, 308 { "es_AR", "Argentinian" }, 309 { "es_IC", "Spanish (Canary Islands)" }, 310 { "pt_BR", "Brazilian Portuguese" }, 311 { "zh_CN", "Chinese (simplified)" }, 312 { "zh_HK", "Chinese (Hong Kong)" }, 313 { "zh_TW", "Chinese (traditional)" } 314 }; 315 const size_t language_variant_table_size = sizeof (language_variant_table) / sizeof (language_variant_table[0]); 316