MDL-15252 string manager improvements - it is possible to specify custom lang locations in config.php

This commit is contained in:
Petr Skoda
2010-04-10 20:35:52 +00:00
parent b4cf79c861
commit 38c253f9aa
2 changed files with 30 additions and 22 deletions
+10
View File
@@ -260,6 +260,16 @@ if (!isset($CFG->prefix)) { // Just in case it isn't defined in config.php
$CFG->prefix = '';
}
// location of all languages except core English pack
if (!isset($CFG->langotherroot)) {
$CFG->langotherroot = $CFG->dataroot.'/lang';
}
// location of local lang pack customisations (dirs with _local suffix)
if (!isset($CFG->langlocalroot)) {
$CFG->langlocalroot = $CFG->dataroot.'/lang';
}
//point pear include path to moodles lib/pear so that includes and requires will search there for files before anywhere else
//the problem is that we need specific version of quickforms and hacked excel files :-(
ini_set('include_path', $CFG->libdir.'/pear' . PATH_SEPARATOR . ini_get('include_path'));