MDL-80374 grade: show localised plugin name in report column heading.

This commit is contained in:
Paul Holden 2023-12-11 10:26:36 +00:00
parent a891866cbd
commit d51ebb89f4
No known key found for this signature in database
GPG Key ID: A81A96D6045F6164

View File

@ -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']);