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

This commit is contained in:
Paul Holden
2023-12-11 10:35:04 +00:00
parent 86a0b87658
commit a86fac1edb
+2 -1
View File
@@ -2197,7 +2197,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']);