From: stronk7 Date: Thu, 9 Mar 2006 17:43:14 +0000 (+0000) Subject: If $CFG->running_installer is set, we force to retrieve X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=c1f6779facd18fab3f05f05fecae57b470657dbe;p=moodle.git If $CFG->running_installer is set, we force to retrieve all the strings from installer.php to allow multi-lang installations. --- diff --git a/lib/moodlelib.php b/lib/moodlelib.php index fb611b4653..c88283e3ad 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -4632,8 +4632,11 @@ function get_string($identifier, $module='', $a=NULL) { /// Define the two or three major locations of language strings for this module - if ($module == 'install') { + if (isset($CFG->running_installer)) { + $module = 'installer'; + $filetocheck = 'installer.php'; $locations = array( $CFG->dirroot.'/install/lang/', $CFG->dataroot.'/lang/', $CFG->dirroot.'/lang/' ); + $defaultlang = 'en_utf8'; } else { $locations = array( $CFG->dataroot.'/lang/', $CFG->dirroot.'/lang/' ); }