c5161c8c65
2.add: Add Korean Language
24 lines
687 B
PHP
24 lines
687 B
PHP
<?php
|
|
if (!defined('IN_SYS')) {
|
|
// exit('禁止访问');
|
|
header("Location:" . "index.php");
|
|
exit;
|
|
}
|
|
include_once dirname(__FILE__) . '/include/language.php';
|
|
$lang = new Language();
|
|
// print_r($lang->language_area);
|
|
$current_lang = getCurrentLanguage();
|
|
// print_r($current_lang);
|
|
function getCurrentLanguage()
|
|
{
|
|
global $lang, $languages;
|
|
if (array_key_exists($lang->language_area, $languages)) {
|
|
return $lang->language_area;
|
|
} else if (array_key_exists($lang->language_country, $languages)) {
|
|
return $lang->language_country;
|
|
} else {
|
|
return 'en-US';
|
|
}
|
|
}
|
|
$language_file = $lang->getFileDir('language.php');
|
|
include $language_file;
|