mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-10583 course format - allow course formats to specify their section name ; merged from 19_STABLE
This commit is contained in:
parent
546fef5f06
commit
f5ca86967b
1 changed files with 6 additions and 1 deletions
|
@ -50,7 +50,12 @@
|
||||||
$stredit = get_string('edit', '', " $sectionname");
|
$stredit = get_string('edit', '', " $sectionname");
|
||||||
$strsummaryof = get_string('summaryof', '', " $sectionname");
|
$strsummaryof = get_string('summaryof', '', " $sectionname");
|
||||||
} else {
|
} else {
|
||||||
|
/// 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");
|
$sectionname = get_string("name$course->format");
|
||||||
|
}
|
||||||
$stredit = get_string('edit', '', " $sectionname $section->section");
|
$stredit = get_string('edit', '', " $sectionname $section->section");
|
||||||
$strsummaryof = get_string('summaryof', '', " $sectionname $form->section");
|
$strsummaryof = get_string('summaryof', '', " $sectionname $form->section");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue