]> git.mjollnir.org Git - moodle.git/commitdiff
More paths for string files
authormoodler <moodler>
Mon, 5 Mar 2007 12:13:36 +0000 (12:13 +0000)
committermoodler <moodler>
Mon, 5 Mar 2007 12:13:36 +0000 (12:13 +0000)
lib/moodlelib.php

index 8e9713c68745f813e71778bfb3d68ed3191c1369..3047d2483246bab56c4e9198c99cc63928989642 100644 (file)
@@ -4278,6 +4278,14 @@ function get_string($identifier, $module='', $a=NULL, $extralocations=NULL) {
         } else if (strpos($module, 'report_') === 0) {  // It's a report lang file
             $locations[] =  $CFG->dirroot .'/'.$CFG->admin.'/report/'.substr($module, 7).'/lang/';
             $locations[] =  $CFG->dirroot .'/course/report/'.substr($module, 7).'/lang/';
+        } else if (strpos($module, 'resource_') === 0) {  // It's a resource module file
+            $locations[] =  $CFG->dirroot .'/mod/resource/type/'.substr($module, 9).'/lang/';
+        } else if (strpos($module, 'assignment_') === 0) {  // It's an assignment module file
+            $locations[] =  $CFG->dirroot .'/mod/assignment/type/'.substr($module, 11).'/lang/';
+        } else if (strpos($module, 'enrol_') === 0) {  // It's an enrolment plugin
+            $locations[] =  $CFG->dirroot .'/enrol/'.substr($module, 6).'/lang/';
+        } else if (strpos($module, 'auth_') === 0) {  // It's an auth plugin
+            $locations[] =  $CFG->dirroot .'/auth/'.substr($module, 5).'/lang/';
         } else if (strpos($module, 'format_') === 0) {  // Course format
             $locations[] =  $CFG->dirroot  .'/course/format/'.substr($module,7).'/lang/';
         } else {                                // It's a normal activity