<?

/*
 本软件版权归作者所有,在投入使用之前注意获取许可
 原作者: 看海
 修改者：程威（wiwiboy）
 郑州大学西亚斯国际学院网络信息技术专业
 电话：13733804908
 邮箱：wiwiboy@126.com
 QQ号：158839753
 网址：http://wiwiboy.512j.com
*/

	function GetLanguage( $Language )
	{
		$LanguageLists = array( 
			'af' => '南非语',
			'sq' => '阿尔巴尼亚语',
			'zu' => '祖鲁语',
			'ar-sa' => '阿拉伯语 (沙特阿拉伯)',
			'ar-iq' => '阿拉伯语 (Iraq)',
			'xh' => 'Xhosa',
			'ar-eg' => '阿拉伯语 (Egypt)',
			'ar-ly' => '阿拉伯语 (Libya)',
			'ji' => 'Yiddish',
			'ar-dz' => '阿拉伯语 (Algeria)',
			'ar-ma' => '阿拉伯语 (Morocco)',
			've' => 'Venda',
			'ar-tn' => '阿拉伯语 (Tunisia)',
			'ar-om' => '阿拉伯语 (Oman)',
			'vi' => '越南语',
			'ar-ye' => '阿拉伯语 (Yemen)',
			'ar-sy' => '阿拉伯语 (Syria)',
			'uk' => '乌克兰语',
			'ar-jo' => '阿拉伯语 (Jordan)',
			'ar-lb' => '阿拉伯语 (Lebanon)',
			'ur' => '乌尔度语',
			'ar-kw' => '阿拉伯语 (Kuwait)',
			'ar-ae' => '阿拉伯语 (U.A.E.)',
			'tn' => 'Tswana',
			'ar-bh' => '阿拉伯语 (Bahrain)',
			'ar-qa' => '阿拉伯语 (Qatar)',
			'tr' => '土耳其语',
			'eu' => '巴士克语',
			'bg' => '保加利亚语',
			'th' => '泰国语',
			'be' => '白俄罗斯语',
			'ca' => '加泰隆语',
			'ts' => '聪加语',
			'' => 'Tsonga',
			'zh-tw' => '中文 (台湾)',
			'zh-cn' => '中文 (中华人民共和国)',
			'sv' => '瑞典语',
			'zh-hk' => '中文 (香港, 澳门特别行政区)',
			'zh-sg' => '中文 (新加坡)',
			'sv-fi' => '瑞典语 (芬兰)',
			'hr' => '克罗地亚语',
			'cs' => '捷克语',
			'es-pr' => '西班牙语 (波多黎各)',
			'da' => '丹麦语',
			'nl' => '荷兰语 (荷兰)',
			'sx' => '索托语',
			'nl-be' => '荷兰语 (比利时)',
			'en' => '英语',
			'es-hn' => '西班牙语 (洪都拉斯)',
			'en-us' => '英语 (美国)',
			'en-gb' => '英语 (英国)',
			'es-ni' => '西班牙语 (尼加拉瓜)',
			'en-au' => '英语 (澳大利亚)',
			'en-ca' => '英语 (加拿大)',
			'es-bo' => '西班牙语 (玻利维亚)',
			'en-nz' => '英语 (新西兰)',
			'en-ie' => '英语 (爱尔兰)',
			'es-sv' => '西班牙语 (萨尔瓦多)',
			'en-bz' => '英语 (伯利兹)',
			'en-za' => '英语 (南非)',
			'en-tt' => '英语 (特立尼达)',
			'et' => '爱沙尼亚',
			'en-jm' => '英语 (牙买加)',
			'fi' => '芬兰语',
			'fr' => '法语 (法国)',
			'fo' => '法罗语',
			'fr-be' => '法语 (比利时)',
			'fr-ca' => '法语 (加拿大)',
			'fa' => '波斯语',
			'gd' => '盖尔语 (苏格兰)',
			'gd-ie' => '盖尔语 (爱尔兰)',
			'fr-ch' => '法语 (瑞士)',
			'de' => '德语 (德国)',
			'de-ch' => '德语 (瑞士)',
			'fr-lu' => '法语 (卢森堡)',
			'de-li' => '德语 (列支敦士登)',
			'el' => '希腊语',
			'de-at' => '德语 (奥地利)',
			'he' => '希伯来语',
			'hi' => '北印度语',
			'de-lu' => '德语 (卢森堡)',
			'in' => '印度尼西亚语',
			'it' => '意大利语 (意大利)',
			'hu' => '匈牙利语',
			'it-ch' => '意大利语 (瑞士)',
			'ja' => '日语',
			'is' => '冰岛语',
			'lv' => '拉脱维亚语',
			'lt' => '立陶宛语',
			'ko' => '朝鲜语',
			'mk' => 'FYRO 马其顿语',
			'ms' => '马来西亚语',
			'ko' => '朝鲜语 (Johab)',
			'no' => '挪威语 (Nynorsk)',
			'pl' => '波兰语',
			'mt' => '马其他语',
			'pt-br' => '葡萄牙语 (巴西)',
			'pt' => '葡萄牙语 (葡萄牙)',
			'no' => '挪威语 (Bokmal)',
			'ro-mo' => '罗马尼亚语 (Moldavia)',
			'ru' => '俄罗斯语',
			'rm' => '列托-罗马语',
			'ru-mo' => '俄罗斯语 (Moldavia)',
			'sz' => 'Sami (Lappish)',
			'ro' => '罗马尼亚语',
			'sk' => '斯洛伐克语',
			'sl' => '斯洛文尼亚语',
			'sr' => '塞尔维亚语 (拉丁文)',
			'sb' => '塞尔维亚语',
			'es' => '西班牙语 (国际)',
			'sr' => '塞尔维亚语 (拉丁文)',
			'es-gt' => '西班牙语 (危地马拉)',
			'es-cr' => '西班牙语 (哥斯达黎加)',
			'es-mx' => '西班牙语 (墨西哥)',
			'es-pa' => '西班牙语 (巴拿马)',
			'es-do' => '西班牙语 (多米尼加共和国)',
			'es' => '西班牙语 (国际)',
			'es-pe' => '西班牙语 (秘鲁)',
			'es-ar' => '西班牙语 (阿根廷)',
			'es-ve' => '西班牙语 (委内瑞拉)',
			'es-ec' => '西班牙语 (厄瓜多尔)',
			'es-cl' => '西班牙语 (智利)',
			'es-co' => '西班牙语 (哥伦比亚)',
			'es-uy' => '西班牙语 (乌拉圭)',
			'es-py' => '西班牙语 (巴拉圭)',
			'undefined' => '<i>δ?</i>'
		);

		$LanguageLists2 = array( 
			'af' => 'Afrikaans',
			'sq' => 'Albanian',
			'zu' => 'Zulu',
			'ar-sa' => 'Arabic (Saudi Arabia)',
			'ar-iq' => 'Arabic (Iraq)',
			'xh' => 'Xhosa',
			'ar-eg' => 'Arabic (Egypt)',
			'ar-ly' => 'Arabic (Libya)',
			'ji' => 'Yiddish',
			'ar-dz' => 'Arabic (Algeria)',
			'ar-ma' => 'Arabic (Morocco)',
			've' => 'Venda',
			'ar-tn' => 'Arabic (Tunisia)',
			'ar-om' => 'Arabic (Oman)',
			'vi' => 'Vietnamese',
			'ar-ye' => 'Arabic (Yemen)',
			'ar-sy' => 'Arabic (Syria)',
			'uk' => 'Ukrainian',
			'ar-jo' => 'Arabic (Jordan)',
			'ar-lb' => 'Arabic (Lebanon)',
			'ur' => 'Urdu',
			'ar-kw' => 'Arabic (Kuwait)',
			'ar-ae' => 'Arabic (U.A.E.)',
			'tn' => 'Tswana',
			'ar-bh' => 'Arabic (Bahrain)',
			'ar-qa' => 'Arabic (Qatar)',
			'tr' => 'Turkish',
			'eu' => 'Basque',
			'bg' => 'Bulgarian',
			'th' => 'Thai',
			'be' => 'Belarusian',
			'ca' => 'Catalan',
			'ts' => '聪加语',
			'' => 'Tsonga',
			'zh-tw' => 'Chinese (Taiwan)',
			'zh-cn' => 'Chinese (PRC)',
			'sv' => 'Swedish',
			'zh-hk' => 'Chinese (Hong Kong, S.A.R. China)',
			'zh-sg' => 'Chinese (Singapore)',
			'sv-fi' => 'Swedish (Finland)',
			'hr' => 'Croatian',
			'cs' => 'Czech',
			'es-pr' => 'Spanish (Puerto Rico)',
			'da' => 'Danish',
			'nl' => 'Dutch (Standard)',
			'sx' => 'Sutu',
			'nl-be' => 'Dutch (Belgium)',
			'en' => 'English',
			'es-hn' => 'Spanish (Honduras)',
			'en-us' => 'English (United States)',
			'en-gb' => 'English (Great Britain)',
			'es-ni' => 'Spanish (Nicaragua)',
			'en-au' => 'English (Australia)',
			'en-ca' => 'English (Canada)',
			'es-bo' => 'Spanish (Bolivia)',
			'en-nz' => 'English (New Zealand)',
			'en-ie' => 'English (Ireland)',
			'es-sv' => 'Spanish (El Salvador)',
			'en-bz' => 'English (Belize)',
			'en-za' => 'English (South Africa)',
			'en-tt' => 'English (Trinidad)',
			'et' => 'Estonian',
			'en-jm' => 'English (Jamaica)',
			'fi' => 'Finnish',
			'fr' => 'French (Standard)',
			'fo' => 'Faeroese',
			'fr-be' => 'French (Belgium)',
			'fr-ca' => 'French (Canada)',
			'fa' => 'Farsi',
			'gd' => 'Gaelic (Scotland)',
			'gd-ie' => 'Gaelic (Ireland)',
			'fr-ch' => 'French (Switzerland)',
			'de' => 'German (Standard)',
			'de-ch' => 'German (Switzerland)',
			'fr-lu' => 'French (Luxembourg)',
			'de-li' => 'German (Liechtenstein)',
			'el' => 'Greek',
			'de-at' => 'German (Austria)',
			'he' => 'Hebrew',
			'hi' => 'Hindi',
			'de-lu' => 'German (Luxembourg)',
			'in' => 'Indonesian',
			'it' => 'Italian (Standard)',
			'hu' => 'Hungarian',
			'it-ch' => 'Italian (Switzerland)',
			'ja' => 'Japanese',
			'is' => 'Icelandic',
			'lv' => 'Latvian',
			'lt' => 'Lithuanian',
			'ko' => 'Korean',
			'mk' => 'FYRO Macedonian',
			'ms' => 'Malaysian',
			'ko' => 'Korean (Johab)',
			'no' => 'Norwegian (Nynorsk)',
			'pl' => 'Polish',
			'mt' => 'Maltese',
			'pt-br' => 'Portuguese (Brazil)',
			'pt' => 'Portuguese (Standard)',
			'no' => 'Norwegian (Bokmal)',
			'ro-mo' => 'Romanian (Moldavia)',
			'ru' => 'Russian',
			'rm' => 'Rhaeto-Romanic',
			'ru-mo' => 'Russian (Moldavia)',
			'sz' => 'Sami (Lappish)',
			'ro' => 'Romanian',
			'sk' => 'Slovak',
			'sl' => 'Slovenian',
			'sr' => 'Serbian (Cyrillic)',
			'sb' => 'Sorbian',
			'es' => 'Spanish (Spain C Traditional)',
			'sr' => 'Serbian (Latin)',
			'es-gt' => 'Spanish (Guatemala)',
			'es-cr' => 'Spanish (Costa Rica)',
			'es-mx' => 'Spanish (Mexico)',
			'es-pa' => 'Spanish (Panama)',
			'es-do' => 'Spanish (Dominican Republic)',
			'es' => 'Spanish (Spain C Modern)',
			'es-pe' => 'Spanish (Peru)',
			'es-ar' => 'Spanish (Argentina)',
			'es-ve' => 'Spanish (Venezuela)',
			'es-ec' => 'Spanish (Ecuador)',
			'es-cl' => 'Spanish (Chile)',
			'es-co' => 'Spanish (Colombia)',
			'es-uy' => 'Spanish (Uruguay)',
			'es-py' => 'Spanish (Paraguay)',
			'undefined' => '<i>δ?</i>'
		);
	
		$Language = strtolower( trim( $Language ) );
		$Language = $Language == '' ? 'undefined' : $Language;
		if( $LanguageLists[$Language] == '' )
		{
			return $Language;
		}
		elseif(function_exists(iconv))
		{
			//return @iconv("UTF-8", "GB2312", $LanguageLists[$Language]);
			return $LanguageLists[$Language];
		}
		else
		{
			return $LanguageLists2[$Language];
		}
	}

?>