Merge pull request #47 from Lauraly-com/develop

list of locales in the lang file
pull/48/head
Pep 2014-04-03 15:50:53 +02:00
commit 25d49b4ff2
8 changed files with 10 additions and 2 deletions

View File

@ -73,8 +73,9 @@ function psm_load_lang($lang) {
}
require $lang_file;
$locale = basename($lang_file, '.lang.php');
setlocale(LC_TIME, $locale);
if(isset($sm_lang['locale'])) {
setlocale(LC_TIME, $sm_lang['locale']);
}
$GLOBALS['sm_lang'] = $sm_lang;
}

View File

@ -27,6 +27,7 @@
$sm_lang = array(
'name' => 'Български - Bulgarian',
'locale' => array('bg_BG.UTF-8', 'bg_BG', 'bulgarian'),
'system' => array(
'title' => 'Server Monitor',
'install' => 'Инсталация',

View File

@ -27,6 +27,7 @@
$sm_lang = array(
'name' => 'Deutsch - German',
'locale' => array('de_DE.UTF-8', 'de_DE', 'german'),
'system' => array(
'title' => 'Server Monitor',
'install' => 'Install',

View File

@ -27,6 +27,7 @@
$sm_lang = array(
'name' => 'English',
'locale' => array('en_US.UTF-8', 'en_US', 'american', 'english-us'),
'system' => array(
'title' => 'Server Monitor',
'install' => 'Install',

View File

@ -27,6 +27,7 @@
$sm_lang = array(
'name' => 'Français - French',
'locale' => array('fr_FR.UTF-8', 'fr_FR', 'french'),
'system' => array(
'title' => 'Server Monitor',
'install' => 'Installer',

View File

@ -27,6 +27,7 @@
$sm_lang = array(
'name' => '한국 - Korean',
'locale' => array('ko_KR.UTF-8', 'ko_KR', 'korean'),
'system' => array(
'title' => 'Server Monitor',
'install' => 'Install',

View File

@ -27,6 +27,7 @@
$sm_lang = array(
'name' => 'Nederlands - Dutch',
'locale' => array('nl_NL.UTF-8', 'nl_NL', 'dutch'),
'system' => array(
'title' => 'Server Monitor',
'install' => 'Install',

View File

@ -27,6 +27,7 @@
$sm_lang = array(
'name' => 'Português - Brazilian portuguese',
'locale' => array('pt_BR.UTF-8', 'pt_BR', 'portuguese-brazilian'),
'system' => array(
'title' => 'Server Monitor',
'install' => 'Install',