MDL-84192 course: update course information page language string.

The previous version used an incorrectly deprecated summary string.
This commit is contained in:
Paul Holden
2025-04-24 11:53:38 +01:00
parent 2ddab5548f
commit 8b14e5b9d8
2 changed files with 7 additions and 3 deletions
+6 -2
View File
@@ -55,8 +55,11 @@
$PAGE->set_course($course);
$PAGE->set_pagelayout('incourse');
$PAGE->set_url('/course/info.php', array('id' => $course->id));
$PAGE->set_title(get_string("summaryof", "", $course->fullname));
$PAGE->set_heading(get_string('courseinfo'));
$strcourseinfo = get_string('courseinfo');
$PAGE->set_title(implode(moodle_page::TITLE_SEPARATOR, [$strcourseinfo, $course->fullname]));
$PAGE->set_heading($strcourseinfo);
$PAGE->navbar->add(get_string('summary'));
echo $OUTPUT->header();
@@ -68,6 +71,7 @@
echo $OUTPUT->box_end();
}
/** @var core_course_renderer $courserenderer */
$courserenderer = $PAGE->get_renderer('core', 'course');
echo $courserenderer->course_info_box($course);
+1 -1
View File
@@ -393,7 +393,7 @@ $string['courseoverviewfiles'] = 'Course image';
$string['courseoverviewfilesext'] = 'Course image file extensions';
$string['courseoverviewfileslimit'] = 'Course image files limit';
$string['courseoverviewfiles_help'] = 'The course image is displayed in My courses and in the list of available courses on the Home page. Site administrators can enable additional file types and the use of multiple files. If you use multiple files, they will all be displayed in the list of available courses in the Home page.';
$string['courseinfo'] = 'Course info';
$string['courseinfo'] = 'Course information';
$string['coursenotaccessible'] = 'This course does not allow public access';
$string['courselegacyfiles'] = 'Legacy course files';
$string['courselegacyfiles_help'] = 'The course files area provides some backward compatibility with Moodle 1.9 and earlier. All files in this area are always accessible to all participants in the course (whether you link to them or not) and there is no way to know where any of these files are being used in Moodle.