diff --git a/lang/en_utf8/moodle.php b/lang/en_utf8/moodle.php index 85d12a22cdc..d6e41636d1b 100644 --- a/lang/en_utf8/moodle.php +++ b/lang/en_utf8/moodle.php @@ -327,6 +327,7 @@ $string['courserequestsupport'] = 'Supporting information to help the administra $string['courserestore'] = 'Course restore'; $string['courses'] = 'Courses'; $string['coursescategory'] = 'Courses in the same category'; +$string['coursesectionsummaries'] = 'Course section summaries'; $string['coursesettings'] = 'Course default settings'; $string['coursesmovedout'] = 'Courses moved out from $a'; $string['coursespending'] = 'Courses pending approval'; diff --git a/lib/file/file_info_coursesection.php b/lib/file/file_info_coursesection.php index cbe1fb95d66..1c7b431c4ff 100644 --- a/lib/file/file_info_coursesection.php +++ b/lib/file/file_info_coursesection.php @@ -21,10 +21,7 @@ class file_info_coursesection extends file_info { public function get_visible_name() { $format = $this->course->format; - $sectionsname = get_string("coursesections$format","format_$format"); // TODO: localise - if ($sectionsname === "[[coursesections$format]]") { - $sectionsname = get_string("coursesections$format", 'repository'); // TODO: localise - } + $sectionsname = get_string("coursesectionsummaries"); return $sectionsname; }