<?
/*
* ===========================================*
* 项目: Ourplus网站流量统计分析系统*
* 版本: Bate1*
* 开发: 看海*
* ===========================================*
* Copyright (c) 2004 - 2005*
* 主页: http://stat.ourplus.com*
* 信箱: fantasysisky@hotmail.com*
* 版权信息: 本软体为共享软体(shareware)提供个人网站免费使用，
                作者看海 (stat.ourplus.com) 保留全部权力，受相关法律和国际
				公约保护，请勿非法修改、转载、散播，或用于其他赢利行为，
				并请勿删除版权声明。*
* ===========================================*
*/

	function GetLanguage( $Language )
	{
		$LanguageLists = 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;
		}
		else
		{
			return $LanguageLists[$Language];
		}
	}

?>