]> git.mjollnir.org Git - moodle.git/commitdiff
If $CFG->running_installer is set, we force to retrieve
authorstronk7 <stronk7>
Thu, 9 Mar 2006 17:43:14 +0000 (17:43 +0000)
committerstronk7 <stronk7>
Thu, 9 Mar 2006 17:43:14 +0000 (17:43 +0000)
all the strings from installer.php to allow multi-lang
installations.

lib/moodlelib.php

index fb611b465301d3760194fdd613b48640cf7e90af..c88283e3ad14c62f87e2d00302bd7046c63ebe75 100644 (file)
@@ -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/' );
     }