mirror of
https://github.com/moodle/moodle.git
synced 2025-03-18 22:50:19 +01:00
Merge branch 'MDL-79048-401-2' of https://github.com/junpataleta/moodle into MOODLE_401_STABLE
This commit is contained in:
commit
e8e5b279b0
@ -227,13 +227,21 @@
|
||||
$PAGE->set_button($buttons);
|
||||
}
|
||||
|
||||
$editingtitle = '';
|
||||
if ($PAGE->user_is_editing()) {
|
||||
// Append this to the page title's lang string to get its equivalent when editing mode is turned on.
|
||||
$editingtitle = 'editing';
|
||||
}
|
||||
|
||||
// If viewing a section, make the title more specific
|
||||
if ($section and $section > 0 and course_format_uses_sections($course->format)) {
|
||||
$sectionname = get_string('sectionname', "format_$course->format");
|
||||
$sectiontitle = get_section_name($course, $section);
|
||||
$PAGE->set_title(get_string('coursesectiontitle', 'moodle', array('course' => $course->fullname, 'sectiontitle' => $sectiontitle, 'sectionname' => $sectionname)));
|
||||
$PAGE->set_title(get_string('coursesectiontitle' . $editingtitle, 'moodle', array(
|
||||
'course' => $course->fullname, 'sectiontitle' => $sectiontitle, 'sectionname' => $sectionname)
|
||||
));
|
||||
} else {
|
||||
$PAGE->set_title(get_string('coursetitle', 'moodle', array('course' => $course->fullname)));
|
||||
$PAGE->set_title(get_string('coursetitle' . $editingtitle, 'moodle', array('course' => $course->fullname)));
|
||||
}
|
||||
|
||||
$PAGE->set_heading($course->fullname);
|
||||
|
@ -414,7 +414,8 @@ $string['courserestore'] = 'Course restore';
|
||||
$string['coursereuse'] = 'Course reuse';
|
||||
$string['courses'] = 'Courses';
|
||||
$string['coursesectionsummaries'] = 'Course section summaries';
|
||||
$string['coursesectiontitle'] = 'Course: {$a->course}, {$a->sectionname}: {$a->sectiontitle}';
|
||||
$string['coursesectiontitle'] = '{$a->sectionname}: {$a->sectiontitle} | {$a->course}';
|
||||
$string['coursesectiontitleediting'] = 'Edit {$a->sectionname}: {$a->sectiontitle} | {$a->course}';
|
||||
$string['coursesettings'] = 'Course default settings';
|
||||
$string['coursesmovedout'] = 'Courses moved out from {$a}';
|
||||
$string['coursespending'] = 'Courses pending approval';
|
||||
@ -428,6 +429,7 @@ $string['coursestart'] = 'Course start';
|
||||
$string['coursesummary'] = 'Course summary';
|
||||
$string['coursesummary_help'] = 'A short description of your course. The content you add here is searchable.';
|
||||
$string['coursetitle'] = 'Course: {$a->course}';
|
||||
$string['coursetitleediting'] = 'Edit course: {$a->course}';
|
||||
$string['courseupdates'] = 'Course updates';
|
||||
$string['coursevisibility'] = 'Course visibility';
|
||||
$string['coursevisibility_help'] = '* Show: The course appears in the list of courses and students can access it.
|
||||
|
Loading…
x
Reference in New Issue
Block a user