diff --git a/admin/settings/grades.php b/admin/settings/grades.php
index 65457c6efa4..9c3907f17d8 100644
--- a/admin/settings/grades.php
+++ b/admin/settings/grades.php
@@ -175,7 +175,7 @@ if (has_capability('moodle/grade:manage', $systemcontext)
foreach (get_plugin_list('gradereport') as $plugin => $plugindir) {
// Include all the settings commands for this plugin if there are any
if (file_exists($plugindir.'/settings.php')) {
- $settings = new admin_settingpage('gradereport'.$plugin, get_string('modulename', 'gradereport_'.$plugin), 'moodle/grade:manage');
+ $settings = new admin_settingpage('gradereport'.$plugin, get_string('pluginname', 'gradereport_'.$plugin), 'moodle/grade:manage');
if ($ADMIN->fulltree) {
include($plugindir.'/settings.php');
}
@@ -189,7 +189,7 @@ if (has_capability('moodle/grade:manage', $systemcontext)
// Include all the settings commands for this plugin if there are any
if (file_exists($plugindir.'/settings.php')) {
- $settings = new admin_settingpage('gradeimport'.$plugin, get_string('modulename', 'gradeimport_'.$plugin), 'moodle/grade:manage');
+ $settings = new admin_settingpage('gradeimport'.$plugin, get_string('pluginname', 'gradeimport_'.$plugin), 'moodle/grade:manage');
if ($ADMIN->fulltree) {
include($plugindir.'/settings.php');
}
@@ -203,7 +203,7 @@ if (has_capability('moodle/grade:manage', $systemcontext)
foreach (get_plugin_list('gradeexport') as $plugin => $plugindir) {
// Include all the settings commands for this plugin if there are any
if (file_exists($plugindir.'/settings.php')) {
- $settings = new admin_settingpage('gradeexport'.$plugin, get_string('modulename', 'gradeexport_'.$plugin), 'moodle/grade:manage');
+ $settings = new admin_settingpage('gradeexport'.$plugin, get_string('pluginname', 'gradeexport_'.$plugin), 'moodle/grade:manage');
if ($ADMIN->fulltree) {
include($plugindir.'/settings.php');
}
diff --git a/grade/edit/settings/form.php b/grade/edit/settings/form.php
index bfdd28ca59c..5d541e75c33 100644
--- a/grade/edit/settings/form.php
+++ b/grade/edit/settings/form.php
@@ -102,7 +102,7 @@ class course_settings_form extends moodleform {
require_once($plugindir.'/lib.php');
$functionname = 'grade_'.$type.'_'.$plugin.'_settings_definition';
if (function_exists($functionname)) {
- $mform->addElement('header', 'grade_'.$type.$plugin, get_string('modulename', 'grade'.$type.'_'.$plugin, NULL));
+ $mform->addElement('header', 'grade_'.$type.$plugin, get_string('pluginname', 'grade'.$type.'_'.$plugin, NULL));
if ($can_view_admin_links) {
$link = '' . $strchangedefaults . '';
$mform->addElement('static', 'gradeitemsettingslink', null, $link);
diff --git a/grade/export/ods/index.php b/grade/export/ods/index.php
index d1fc6818a8b..f0d4b3c9330 100755
--- a/grade/export/ods/index.php
+++ b/grade/export/ods/index.php
@@ -33,7 +33,7 @@ $context = get_context_instance(CONTEXT_COURSE, $id);
require_capability('moodle/grade:export', $context);
require_capability('gradeexport/ods:view', $context);
-print_grade_page_head($COURSE->id, 'export', 'ods', get_string('exportto', 'grades') . ' ' . get_string('modulename', 'gradeexport_ods'));
+print_grade_page_head($COURSE->id, 'export', 'ods', get_string('exportto', 'grades') . ' ' . get_string('pluginname', 'gradeexport_ods'));
if (!empty($CFG->gradepublishing)) {
$CFG->gradepublishing = has_capability('gradeexport/ods:publish', $context);
diff --git a/grade/export/ods/lang/en/gradeexport_ods.php b/grade/export/ods/lang/en/gradeexport_ods.php
index 86a34eb3d0a..8c4432c12b6 100644
--- a/grade/export/ods/lang/en/gradeexport_ods.php
+++ b/grade/export/ods/lang/en/gradeexport_ods.php
@@ -23,6 +23,6 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
-$string['modulename'] = 'OpenDocument spreadsheet';
+$string['pluginname'] = 'OpenDocument spreadsheet';
$string['ods:publish'] = 'Publish ODS grade export';
$string['ods:view'] = 'Use OpenDocument grade export';
diff --git a/grade/export/txt/index.php b/grade/export/txt/index.php
index 0f0fac3dd56..9a0b6b1e62b 100755
--- a/grade/export/txt/index.php
+++ b/grade/export/txt/index.php
@@ -33,7 +33,7 @@ $context = get_context_instance(CONTEXT_COURSE, $id);
require_capability('moodle/grade:export', $context);
require_capability('gradeexport/txt:view', $context);
-print_grade_page_head($COURSE->id, 'export', 'txt', get_string('exportto', 'grades') . ' ' . get_string('modulename', 'gradeexport_txt'));
+print_grade_page_head($COURSE->id, 'export', 'txt', get_string('exportto', 'grades') . ' ' . get_string('pluginname', 'gradeexport_txt'));
if (!empty($CFG->gradepublishing)) {
$CFG->gradepublishing = has_capability('gradeexport/txt:publish', $context);
diff --git a/grade/export/txt/lang/en/gradeexport_txt.php b/grade/export/txt/lang/en/gradeexport_txt.php
index 3e589286371..d2d0ec07c60 100644
--- a/grade/export/txt/lang/en/gradeexport_txt.php
+++ b/grade/export/txt/lang/en/gradeexport_txt.php
@@ -23,6 +23,6 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
-$string['modulename'] = 'Plain text file';
+$string['pluginname'] = 'Plain text file';
$string['txt:publish'] = 'Publish TXT grade export';
$string['txt:view'] = 'Use text grade export';
diff --git a/grade/export/xls/index.php b/grade/export/xls/index.php
index 7060524e3f5..fc509bc78a8 100755
--- a/grade/export/xls/index.php
+++ b/grade/export/xls/index.php
@@ -33,7 +33,7 @@ $context = get_context_instance(CONTEXT_COURSE, $id);
require_capability('moodle/grade:export', $context);
require_capability('gradeexport/xls:view', $context);
-print_grade_page_head($COURSE->id, 'export', 'xls', get_string('exportto', 'grades') . ' ' . get_string('modulename', 'gradeexport_xls'));
+print_grade_page_head($COURSE->id, 'export', 'xls', get_string('exportto', 'grades') . ' ' . get_string('pluginname', 'gradeexport_xls'));
if (!empty($CFG->gradepublishing)) {
$CFG->gradepublishing = has_capability('gradeexport/xls:publish', $context);
diff --git a/grade/export/xls/lang/en/gradeexport_xls.php b/grade/export/xls/lang/en/gradeexport_xls.php
index 8b2990623e4..f2bd760e777 100644
--- a/grade/export/xls/lang/en/gradeexport_xls.php
+++ b/grade/export/xls/lang/en/gradeexport_xls.php
@@ -23,6 +23,6 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
-$string['modulename'] = 'Excel spreadsheet';
+$string['pluginname'] = 'Excel spreadsheet';
$string['xls:publish'] = 'Publish XLS grade export';
$string['xls:view'] = 'Use Excel grade export';
diff --git a/grade/export/xml/index.php b/grade/export/xml/index.php
index 8b30075ffd2..cef6e6f496c 100755
--- a/grade/export/xml/index.php
+++ b/grade/export/xml/index.php
@@ -33,7 +33,7 @@ $context = get_context_instance(CONTEXT_COURSE, $id);
require_capability('moodle/grade:export', $context);
require_capability('gradeexport/xml:view', $context);
-print_grade_page_head($COURSE->id, 'export', 'xml', get_string('exportto', 'grades') . ' ' . get_string('modulename', 'gradeexport_xml'));
+print_grade_page_head($COURSE->id, 'export', 'xml', get_string('exportto', 'grades') . ' ' . get_string('pluginname', 'gradeexport_xml'));
if (!empty($CFG->gradepublishing)) {
$CFG->gradepublishing = has_capability('gradeexport/xml:publish', $context);
diff --git a/grade/export/xml/lang/en/gradeexport_xml.php b/grade/export/xml/lang/en/gradeexport_xml.php
index c4fca027dd6..7cb8dbc6e8f 100644
--- a/grade/export/xml/lang/en/gradeexport_xml.php
+++ b/grade/export/xml/lang/en/gradeexport_xml.php
@@ -23,6 +23,6 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
-$string['modulename'] = 'XML file';
+$string['pluginname'] = 'XML file';
$string['xml:publish'] = 'Publish XML grade export';
$string['xml:view'] = 'Use XML grade export';
diff --git a/grade/import/csv/lang/en/gradeimport_csv.php b/grade/import/csv/lang/en/gradeimport_csv.php
index 9afbd85b016..18c1784f9be 100644
--- a/grade/import/csv/lang/en/gradeimport_csv.php
+++ b/grade/import/csv/lang/en/gradeimport_csv.php
@@ -24,4 +24,4 @@
*/
$string['csv:view'] = 'Import grades from CSV';
-$string['modulename'] = 'CSV file';
+$string['pluginname'] = 'CSV file';
diff --git a/grade/import/xml/index.php b/grade/import/xml/index.php
index a1510d6c230..ea71a9d7541 100755
--- a/grade/import/xml/index.php
+++ b/grade/import/xml/index.php
@@ -35,7 +35,7 @@ require_capability('gradeimport/xml:view', $context);
// print header
$strgrades = get_string('grades', 'grades');
-$actionstr = get_string('modulename', 'gradeimport_xml');
+$actionstr = get_string('pluginname', 'gradeimport_xml');
if (!empty($CFG->gradepublishing)) {
$CFG->gradepublishing = has_capability('gradeimport/xml:publish', $context);
diff --git a/grade/import/xml/lang/en/gradeimport_xml.php b/grade/import/xml/lang/en/gradeimport_xml.php
index f3cad0c9547..392b9c1ef01 100644
--- a/grade/import/xml/lang/en/gradeimport_xml.php
+++ b/grade/import/xml/lang/en/gradeimport_xml.php
@@ -31,6 +31,6 @@ $string['errincorrectidnumber'] = 'Error - incorrect idnumber';
$string['errincorrectuseridnumber'] = 'Error - idnumber \'{$a}\' from the import file does not match any user.';
$string['error'] = 'Errors occur';
$string['fileurl'] = 'Remote file URL';
-$string['modulename'] = 'XML file';
+$string['pluginname'] = 'XML file';
$string['xml:publish'] = 'Publish import grades from XML';
$string['xml:view'] = 'Import grades from XML';
diff --git a/grade/lib.php b/grade/lib.php
index 33fac625bff..343fe770594 100644
--- a/grade/lib.php
+++ b/grade/lib.php
@@ -954,7 +954,7 @@ function grade_build_nav($path, $pagename=null, $id=null) {
break;
case 4:
if ($path_elements[2] == 'grader' AND $path_elements[3] != 'index.php') {
- $PAGE->navbar->add(get_string('modulename', 'gradereport_grader'), new moodle_url('/grade/report/grader/index.php', $linkparams));
+ $PAGE->navbar->add(get_string('pluginname', 'gradereport_grader'), new moodle_url('/grade/report/grader/index.php', $linkparams));
}
$PAGE->navbar->add($pagename);
break;
@@ -1024,7 +1024,7 @@ class grade_structure {
}
} else if ($element['object']->itemtype == 'mod') {
- $strmodname = get_string('modulename', $element['object']->itemmodule);
+ $strmodname = get_string('pluginname', $element['object']->itemmodule);
return '
'; // css fix to share styles with real report page
- echo $OUTPUT->heading(get_string('modulename', 'gradereport_user'). ' - '.fullname($report->user));
+ echo $OUTPUT->heading(get_string('pluginname', 'gradereport_user'). ' - '.fullname($report->user));
if ($report->fill_table()) {
echo $report->print_table(true);