From 8c5ea8d5ce67f2a6bc7a3372f7ed205d9b8f2fc6 Mon Sep 17 00:00:00 2001 From: moodler Date: Thu, 9 Mar 2006 08:27:53 +0000 Subject: [PATCH] Look for languages in report directories too --- lib/moodlelib.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 3cd275b0d35..fb611b46530 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -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/'; }