MDL-14589 course section summary string

This commit is contained in:
skodak 2009-02-18 09:03:09 +00:00
parent d7860ff9f1
commit 7daf91f210
2 changed files with 2 additions and 4 deletions

View File

@ -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';

View File

@ -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;
}