mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
Look for languages in report directories too
This commit is contained in:
parent
bcadf372af
commit
8c5ea8d5ce
@ -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/';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user