From 7c4fc1725f59763dc8ecfdfe9573e602730c758d Mon Sep 17 00:00:00 2001 From: Paul Holden Date: Mon, 3 Apr 2023 10:09:21 +0100 Subject: [PATCH] MDL-77810 gradereport_summary: show localised plugin name in report. --- grade/report/summary/classes/local/entities/grade_items.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/grade/report/summary/classes/local/entities/grade_items.php b/grade/report/summary/classes/local/entities/grade_items.php index 410d81513de..8cfbeb7d748 100644 --- a/grade/report/summary/classes/local/entities/grade_items.php +++ b/grade/report/summary/classes/local/entities/grade_items.php @@ -157,7 +157,8 @@ class grade_items extends base { $html = \html_writer::start_div('page-context-header' . $dimmed); // Image data. $html .= \html_writer::div($imagedata, 'page-header-image mr-2'); - $prefix = \html_writer::div($row->itemmodule, 'text-muted text-uppercase small line-height-3'); + $prefix = \html_writer::div(get_string('pluginname', "mod_{$row->itemmodule}"), + 'text-muted text-uppercase small line-height-3'); $name = $prefix . \html_writer::link($url, format_string($cm->name, true)); $html .= \html_writer::tag('div', $name, ['class' => 'page-header-headings']); } else {