2020-08-06 10:09:12 +02:00
|
|
|
<?PHP
|
|
|
|
/**
|
|
|
|
* Contains a class for controlling the list of available languages.
|
|
|
|
*
|
|
|
|
* @author Joshua Ramon Enslin <joshua@museum-digital.de>
|
|
|
|
*/
|
2020-08-07 00:12:49 +02:00
|
|
|
declare(strict_types = 1);
|
2020-08-06 10:09:12 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Class containing static functions for getting available languages.
|
|
|
|
*/
|
2020-08-29 17:21:18 +02:00
|
|
|
final class MDLanguagesSet {
|
2020-08-06 10:09:12 +02:00
|
|
|
|
|
|
|
const AVAILABLE_LANGUAGES = [
|
|
|
|
'aa' => 'Afar-áf',
|
|
|
|
'ab' => 'аҧсуа бызшәа',
|
|
|
|
'ae' => 'Avestan',
|
|
|
|
'af' => 'Afrikaans',
|
|
|
|
'ak' => 'Akan',
|
|
|
|
'am' => 'Amharic',
|
|
|
|
'an' => 'Aragonese',
|
|
|
|
'ar' => 'العربية',
|
|
|
|
'as' => 'Assamese',
|
|
|
|
'av' => 'Avaric',
|
|
|
|
'ay' => 'Aymara',
|
|
|
|
'az' => 'Azerbaijani',
|
|
|
|
'ba' => 'Bashkir',
|
|
|
|
'be' => 'беларуская мова',
|
|
|
|
'bg' => 'български език',
|
|
|
|
'bh' => 'Bihari',
|
|
|
|
'bi' => 'Bislama',
|
|
|
|
'bm' => 'Bambara',
|
|
|
|
'bn' => 'Bengali',
|
|
|
|
'bo' => 'བོད་སྐད',
|
|
|
|
'br' => 'Breton',
|
|
|
|
'bs' => 'Bosnian',
|
|
|
|
'ca' => 'català',
|
|
|
|
'ce' => 'Chechen',
|
|
|
|
'ch' => 'Chamorro',
|
|
|
|
'co' => 'Corsican',
|
|
|
|
'cr' => 'Cree',
|
|
|
|
'cs' => 'čeština',
|
|
|
|
'cu' => 'словѣньскъ ѩзыкъ',
|
|
|
|
'cv' => 'Chuvash',
|
|
|
|
'cy' => 'Welsh',
|
|
|
|
'da' => 'Danish',
|
|
|
|
'de' => 'Deutsch',
|
|
|
|
'dsb' => 'Dolnoserbšćina',
|
|
|
|
'dv' => 'Divehi; Dhivehi; Maldivian;',
|
|
|
|
'dz' => 'Dzongkha',
|
|
|
|
'ee' => 'Ewe',
|
|
|
|
'egy' => 'Egyptian language',
|
|
|
|
'el' => 'ελληνικά',
|
|
|
|
'en' => 'English',
|
|
|
|
'eo' => 'Esperanto',
|
|
|
|
'es' => 'Spanish; Castilian',
|
|
|
|
'et' => 'Estonian',
|
|
|
|
'eu' => 'Basque',
|
|
|
|
'fa' => 'Persian',
|
|
|
|
'ff' => 'Fula; Fulah; Pulaar; Pular',
|
|
|
|
'fi' => 'Finnish',
|
|
|
|
'fj' => 'Fijian',
|
|
|
|
'fo' => 'Faroese',
|
|
|
|
'fr' => 'French',
|
|
|
|
'fy' => 'Western Frisian',
|
|
|
|
'ga' => 'Irish',
|
|
|
|
'gd' => 'Scottish Gaelic; Gaelic',
|
|
|
|
'gl' => 'Galician',
|
|
|
|
'gn' => 'Guaraní',
|
|
|
|
'grc' => 'Ancient Greek',
|
|
|
|
'gu' => 'Gujarati',
|
|
|
|
'gv' => 'Manx',
|
|
|
|
'ha' => 'Hausa',
|
|
|
|
'he' => 'Hebrew (modern)',
|
|
|
|
'hi' => 'Hindi',
|
|
|
|
'ho' => 'Hiri Motu',
|
|
|
|
'hr' => 'Croatian',
|
|
|
|
'hsb' => 'Hornjoserbšćina',
|
|
|
|
'ht' => 'Haitian; Haitian Creole',
|
|
|
|
'hu' => 'Magyar',
|
|
|
|
'hy' => 'Armenian',
|
|
|
|
'hz' => 'Herero',
|
|
|
|
'ia' => 'Interlingua',
|
|
|
|
'id' => 'Bahasa Indonesia',
|
|
|
|
'ie' => 'Interlingue',
|
|
|
|
'ig' => 'Igbo',
|
|
|
|
'ii' => 'Nuosu',
|
|
|
|
'ik' => 'Inupiaq',
|
|
|
|
'io' => 'Ido',
|
|
|
|
'is' => 'Icelandic',
|
|
|
|
'it' => 'Italian',
|
|
|
|
'iu' => 'Inuktitut',
|
|
|
|
'ja' => 'Japanese (ja)',
|
|
|
|
'jv' => 'Javanese (jv)',
|
|
|
|
'ka' => 'Georgian',
|
|
|
|
'kg' => 'Kongo',
|
|
|
|
'ki' => 'Kikuyu, Gikuyu',
|
|
|
|
'kj' => 'Kwanyama, Kuanyama',
|
|
|
|
'kk' => 'Kazakh',
|
|
|
|
'kl' => 'Kalaallisut, Greenlandic',
|
|
|
|
'km' => 'Khmer',
|
|
|
|
'kn' => 'Kannada',
|
|
|
|
'ko' => 'Korean',
|
|
|
|
'kr' => 'Kanuri',
|
|
|
|
'ks' => 'Kashmiri',
|
|
|
|
'ku' => 'Kurdish',
|
|
|
|
'kv' => 'Komi',
|
|
|
|
'kw' => 'Cornish',
|
|
|
|
'ky' => 'Kirghiz, Kyrgyz',
|
|
|
|
'la' => 'Latin',
|
|
|
|
'lb' => 'Lëtzebuergesch',
|
|
|
|
'lg' => 'Luganda',
|
|
|
|
'li' => 'Limburgish, Limburgan, Limburger',
|
|
|
|
'ln' => 'Lingala',
|
|
|
|
'lo' => 'Lao',
|
|
|
|
'lt' => 'lietuvių kalba',
|
|
|
|
'lu' => 'Luba-Katanga',
|
|
|
|
'lv' => 'Latvian',
|
|
|
|
'mg' => 'Malagasy',
|
|
|
|
'mh' => 'Marshallese',
|
|
|
|
'mi' => 'Maori',
|
|
|
|
'mk' => 'Macedonian',
|
|
|
|
'ml' => 'Malayalam',
|
|
|
|
'mn' => 'Mongolian',
|
|
|
|
'mr' => 'Marathi (Mara?hi)',
|
|
|
|
'ms' => 'Malay',
|
|
|
|
'mt' => 'Maltese',
|
|
|
|
'my' => 'Burmese',
|
|
|
|
'na' => 'Nauru',
|
|
|
|
'nb' => 'Bokmål',
|
|
|
|
'nd' => 'North Ndebele',
|
|
|
|
'ne' => 'Nepali',
|
|
|
|
'ng' => 'Ndonga',
|
|
|
|
'nl' => 'Nederlands',
|
|
|
|
'nn' => 'Nynorsk',
|
|
|
|
'no' => 'Norsk',
|
|
|
|
'nr' => 'South Ndebele',
|
|
|
|
'nv' => 'Navajo, Navaho',
|
|
|
|
'ny' => 'Chichewa; Chewa; Nyanja',
|
|
|
|
'oc' => 'Occitan',
|
|
|
|
'oj' => 'Ojibwe, Ojibwa',
|
|
|
|
'om' => 'Oromo',
|
|
|
|
'or' => 'Oriya',
|
|
|
|
'os' => 'Ossetian, Ossetic',
|
|
|
|
'pa' => 'Panjabi, Punjabi',
|
|
|
|
'pi' => 'Pali',
|
|
|
|
'pl' => 'Polish',
|
|
|
|
'ps' => 'Pashto, Pushto',
|
|
|
|
'pt' => 'Português',
|
|
|
|
'qu' => 'Quechua',
|
|
|
|
'rm' => 'Romansh',
|
|
|
|
'rn' => 'Kirundi',
|
|
|
|
'ro' => 'Română',
|
|
|
|
'ru' => 'Russian',
|
|
|
|
'rw' => 'Kinyarwanda',
|
|
|
|
'sa' => 'Sanskrit (संस्कृत)',
|
|
|
|
'sc' => 'Sardinian',
|
|
|
|
'sd' => 'Sindhi',
|
|
|
|
'se' => 'Northern Sami',
|
|
|
|
'sg' => 'Sango',
|
|
|
|
'si' => 'Sinhala, Sinhalese',
|
|
|
|
'sk' => 'Slovenčina',
|
|
|
|
'sl' => 'Slovenščina',
|
|
|
|
'sm' => 'Samoan',
|
|
|
|
'sn' => 'Shona',
|
|
|
|
'so' => 'Somali',
|
|
|
|
'sq' => 'Albanian',
|
|
|
|
'sr' => 'Serbian',
|
|
|
|
'ss' => 'Swati',
|
|
|
|
'st' => 'Southern Sotho',
|
|
|
|
'su' => 'Sundanese',
|
|
|
|
'sv' => 'Swedish',
|
|
|
|
'sw' => 'Swahili',
|
|
|
|
'ta' => 'Tamil',
|
|
|
|
'te' => 'Telugu',
|
|
|
|
'tg' => 'Tajik',
|
|
|
|
'th' => 'ภาษาไทย',
|
|
|
|
'ti' => 'Tigrinya',
|
|
|
|
'tk' => 'Turkmen',
|
|
|
|
'tl' => 'Tagalog',
|
|
|
|
'tn' => 'Tswana',
|
|
|
|
'to' => 'Tonga (Tonga Islands)',
|
|
|
|
'tr' => 'Türkçe',
|
|
|
|
'ts' => 'Tsonga',
|
|
|
|
'tt' => 'Tatar',
|
|
|
|
'tw' => 'Twi',
|
|
|
|
'ty' => 'Tahitian',
|
|
|
|
'ug' => 'Uighur, Uyghur',
|
|
|
|
'uk' => 'Ukrainian',
|
|
|
|
'ur' => 'اردو',
|
|
|
|
'uz' => 'Uzbek',
|
|
|
|
've' => 'Venda',
|
|
|
|
'vi' => 'Vietnamese',
|
|
|
|
'vo' => 'Volapük',
|
|
|
|
'wa' => 'Walloon',
|
|
|
|
'wen' => 'Sorbisch',
|
|
|
|
'wo' => 'Wolof',
|
|
|
|
'xh' => 'Xhosa',
|
|
|
|
'yi' => 'Yiddish',
|
|
|
|
'yo' => 'Yoruba',
|
|
|
|
'za' => 'Zhuang, Chuang',
|
|
|
|
'zh' => 'Chinese',
|
|
|
|
'zu' => 'Zulu'
|
|
|
|
];
|
|
|
|
|
|
|
|
}
|