<?php
/**
* Basic lang file structure - borrowed from phpMyAdmin, lib/select_lang.lib.php.
*
* @package default
* @author phpMyAdmin group
* @version $Revision: 1.7 $
* @since PHP 4.1
*/
// language choices
/**
* All the supported languages have to be listed in the array below.
* 1. The key must be the "official" ISO 639 language code and, if required,
* the dialect code. It can also contain some informations about the
* charset (see the Russian case).
* 2. The first of the values associated to the key is used in a regular
* expression to find some keywords corresponding to the language inside two
* environment variables.
* These values contains:
* - the "official" ISO language code and, if required, the dialect code
* also ('bu' for Bulgarian, 'fr([-_][[:alpha:]]{2})?' for all French
* dialects, 'zh[-_]tw' for Chinese traditional...);
* - the '|' character (it means 'OR');
* - the full language name.
* 3. The second values associated to the key is the name of the file to load
* without the 'inc.php' extension.
* 4. The last values associated to the key is the language code as defined by
* the RFC1766.
*
* Beware that the sorting order (first values associated to keys by
* alphabetical reverse order in the array) is important: 'zh-tw' (chinese
* traditional) must be detected before 'zh' (chinese simplified) for
* example.
*
* When there are more than one charset for a language, we put the -utf-8
* first.
*
* For Russian, we put 1251 first, because MSIE does not accept 866
* and users would not see anything.
*/
$GLOBALS['_SGL']['LANGUAGE'] = (SGL::isMinimalInstall())
? array('en-iso-8859-15'=> array('en([-_][[:alpha:]]{2})?|english', 'english-iso-8859-15', 'en' , 'en_US,en_US.iso88591,en_US.iso885915', 'english'))
: array(
// This Language is SGL NOT EXIST
'af-iso-8859-1'=> array('af|afrikaans','afrikaans-iso-8859-1','af', 'af_ZA,af_ZA.iso88591','afrikaans'),
'af-utf-8'=> array('af|afrikaans','afrikaans-utf-8', 'af', 'af_ZA.utf8', 'afrikaans', 'afrikaans-iso-8859-1', 'latin1'),
'sq-iso-8859-1'=> array('sq|albanian','albanian-iso-8859-1','sq', 'sq_AL,sq_AL.iso88591','albanian'),
'sq-utf-8'=> array('sq|albanian','albanian-utf-8', 'sq', 'sq_AL.utf8','albanian', 'albanian-iso-8859-1', 'latin1'),
'ar-windows-1256'=> array('ar|arabic','arabic-windows-1256','ar', 'ar_AE','arabic'),
'ar-utf-8'=> array('ar|arabic','arabic-utf-8', 'ar', 'ar_AE.utf8','arabic', 'arabic-windows-1256', 'cp1256'),
'az-iso-8859-9'=> array('az|azerbaijani','azerbaijani-iso-8859-9','az', 'az_AZ.utf8' , 'azerbaijani'),
'az-utf-8'=> array('az|azerbaijani','azerbaijani-utf-8' , 'az', 'az_AZ.utf8' , 'azerbaijani', 'azerbaijani-iso-8859-9', 'latin5'),
'eu-iso-8859-1'=> array('eu|basque','basque-iso-8859-1','eu', 'eu_ES,eu_ES.iso88591' , 'basque'),
'eu-utf-8'=> array('eu|basque','basque-utf-8', 'eu', 'eu_ES.utf8' , 'basque', 'basque-iso-8859-1', 'latin1'),
'becyr-windows-1251'=> array('becyr|belarusian','belarusian-windows-1251','becyr', 'be_BY,be_BY.CP1251' , 'belarusian'),
'becyr-utf-8'=> array('becyr|belarusian','belarusian-utf-8', 'becyr', 'be_BY.utf8' , 'belarusian', 'belarusian-windows-1251', 'cp1251'),
'bs-windows-1250'=> array('bs|bosnian','bosnian-windows-1250','bs', 'bs_BA' , 'bosnian'),
'bs-utf-8'=> array('bs|bosnian','bosnian-utf-8', 'bs', 'bs_BA.utf8' , 'bosnian', 'bosnian-windows-1250' , 'cp1250'),
'bg-windows-1251'=> array('bg|bulgarian','bulgarian-windows-1251','bg', 'bg_BG,bg_BG.CP1251' , 'bulgarian'),
'bg-utf-8'=> array('bg|bulgarian','bulgarian-utf-8', 'bg', 'bg_BG.utf8' , 'bulgarian', 'bulgarian-windows-1251', 'cp1251'),
'ca-iso-8859-1'=> array('ca|catalan','catalan-iso-8859-1','ca', 'ca_ES,ca_ES.iso88591' , 'catalan'),
'ca-utf-8'=> array('ca|catalan','catalan-utf-8', 'ca', 'ca_ES.utf8' , 'catalan', 'catalan-iso-8859-1', 'latin1'),
'hr-windows-1250'=> array('hr|croatian','croatian-windows-1250','hr', 'hr_HR' , 'croatian'),
'hr-utf-8'=> array('hr|croatian','croatian-utf-8', 'hr', 'hr_HR.utf8' , 'croatian', 'croatian-windows-1250', 'cp1250'),
'da-iso-8859-1'=> array('da|danish','danish-iso-8859-1','da', 'da_DK,da_DK.iso88591,da_DK.iso885915' , 'danish'),
'da-utf-8'=> array('da|danish','danish-utf-8','da', 'da_DK.utf8' , 'danish', 'danish-iso-8859-1', 'latin1'),
'nl-iso-8859-1'=> array('nl|dutch', 'dutch-iso-8859-1','nl', 'nl_NL,nl_NL.iso88591' , 'dutch'),
'nl-utf-8'=> array('nl|dutch','dutch-utf-8','nl', 'nl_NL.utf8' , 'dutch', 'dutch-iso-8859-1', 'latin1'),
'et-iso-8859-1'=> array('et|estonian','estonian-iso-8859-1','et', 'et_EE,et_EE.iso88591,et_EE.iso885915' , 'estonian'),
'et-utf-8'=> array('et|estonian','estonian-utf-8','et', 'et_EE.utf8' , 'estonian', 'estonian-iso-8859-1', 'latin1'),
'fi-iso-8859-1'=> array('fi|finnish','finnish-iso-8859-1','fi', 'fi_FI,fi_FI.iso88591' , 'finnish'),
'fi-utf-8'=> array('fi|finnish','finnish-utf-8','fi', 'fi_FI.utf8' , 'finnish', 'finnish-iso-8859-1', 'latin1'),
'gl-iso-8859-1'=> array('gl|galician','galician-iso-8859-1','gl', 'gl_ES,gl_ES.iso88591', 'galician'),
'gl-utf-8'=> array('gl|galician','galician-utf-8','gl', 'gl_ES.utf8', 'galician', 'galician-iso-8859-1', 'latin1'),
'el-iso-8859-7'=> array('el|greek','greek-iso-8859-7','el', 'el_GR,el_GR.iso88597', 'greek'),
'el-utf-8'=> array('el|greek','greek-utf-8','el', 'el_GR.utf8', 'greek', 'greek-iso-8859-7', 'greek'),
'he-iso-8859-8'=> array('he|hebrew','hebrew-iso-8859-8','he', 'he_IL,he_IL.iso88598', 'hebrew'),
'he-utf-8'=> array('he|hebrew','hebrew-utf-8', 'he', 'he_IL.utf8', 'hebrew', 'hebrew-iso-8859-8', 'hebrew'),
'hu-iso-8859-2'=> array('hu|hungarian','hungarian-iso-8859-2','hu', 'hu_HU,hu_HU.iso88592', 'hungarian'),
'hu-utf-8'=> array('hu|hungarian','hungarian-utf-8','hu', 'hu_HU.utf8', 'hungarian', 'hungarian-iso-8859-2', 'latin2'),
'id-iso-8859-1'=> array('id|indonesian','indonesian-iso-8859-1','id', 'id_ID,id_ID.iso88591', 'indonesian'),
'id-utf-8'=> array('id|indonesian','indonesian-utf-8','id', 'id_ID.utf8', 'indonesian', 'indonesian-iso-8859-1', 'latin1'),
'ja-shift_jis'=> array('ja|japanese','japanese-shift_jis','ja', 'ja_JP,ja_JP.eucjp,ja_JP.ujis', 'japanese'),
'ja-utf-8'=> array('ja|japanese', 'japanese-utf-8', 'ja', 'ja_JP.utf8', 'japanese', 'japanese-shift_jis', 'sjis'),
'ko-euc-kr'=> array('ko|korean','korean-euc-kr','ko', 'ko_KR,ko_KR.euckr', 'korean'),
'ko-utf-8'=> array('ko|korean','korean-utf-8','ko', 'ko_KR.utf8', 'korean', 'korean-euc-kr', 'euckr'),
'lv-windows-1257'=> array('lv|latvian','latvian-windows-1257','lv', 'lv_LV', 'latvian'),
'lv-utf-8'=> array('lv|latvian','latvian-utf-8','lv', 'lv_LV.utf8', 'latvian', 'latvian-windows-1257', 'cp1257'),
'lt-windows-1257'=> array('lt|lithuanian','lithuanian-windows-1257','lt', 'lt_LT', 'lithuanian'),
'lt-utf-8'=> array('lt|lithuanian','lithuanian-utf-8','lt', 'lt_LT.utf8', 'lithuanian', 'lithuanian-windows-1257', 'cp1257'),
'fa-windows-1256'=> array('fa|persian','persian-windows-1256','fa', 'fa_IR', 'persian'),
'fa-utf-8'=> array('fa|persian','persian-utf-8','fa', 'fa_IR.utf8', 'persian', 'persian-windows-1256', 'cp1256'),
'ro-iso-8859-1'=> array('ro|romanian','romanian-iso-8859-1','ro', 'ro_RO,ro_RO.iso88592', 'romanian'),
'ro-utf-8'=> array('ro|romanian','romanian-utf-8','ro', 'ro_RO.utf8', 'romanian', 'romanian-iso-8859-1', 'latin1'),
'srcyr-windows-1251'=> array('srcyr|serbian','serbian-windows-1251','srcyr', 'sr_CS', 'serbian'),
'srcyr-utf-8'=> array('srcyr|serbian','serbian-utf-8','srcyr', 'sr_CS.utf8', 'serbian', 'serbian-windows-1251', 'cp1251'),
'srcyr-windows-1250'=> array('srcyr|serbian','serbian-latin-windows-1250','srcyr','sr_RS@latin', 'serbian latin'),
'srcyr-lt-utf-8'=> array('srcyr|serbian latin','serbian-latin-utf-8','srcyr','sr_RS.utf8,sr_RS.utf8@latin', 'serbian latin', 'serbian-latin-windows-1250', 'cp1250'),
'sk-windows-1250'=> array('sk|slovak','slovak-windows-1250','sk', 'sk_SK', 'slovak'),
'sk-utf-8'=> array('sk|slovak','slovak-utf-8','sk', 'sk_SK', 'slovak', 'slovak-windows-1250', 'cp1250'),
'sl-iso-8859-2'=> array('sl|slovenian','slovenian-iso-8859-2','sl', 'sl_SI,sl_SI.iso88592', 'slovenian'),
'sl-utf-8'=> array('sl|slovenian','slovenian-utf-8','sl', 'sl_SI.utf8', 'slovenian', 'slovenian-iso-8859-2', 'latin2'),
'sv-iso-8859-1'=> array('sv|swedish','swedish-iso-8859-1','sv', 'sv_FI,sv_FI.iso88591', 'swedish'),
'sv-utf-8'=> array('sv|swedish','swedish-utf-8','sv', 'sv_FI.utf8', 'swedish', 'swedish-iso-8859-1', 'latin1'),
'tt-iso-8859-9'=> array('tt|tatarish','tatarish-iso-8859-9','tt', 'tt_RU.utf8', 'tatarish'),
'tt-utf-8'=> array('tt|tatarish','tatarish-utf-8','tt', 'tt_RU.utf8', 'tatarish', 'tatarish-iso-8859-9', 'latin5'),
'uk-windows-1251'=> array('uk|ukrainian','ukrainian-windows-1251','uk', 'uk_UA,uk_UA.KOI8U', 'ukrainian'),
'uk-utf-8'=> array('uk|ukrainian','ukrainian-utf-8','uk', 'uk_UA.utf8', 'ukrainian', 'ukrainian-windows-1251', 'cp1251'),
// This Language is SGL
'de-iso-8859-1'=> array('de([-_][[:alpha:]]{2})?|german', 'german-iso-8859-1', 'de', 'de_DE,de_DE.iso88591', 'german'),
'de-utf-8'=> array('de([-_][[:alpha:]]{2})?|german', 'german-utf-8', 'de', 'de_DE.utf8', 'german', 'german-iso-8859-1', 'latin1'),
'en-iso-8859-15'=> array('en([-_][[:alpha:]]{2})?|english', 'english-iso-8859-15', 'en' , 'en_US,en_US.iso88591,en_US.iso885915', 'english'),
'en-utf-8'=> array('en([-_][[:alpha:]]{2})?|english', 'english-utf-8', 'en' , 'en_US.utf8', 'english', 'english-iso-8859-15', 'latin1'),
'th-tis-620'=> array('th|thai', 'th-tis-620', 'th', 'th_TH,th_TH.tis620', 'thai'),
'th-utf-8'=> array('th|thai', 'th-utf-8', 'th', 'th_TH.utf8', 'thai', 'th-tis-620', 'tis620'),
'es-iso-8859-1'=> array('es([-_][[:alpha:]]{2})?|spanish', 'spanish-iso-8859-1', 'es', 'es_ES,es_ES.iso88591', 'spanish'),
'es-utf-8'=> array('es([-_][[:alpha:]]{2})?|spanish', 'spanish-utf-8', 'es', 'es_ES.utf8', 'spanish', 'spanish-iso-8859-1', 'latin1'),
'es-windows-1252'=> array('es|spanish latin', 'spanish_latin-windows-1252', 'es', 'es_ES', 'spanish latin'),
'es-lt-utf-8'=> array('es|spanish latin', 'spanish_latin-utf-8', 'es', 'es_ES.utf8', 'spanish latin', 'spanish_latin-windows-1252', 'latin2'),
'it-iso-8859-1'=> array('it|italian', 'italian-iso-8859-1', 'it', 'it_IT,it_IT.iso88591', 'italian'),
'it-utf-8'=> array('it|italian', 'italian-utf-8', 'it', 'it_IT.utf8', 'italian', 'italian-iso-8859-1', 'latin1'),
'ms-iso-8859-1'=> array('ms|malaysian', 'malaysian-iso-8859-1', 'ms', 'ms_MY,ms_MY.iso88591', 'malaysian'),
'ms-utf-8'=> array('ms|malaysian', 'malaysian-utf-8', 'ms', 'ms_MY.utf-8', 'malaysian', 'malaysian-iso-8859-1', 'latin1'),
'no-iso-8859-1'=> array('no|norwegian', 'norwegian-iso-8859-1', 'no', 'no_NO,no_NO.iso88591', 'norwegian'),
'no-utf-8'=> array('no|norwegian', 'norwegian-utf-8', 'no', 'no_NO.utf8', 'norwegian', 'norwegian-iso-8859-1', 'latin1'),
'fr-iso-8859-1'=> array('fr([-_][[:alpha:]]{2})?|french', 'french-iso-8859-1', 'fr', 'fr_FR,fr_FR.iso88591', 'french'),
'fr-utf-8'=> array('fr([-_][[:alpha:]]{2})?|french', 'french-utf-8', 'fr', 'fr_FR.utf8', 'french', 'french-iso-8859-1', 'latin1'),
'pl-iso-8859-2'=> array('pl|polish', 'polish-iso-8859-2', 'pl', 'pl_PL,pl_PL.iso88592', 'polish'),
'pl-utf-8'=> array('pl|polish', 'polish-utf-8', 'pl', 'pl_PL.utf8', 'polish', 'polish-iso-8859-2', 'latin2'),
'tr-iso-8859-9'=> array('tr|turkish', 'turkish-iso-8859-9', 'tr', 'tr_TR,tr_TR.iso88599', 'turkish'),
'tr-utf-8'=> array('tr|turkish', 'turkish-utf-8', 'tr', 'tr_TR.utf8', 'turkish', 'turkish-iso-8859-9', 'latin5'),
'pt-iso-8859-1'=> array('pt([-_][[:alpha:]]{2})?|portuguese', 'portuguese-iso-8859-1', 'pt', 'pt_PT,pt_PT.iso88591', 'portuguese'),
'pt-utf-8'=> array('pt([-_][[:alpha:]]{2})?|portuguese', 'portuguese-utf-8', 'pt', 'pt_PT.utf8', 'portuguese', 'portuguese-iso-8859-1', 'latin1'),
'pt-br-iso-8859-1' => array('pt[-_]br|brazilian portuguese', 'brazilian_portuguese-iso-8859-1', 'pt-BR','pt_BR,pt_BR.iso88591', 'brazilian portuguese'),
'pt-br-utf-8' => array('pt[-_]br|brazilian portuguese', 'brazilian_portuguese-utf-8', 'pt-BR','pt_BR.utf8', 'brazilian portuguese', 'brazilian_portuguese-iso-8859-1', 'latin1'),
// This Language is Different charset between SGL and SiteBuilder Database
'cs-windows-1250'=> array('cs|czech','czech-windows-1250','cs', 'cs_CZ', 'czech'),
'cs-utf-8'=> array('cs|czech','czech-utf-8','cs', 'cs_CZ', 'czech', 'czech-windows-1250', 'cp1250'),
'ru-windows-1251'=> array('ru|russian','russian-windows-1251','ru', 'ru_RU.CP1251', 'russian'),
'ru-utf-8'=> array('ru|russian','russian-utf-8','ru', 'ru_RU.utf8', 'russian', 'russian-windows-1251', 'cp1251'),
/* from seagull 066
'zhtw-utf-8' => array('zh[-_](tw|hk)|chinese traditional', 'chinese_traditional-utf-8', 'zh-TW'),
'zhtw-big5' => array('zh[-_](tw|hk)|chinese traditional', 'chinese-big5', 'zh-TW'),
'zh-utf-8' => array('zh|chinese simplified', 'chinese_simplified-utf-8', 'zh'),
'zh-gb2312' => array('zh|chinese simplified', 'chinese-gb2312', 'zh')
*/
'zh-GB2312'=> array('zh|simplified chinese','chinese-gb2312','zh', 'zh_CN,zh_CN.gb2312,zh_CN.gb18030,zh_CN.gbk', 'simplified chinese'),
'zh-utf-8'=> array('zh|simplified chinese','chinese_simplified-utf-8','zh', 'zh_CN.utf8', 'simplified chinese', 'chinese-gb2312', 'gb2312'),
'zhtw-big5'=> array('zh|traditional chinese','chinese-big5','zh', 'zh_TW,zh_TW.big5', 'traditional chinese'),
'zhtw-utf-8'=> array('zh|traditional chinese','chinese_traditional-utf-8','zh', 'zh_TW.utf8', 'traditional chinese', 'chinese-big5', 'big5'),
'ta-tscii' => array('ta|tamil','tamil-tscii','ta', 'ta_IN,ta_IN.utf8', 'tamil'),
'ta-utf-8' => array('ta|tamil','tamil-utf-8','ta', 'ta_IN.utf8', 'tamil', 'tamil-tscii', 'latin1'), // latin1 not sure
'hi-utf-8' => array('hi|hindi','hindi-utf-8','hi', 'hi_IN.utf8', 'hindi', 'hindi-utf-8', 'utf8'),
'ka-utf-8' => array('ka|georgian','georgian-utf-8','ka', 'ka_GE.utf8', 'georgian', 'georgian-utf-8', 'utf8'),
'lo-iso-8859-1' => array('lo|lao','lao-iso-8859-1','lo', 'lo_LA', 'lao'),
'lo-utf-8' => array('lo|lao','lao-utf-8','lo', 'lo_LA.utf8', 'lao', 'lao-iso-8859-1', 'latin1'),
'tl-iso-8859-1'=> array('tl|tagalog','tagalog-iso-8859-1','tl', 'tl_PH,tl_PH.iso88591', 'tagalog'),
'tl-utf-8'=> array('tl|tagalog','tagalog-utf-8','tl', 'tl_PH.utf8', 'tagalog', 'tagalog-iso-8859-1', 'latin1'),
);
function SGL_cmp(&$a, $b)
{
return (strcmp($a[1], $b[1]));
}
?>
Copyright 2K16 - 2K18 Indonesian Hacker Rulez