MDL-85803 mod_scorm: re-define language string for deleting attempts.

The previous version was re-purposed in 22cc9757 so lost meaning and
context elsewhere. Define new string for course reset elements.
This commit is contained in:
Paul Holden
2025-09-25 16:03:22 +01:00
parent ffe71d0f0f
commit 698e8fe848
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -36,6 +36,7 @@ $string['activitypleasewait'] = 'Activity loading, please wait ...';
$string['adminsettings'] = 'Admin settings';
$string['advanced'] = 'Parameters';
$string['aliasonly'] = 'When selecting an imsmanifest.xml file from a repository you must use an alias/shortcut for this file.';
$string['allattempts'] = 'All SCORM attempts';
$string['allowapidebug'] = 'Activate API debug and tracing (set the capture mask with apidebugmask)';
$string['allowedattemptsstudent'] = 'Allowed attempts per student';
$string['allowtypeexternal'] = 'Enable external package type';
@@ -109,7 +110,7 @@ $string['defaultdisplaysettings'] = 'Default display settings';
$string['defaultgradesettings'] = 'Default grade settings';
$string['defaultothersettings'] = 'Other default settings';
$string['deleteattemptcheck'] = 'Are you absolutely sure you want to completely delete these attempts?';
$string['deleteallattempts'] = 'All SCORM attempts';
$string['deleteallattempts'] = 'Delete all SCORM attempts';
$string['deleteselected'] = 'Delete selected attempts';
$string['deleteuserattemptcheck'] = 'Are you absolutely sure you want to completely delete all your attempts?';
$string['details'] = 'Track details';
+2 -2
View File
@@ -775,7 +775,7 @@ function scorm_option2text($scorm) {
function scorm_reset_course_form_definition(&$mform) {
$mform->addElement('header', 'scormheader', get_string('modulenameplural', 'scorm'));
$mform->addElement('static', 'scormdelete', get_string('delete'));
$mform->addElement('advcheckbox', 'reset_scorm', get_string('deleteallattempts', 'scorm'));
$mform->addElement('advcheckbox', 'reset_scorm', get_string('allattempts', 'scorm'));
}
/**
@@ -838,7 +838,7 @@ function scorm_reset_userdata($data) {
scorm_reset_gradebook($data->courseid);
}
$status[] = ['component' => $componentstr, 'item' => get_string('deleteallattempts', 'scorm'), 'error' => false];
$status[] = ['component' => $componentstr, 'item' => get_string('allattempts', 'scorm'), 'error' => false];
}
// Any changes to the list of dates that needs to be rolled should be same during course restore and course reset.