LSsession :: setLocale() : Added includes of lang.*.php files

This commit is contained in:
Benjamin Renard 2011-02-03 17:49:36 +01:00
parent 1f069e41e2
commit dfc8f368ba

View file

@ -373,6 +373,9 @@ class LSsession {
if (is_file(LS_I18N_DIR.'/'.$lang.'/lang.php')) { if (is_file(LS_I18N_DIR.'/'.$lang.'/lang.php')) {
include(LS_I18N_DIR.'/'.$lang.'/lang.php'); include(LS_I18N_DIR.'/'.$lang.'/lang.php');
} }
foreach (listFiles(LS_I18N_DIR.'/'.$lang,'/^lang.+\.php$/') as $file) {
include(LS_I18N_DIR."/$lang/$file");
}
} }
else { else {
if ($encoding && $lang) { if ($encoding && $lang) {