mirror of
https://github.com/moodle/moodle.git
synced 2025-04-15 13:33:52 +02:00
MDL-14589 course section summary string
This commit is contained in:
parent
d7860ff9f1
commit
7daf91f210
@ -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';
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user