Korea, Republic of
|
Edited by ionobgy at 2012-2-17 10:43
I did it as below.
But I am not sure that it is correct method.
I changed "en" to "kr" at below file.
config/config_global.php:
$_config['output']['language'] = 'kr';
<comment>
I think that default language must be setted to 'kr' by above change.
But default language is setted to "en" again after logout in case of my website.
Therefore I changed the class file code as below.
source/class/class_core.php:
if(empty($_config['languages'])) {
$_config['languages'] = array(
'kr' => array(
'icon' => 'kr.gif',
'name' => '한국어',
'title' => 'Korea',
'dir' => 'ltr',
)
);
}
//vot: Set default language
if(empty($_config['output']['language'])) {
$_config['output']['language'] = 'kr';
}
//vot: Check for default language is valid
$tmp = $_config['output']['language'];
if(!isset($this->var['config']['languages'][$tmp])) {
// set valid default language
// If Korean exists -> set Korean
if(isset($_config['languages']['kr'])) {
$_config['output']['language'] = 'kr';
} else {
// If Korean does not exists -> set the FIRST language
foreach($_config['languages'] AS $k => $val) {
$_config['output']['language'] = $k;
break;
}
}
}
<comment>
kr language file setting is placed first of language setting part in config_global.php)
|
|