From d51ebb89f46a3e7f0ec4e08408d822655ba68d3d Mon Sep 17 00:00:00 2001 From: Paul Holden Date: Mon, 11 Dec 2023 10:26:36 +0000 Subject: [PATCH] MDL-80374 grade: show localised plugin name in report column heading. --- grade/lib.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/grade/lib.php b/grade/lib.php index 02744dee562..c43e53c785a 100644 --- a/grade/lib.php +++ b/grade/lib.php @@ -2027,7 +2027,8 @@ class grade_structure { } $url = new moodle_url('/mod/' . $itemmodule . '/grade.php', $args); - $title = get_string('advancedgrading', 'gradereport_grader', $itemmodule); + $title = get_string('advancedgrading', 'gradereport_grader', + get_string('pluginname', "mod_{$itemmodule}")); $gpr->add_url_params($url); return html_writer::link($url, $title, ['class' => 'dropdown-item', 'aria-label' => $title, 'role' => 'menuitem']);