MDL-10583 course format - allow course formats to specify their section name ; backported from HEAD

This commit is contained in:
stronk7
2009-02-05 13:14:20 +00:00
parent 1092a6d6c1
commit 97ac6f03aa
+6 -1
View File
@@ -52,7 +52,12 @@
$stredit = get_string('edit', '', " $sectionname");
$strsummaryof = get_string('summaryof', '', " $sectionname");
} else {
$sectionname = get_string("name$course->format");
/// Look for section name into specific course format lang file
$sectionname = get_string("name$course->format", "format_$course->format");
if ($sectionname == "[[name$course->format]]") {
/// Section name not in course format lang file, go to default moodle file
$sectionname = get_string("name$course->format");
}
$stredit = get_string('edit', '', " $sectionname $section->section");
$strsummaryof = get_string('summaryof', '', " $sectionname $form->section");
}