array( 'wp_lang' =>'en', 'wp_site' =>'http://wordpress.org/', ), 'japanese' => array( 'wp_lang' =>'ja', 'wp_site' =>'http://ja.wordpress.org/', ), 'ja_utf8' => array( 'wp_lang' =>'ja', 'wp_site' =>'http://ja.wordpress.org/', ), 'pt-br_utf8' => array( 'wp_lang' =>'en', 'wp_site' =>'http://br.wordpress.org/', ), // The key(language of XOOPS) of the following lists has not been set yet. 'Afrikaans' => 'af', 'Albanian' => 'al', 'Arabic' => 'ar', 'Bangla' => 'bn_BD', 'Basque' => 'eu', 'Belarusian' => 'be_BY', 'Bosnian' => 'bs_BA', 'Bulgarian' => 'bg_BG', 'Catalan' => 'ca', 'Chinese' => 'zh_CN', 'Hong Kong' => 'zh_HK', 'Taiwan' => 'zh_TW', 'Croatian' => 'hr', 'Czech' => 'cs_CZ', 'Danish' => 'da_DK', 'Dutch' => 'nl_NL', 'Esperanto' => 'eo', 'Estonian' => 'et', 'Faroese' => 'fo', 'Finnish' => 'fi', 'Galician' => 'gl_ES', 'Georgian' => 'ge_GE', 'German' => 'de_DE', 'Greek' => 'el', 'Hebrew' => 'he_IL', 'Hungarian' => 'hu_HU', 'Icelandic' => 'is_IS', 'Indonesian' => 'id_ID', 'Italian' => 'it_IT', 'Khmer' => 'km_KH', 'ko_utf8' => 'ko_KR', 'Latvian' => 'lv', 'Lithuanian' => 'lt_LT', 'Macedonian' => 'mk_MK', 'Malagasy' => 'mg_MG', 'Malay' => 'ms_MY', 'Nias' => 'ni_ID', 'Norwegian' => 'nb_NO', 'Persian' => 'fa_IR', 'Polish' => 'pl_PL', 'European Portuguese' => 'pt_PT', 'Romanian' => 'ro', 'Russian' => 'ru_RU', 'Serbian' => 'sr_RS', 'Sinhala' => 'si_LK', 'Slovak' => 'sk_SK', 'Slovenian' => 'sl_SI', 'Spanish' => 'es_ES', 'Sundanese' => 'su_ID', 'Swedish' => 'sv_SE', 'Tajik' => 'tg', 'Thai' => 'th', 'Turkish' => 'tr', 'Ukrainian' => 'uk', 'Uzbek' => 'uz_UZ', 'Vietnamse' => 'vi', 'Welsh' => 'cy', ); public function get_wpLang($xoops_Lang = 'english') { $detect_lang = $this->wp_lang_array[$xoops_Lang]['wp_lang']; if (empty($detect_lang)) return 'en'; return $detect_lang; } public function get_download_info() { $check_url = 'http://api.wordpress.org/core/version-check/1.5/?locale='. $this->wp_lang; } } ?>