Add more selectable languages to the login page

This commit is contained in:
doudoudzj 2018-12-11 19:25:09 +08:00
parent 163f113f1b
commit 15d525a9d0

View file

@ -1,13 +1,115 @@
<?php
$languages = array(
'af' => array('Afrikaans', 'Afrikaans'),
'sq' => array('የአልባኒያ', 'Albanian'),
'am' => array('Amharic', 'Amharic'),
'ar' => array('Arabic', 'Arabic'),
'hy' => array('Armenian', 'Armenian'),
'az' => array('Azərbaycan', 'Azeerbaijani'),
'eu' => array('Basque', 'Basque'),
'be' => array('Belarusian', 'Belarusian'),
'bn' => array('Bengali', 'Bengali'),
'bs' => array('Bosnian', 'Bosnian'),
'bg' => array('Bulgarian', 'Bulgarian'),
'my' => array('Burmese', 'Burmese'),
'ca' => array('Catalan', 'Catalan'),
'ce' => array('Cebuano', 'Cebuano'), // 宿务语
'ch' => array('Chichewa', 'Chichewa'),
'co' => array('Corsican', 'Corsican'),
'hr' => array('Croatian', 'Croatian'),
'cs' => array('Czech', 'Czech'),
'da' => array('Danish', 'Danish'),
'nl' => array('Dutch', 'Dutch'),
'en-US' => array('English', 'English'),
'eo' => array('Esperanto', 'Esperanto'),
'et' => array('Estonian', 'Estonian'),
'fa' => array('Farsi', 'Farsi'),
'fil' => array('Filipino', 'Filipino'),
'fi' => array('Finnish', 'Finnish'),
'fr' => array('français', 'French'),
'fy' => array('Frisian', 'Frisian'),
'gl' => array('Galician', 'Galician'),
'ka' => array('Georgian', 'Georgian'),
'de' => array('Deutsch', 'German'),
'el' => array('Greek', 'Greek'),
'gu' => array('Gujarati', 'Gujarati'),
'ko' => array('Haitian Creole', 'Haitian Creole'),
'ha' => array('Hausa', 'Hausa'),
'haw' => array('Hawaiian', 'Hawaiian'),
'he' => array('Hebrew', 'Hebrew'),
'hi' => array('Hindi', 'Hindi'),
'hm' => array('Hmong', 'Hmong'),
'hu' => array('Hungarian', 'Hungarian'),
'is' => array('Icelandic', 'Icelandic'),
'ig' => array('Igbo', 'Igbo'),
'id' => array('Indonesian', 'Indonesian'),
'ga' => array('Irish', 'Irish'),
'it' => array('Italian', 'Italian'),
'jp' => array('日本の', 'Japanese'),
'jv' => array('Wong Jawa', 'Javanese'),
'kn' => array('Kannada', 'Kannada'),
'kk' => array('Kazakh', 'Kazakh'),
'kh' => array('Khmer', 'Khmer'),
'ko' => array('한국의', 'Korean'),
'ku' => array('Kurdish', 'Kurdish'),
'kz' => array('Kyrgyz', 'Kyrgyz'),
'lo' => array('ພາສາລາວ', 'Lao'),
'la' => array('Latinae', 'Latin'),
'lv' => array('Latvian', 'Latvian'),
'lt' => array('Lithuanian', 'Lithuanian'),
'lu' => array('Luxembourgish', 'Luxembourgish'),
'mk' => array('Macedonian', 'Macedonian'),
'ma' => array('Malagasy', 'Malagasy'),
'ms' => array('Malay', 'Malay'),
'ml' => array('Malayalam', 'Malayalam'),
'mt' => array('Maltese', 'Maltese'),
'ma' => array('Maori', 'Maori'),
'mr' => array('Marathi', 'Marathi'),
'mn' => array('Mongolian', 'Mongolian'),
'ne' => array('Nepali', 'Nepali'),
'no' => array('Norwegian', 'Norwegian'),
'pa' => array('Pashto', 'Pashto'),
'pe' => array('Persian', 'Persian'),
'po' => array('Polish', 'Polish'),
'pg' => array('Português', 'Portuguese'),
'pu' => array('Punjabi', 'Punjabi'),
'ro' => array('Romanian', 'Romanian'),
'ru' => array('Russian', 'Russian'),
'sa' => array('Samoan', 'Samoan'),
'gd' => array('Scots Gaelic', 'Scots Gaelic'),
'sr' => array('Serbian', 'Serbian'),
'se' => array('Sesotho', 'Sesotho'),
'sh' => array('Shona', 'Shona'),
'si' => array('Sindhi', 'Sindhi'),
'sin' => array('Sinhala', 'Sinhala'),
'sk' => array('Slovak', 'Slovak'),
'sl' => array('Slovenian', 'Slovenian'),
'so' => array('Somali', 'Somali'),
'es' => array('Spanish', 'Spanish'),
'su' => array('Sundanese', 'Sundanese'),
'sw' => array('Swahili', 'Swahili'),
'sv' => array('Swedish', 'Swedish'),
'tj' => array('Tajik', 'Tajik'),
'ta' => array('Tamil', 'Tamil'),
'te' => array('Telugu', 'Telugu'),
'ts' => array('Thai', 'Thai'),
'tu' => array('Turkish', 'Turkish'),
'uk' => array('Ukrainian', 'Ukrainian'),
'ur' => array('Urdu', 'Urdu'),
'uz' => array('Uzbek', 'Uzbek'),
'vi' => array('Vietnamese', 'Vietnamese'),
'we' => array('Welsh', 'Welsh'),
'xh' => array('Xhosa', 'Xhosa'),
'yi' => array('Yiddish', 'Yiddish'),
'yo' => array('Yorùbá', 'Yoruba'),
'zu' => array('Zulu', 'Zulu'),
'zh-CN' => array('简体中文', 'Chinese_simplified'),
'zh-HK' => array('繁體中文(香港)', 'Chinese_traditional'),
'zh-SG' => array('简体中文(新加坡)', 'Chinese_simplified'),
'zh-TW' => array('繁體中文(台湾)', 'Chinese_traditional'),
'zh-SG' => array('中文(新加坡)', 'Chinese_simplified'),
'ko' => array('한국', 'Korean')
);
class Language
{
public $language_area;