If $CFG->running_installer is set, we force to retrieve

all the strings from installer.php to allow multi-lang
installations.
This commit is contained in:
stronk7
2006-03-09 17:43:14 +00:00
parent e05fc498ea
commit c1f6779fac
+4 -1
View 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/' );
}