Index: /branches/Ver3.0/xpressme_integration_kit/class/config_from_xoops.class.php
===================================================================
--- /branches/Ver3.0/xpressme_integration_kit/class/config_from_xoops.class.php	(revision 742)
+++ /branches/Ver3.0/xpressme_integration_kit/class/config_from_xoops.class.php	(revision 743)
@@ -12,4 +12,6 @@
  * The function to acquire only a set value without calling the XOOPS system is here.
  */
+require_once dirname( __FILE__ ).'/wpInfo_class.php' ;
+
 class ConfigFromXoops{
 	var $xoops_mainfile_path;
@@ -49,4 +51,6 @@
 	var $xoops_db_pconnect;
 	var $xoops_path;
+	var $xoops_lang;
+	var $wp_lang;
 	
 	function __constructor()	//for PHP5
@@ -97,4 +101,8 @@
 		if(defined('XOOPS_DB_SALT')) $this->xoops_db_salt = XOOPS_DB_SALT; else $this->xoops_db_salt = '';
 		if(defined('XOOPS_SALT')) $this->xoops_salt = XOOPS_SALT; else $this->xoops_salt = '';
+		$this->xoops_lang =  @$GLOBALS["xoopsConfig"]['language'];
+		$wp_info = new wpInfo;
+		$this->wp_lang = $wp_info->get_wpLang($this->xoops_lang);
+
 	}
 	
Index: /branches/Ver3.0/xpressme_integration_kit/class/wpInfo_class.php
===================================================================
--- /branches/Ver3.0/xpressme_integration_kit/class/wpInfo_class.php	(revision 743)
+++ /branches/Ver3.0/xpressme_integration_kit/class/wpInfo_class.php	(revision 743)
@@ -0,0 +1,108 @@
+<?php
+/*
+ * XPressME - WordPress for XOOPS
+ *
+ * @copyright	XPressME Project http://www.toemon.com
+ * @license		http://www.fsf.org/copyleft/gpl.html GNU public license
+ * @author		toemon
+ * @package		module::xpress
+ */
+class wpInfo {
+	// The language of XOOPS is set as Key of the array. 
+	// The language of WP is set as Value of the array. 
+	var $xoops_Lang;
+	var $wp_Lang;
+	
+	var $wp_lang_array = array(
+		'english' => 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;
+	}
+}
+?>
Index: /branches/Ver3.0/xpressme_integration_kit/wp-config.php
===================================================================
--- /branches/Ver3.0/xpressme_integration_kit/wp-config.php	(revision 742)
+++ /branches/Ver3.0/xpressme_integration_kit/wp-config.php	(revision 743)
@@ -73,6 +73,7 @@
  * Example:
  * define ('WPLANG', '');		// language support to English
+ * define ('WPLANG', 'ja');		// language support to Japanese
  */
-define ('WPLANG', 'ja');		// language support to Japanese
+define ('WPLANG', $xoops_config->wp_lang);		// language detect from xoops language
 
 /* That's all, stop editing! Happy blogging. */
