Skip to content

Instantly share code, notes, and snippets.

@ddebin
Created February 6, 2013 14:55
Show Gist options
  • Save ddebin/4723054 to your computer and use it in GitHub Desktop.
Save ddebin/4723054 to your computer and use it in GitHub Desktop.
ISO 639-1 language codes coming from http://www.loc.gov/standards/iso639-2/ISO-639-2_utf-8.txt
<?php
// ISO 639-1 language codes coming from http://www.loc.gov/standards/iso639-2/ISO-639-2_utf-8.txt
$iso_array_lang = array(
'ab'=>'Abkhazian',
'aa'=>'Afar',
'af'=>'Afrikaans',
'ak'=>'Akan',
'sq'=>'Albanian',
'am'=>'Amharic',
'ar'=>'Arabic',
'an'=>'Aragonese',
'hy'=>'Armenian',
'as'=>'Assamese',
'av'=>'Avaric',
'ae'=>'Avestan',
'ay'=>'Aymara',
'az'=>'Azerbaijani',
'bm'=>'Bambara',
'ba'=>'Bashkir',
'eu'=>'Basque',
'be'=>'Belarusian',
'bn'=>'Bengali',
'bh'=>'Bihari languages',
'bi'=>'Bislama',
'nb'=>'Bokm_l, Norwegian',
'bs'=>'Bosnian',
'br'=>'Breton',
'bg'=>'Bulgarian',
'my'=>'Burmese',
'es'=>'Castilian',
'ca'=>'Catalan',
'km'=>'Central Khmer',
'ch'=>'Chamorro',
'ce'=>'Chechen',
'ny'=>'Chewa',
'ny'=>'Chichewa',
'zh'=>'Chinese',
'za'=>'Chuang',
'cu'=>'Church Slavic',
'cu'=>'Church Slavonic',
'cv'=>'Chuvash',
'kw'=>'Cornish',
'co'=>'Corsican',
'cr'=>'Cree',
'hr'=>'Croatian',
'cs'=>'Czech',
'da'=>'Danish',
'dv'=>'Dhivehi',
'dv'=>'Divehi',
'nl'=>'Dutch',
'dz'=>'Dzongkha',
'en'=>'English',
'eo'=>'Esperanto',
'et'=>'Estonian',
'ee'=>'Ewe',
'fo'=>'Faroese',
'fj'=>'Fijian',
'fi'=>'Finnish',
'nl'=>'Flemish',
'fr'=>'French',
'ff'=>'Fulah',
'gd'=>'Gaelic',
'gl'=>'Galician',
'lg'=>'Ganda',
'ka'=>'Georgian',
'de'=>'German',
'ki'=>'Gikuyu',
'el'=>'Greek, Modern (1453-)',
'kl'=>'Greenlandic',
'gn'=>'Guarani',
'gu'=>'Gujarati',
'ht'=>'Haitian',
'ht'=>'Haitian Creole',
'ha'=>'Hausa',
'he'=>'Hebrew',
'hz'=>'Herero',
'hi'=>'Hindi',
'ho'=>'Hiri Motu',
'hu'=>'Hungarian',
'is'=>'Icelandic',
'io'=>'Ido',
'ig'=>'Igbo',
'id'=>'Indonesian',
'ia'=>'Interlingua (International Auxiliary Language Association)',
'ie'=>'Interlingue',
'iu'=>'Inuktitut',
'ik'=>'Inupiaq',
'ga'=>'Irish',
'it'=>'Italian',
'ja'=>'Japanese',
'jv'=>'Javanese',
'kl'=>'Kalaallisut',
'kn'=>'Kannada',
'kr'=>'Kanuri',
'ks'=>'Kashmiri',
'kk'=>'Kazakh',
'ki'=>'Kikuyu',
'rw'=>'Kinyarwanda',
'ky'=>'Kirghiz',
'kv'=>'Komi',
'kg'=>'Kongo',
'ko'=>'Korean',
'kj'=>'Kuanyama',
'ku'=>'Kurdish',
'kj'=>'Kwanyama',
'ky'=>'Kyrgyz',
'lo'=>'Lao',
'la'=>'Latin',
'lv'=>'Latvian',
'lb'=>'Letzeburgesch',
'li'=>'Limburgan',
'li'=>'Limburger',
'li'=>'Limburgish',
'ln'=>'Lingala',
'lt'=>'Lithuanian',
'lu'=>'Luba-Katanga',
'lb'=>'Luxembourgish',
'mk'=>'Macedonian',
'mg'=>'Malagasy',
'ms'=>'Malay',
'ml'=>'Malayalam',
'dv'=>'Maldivian',
'mt'=>'Maltese',
'gv'=>'Manx',
'mi'=>'Maori',
'mr'=>'Marathi',
'mh'=>'Marshallese',
'ro'=>'Moldavian',
'ro'=>'Moldovan',
'mn'=>'Mongolian',
'na'=>'Nauru',
'nv'=>'Navaho',
'nv'=>'Navajo',
'nd'=>'Ndebele, North',
'nr'=>'Ndebele, South',
'ng'=>'Ndonga',
'ne'=>'Nepali',
'nd'=>'North Ndebele',
'se'=>'Northern Sami',
'no'=>'Norwegian',
'nb'=>'Norwegian Bokm_l',
'nn'=>'Norwegian Nynorsk',
'ii'=>'Nuosu',
'ny'=>'Nyanja',
'nn'=>'Nynorsk, Norwegian',
'ie'=>'Occidental',
'oc'=>'Occitan (post 1500)',
'oj'=>'Ojibwa',
'cu'=>'Old Bulgarian',
'cu'=>'Old Church Slavonic',
'cu'=>'Old Slavonic',
'or'=>'Oriya',
'om'=>'Oromo',
'os'=>'Ossetian',
'os'=>'Ossetic',
'pi'=>'Pali',
'pa'=>'Panjabi',
'ps'=>'Pashto',
'fa'=>'Persian',
'pl'=>'Polish',
'pt'=>'Portuguese',
'pa'=>'Punjabi',
'ps'=>'Pushto',
'qu'=>'Quechua',
'ro'=>'Romanian',
'rm'=>'Romansh',
'rn'=>'Rundi',
'ru'=>'Russian',
'sm'=>'Samoan',
'sg'=>'Sango',
'sa'=>'Sanskrit',
'sc'=>'Sardinian',
'gd'=>'Scottish Gaelic',
'sr'=>'Serbian',
'sn'=>'Shona',
'ii'=>'Sichuan Yi',
'sd'=>'Sindhi',
'si'=>'Sinhala',
'si'=>'Sinhalese',
'sk'=>'Slovak',
'sl'=>'Slovenian',
'so'=>'Somali',
'st'=>'Sotho, Southern',
'nr'=>'South Ndebele',
'es'=>'Spanish',
'su'=>'Sundanese',
'sw'=>'Swahili',
'ss'=>'Swati',
'sv'=>'Swedish',
'tl'=>'Tagalog',
'ty'=>'Tahitian',
'tg'=>'Tajik',
'ta'=>'Tamil',
'tt'=>'Tatar',
'te'=>'Telugu',
'th'=>'Thai',
'bo'=>'Tibetan',
'ti'=>'Tigrinya',
'to'=>'Tonga (Tonga Islands)',
'ts'=>'Tsonga',
'tn'=>'Tswana',
'tr'=>'Turkish',
'tk'=>'Turkmen',
'tw'=>'Twi',
'ug'=>'Uighur',
'uk'=>'Ukrainian',
'ur'=>'Urdu',
'ug'=>'Uyghur',
'uz'=>'Uzbek',
'ca'=>'Valencian',
've'=>'Venda',
'vi'=>'Vietnamese',
'vo'=>'Volap_k',
'wa'=>'Walloon',
'cy'=>'Welsh',
'fy'=>'Western Frisian',
'wo'=>'Wolof',
'xh'=>'Xhosa',
'yi'=>'Yiddish',
'yo'=>'Yoruba',
'za'=>'Zhuang',
'zu'=>'Zulu'
);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment