Look for languages in report directories too

This commit is contained in:
moodler 2006-03-09 08:27:53 +00:00
parent bcadf372af
commit 8c5ea8d5ce

View File

@ -4641,6 +4641,9 @@ function get_string($identifier, $module='', $a=NULL) {
if ($module != 'moodle') {
if (strpos($module, 'block_') === 0) { // It's a block lang file
$locations[] = $CFG->dirroot .'/blocks/'.substr($module, 6).'/lang/';
} else if (strpos($module, 'report_') === 0) { // It's a report lang file
$locations[] = $CFG->dirroot .'/admin/report/'.substr($module, 6).'/lang/';
$locations[] = $CFG->dirroot .'/course/report/'.substr($module, 6).'/lang/';
} else { // It's a normal activity
$locations[] = $CFG->dirroot .'/mod/'.$module.'/lang/';
}