continue;
}
/// Search under dirroot/lang
+ /// If $CFG->unicodedb = false, ignore new lang packs
+ if (empty($CFG->unicodedb)) {
+ if (file_exists($CFG->dirroot .'/lang/'. $lang .'/langconfig.php')) {
+ continue;
+ }
+ }
if (file_exists($CFG->dirroot .'/lang/'. $lang .'/'. $filetocheck)) {
include($CFG->dirroot .'/lang/'. $lang .'/'. $filetocheck);
if (!empty($string['thislanguage'])) {
unset($string);
}
/// And moodledata/lang
+ /// If $CFG->unicodedb = false, ignore new lang packs
+ if (empty($CFG->unicodedb)) {
+ if (file_exists($CFG->dataroot .'/lang/'. $lang .'/langconfig.php')) {
+ continue;
+ }
+ }
if (file_exists($CFG->dataroot .'/lang/'. $lang .'/'. $filetocheck)) {
include($CFG->dataroot .'/lang/'. $lang .'/'. $filetocheck);
if (!empty($string['thislanguage'])) {
if (strstr('_local',$lang)!==false) {
continue;
}
+ /// Search under moodledata/lang
+ /// If $CFG->unicodedb = false, ignore new lang packs
+ if (empty($CFG->unicodedb)) {
+ if (file_exists($CFG->dataroot .'/lang/'. $lang .'/langconfig.php')) {
+ continue;
+ }
+ }
if (file_exists($CFG->dataroot .'/lang/'. $lang .'/'. $filetocheck)) {
include($CFG->dataroot .'/lang/'. $lang .'/'. $filetocheck);
if (!empty($string['thislanguage'])) {
}
unset($string);
}
+ /// And dirroot/lang
+ /// If $CFG->unicodedb = false, ignore new lang packs
+ if (empty($CFG->unicodedb)) {
+ if (file_exists($CFG->dirroot .'/lang/'. $lang .'/langconfig.php')) {
+ continue;
+ }
+ }
if (file_exists($CFG->dirroot .'/lang/'. $lang .'/'. $filetocheck)) {
include($CFG->dirroot .'/lang/'. $lang .'/'. $filetocheck);
if (!empty($string['thislanguage'])) {