MDL-21693 Dropping _utf8 suffix from language codes and folder names; enabling new string managers - please note the transition is not yet fully complete because we need to wait for git to recognize the renames in cvs

This commit is contained in:
Petr Skoda
2010-04-10 07:24:56 +00:00
parent 4bf0c0b372
commit 3a915b0667
847 changed files with 2255 additions and 2454 deletions
+1 -4
View File
@@ -578,9 +578,6 @@ if (($lang = optional_param('lang', '', PARAM_SAFEDIR))) {
if (file_exists($CFG->dataroot .'/lang/'. $lang) or
file_exists($CFG->dirroot .'/lang/'. $lang)) {
$SESSION->lang = $lang;
} else if (file_exists($CFG->dataroot.'/lang/'.$lang.'_utf8') or
file_exists($CFG->dirroot .'/lang/'.$lang.'_utf8')) {
$SESSION->lang = $lang.'_utf8';
}
}
unset($lang);
@@ -589,7 +586,7 @@ setup_lang_from_browser();
if (empty($CFG->lang)) {
if (empty($SESSION->lang)) {
$CFG->lang = 'en_utf8';
$CFG->lang = 'en';
} else {
$CFG->lang = $SESSION->lang;
}