Skip to content

Commit

Permalink
MDL-63186 workshopform_numerrors: Move percents lang string to core
Browse files Browse the repository at this point in the history
Moved 'percents' lang string from workshopform_numerrors to core_moodle.

AMOS BEGIN
 MOV [percents,workshopform_numerrors],[percents,core_moodle]
AMOS END

Part of MDL-62610
  • Loading branch information
rezaies authored and lameze committed Sep 28, 2018
1 parent d79fef2 commit 6a966ea
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions lang/en/moodle.php
Expand Up @@ -1512,6 +1512,7 @@
$string['paymentsorry'] = 'Thank you for your payment! Unfortunately your payment has not yet been fully processed, and you are not yet registered to enter the course "{$a->fullname}". Please try continuing to the course in a few seconds, but if you continue to have trouble then please alert the {$a->teacher} or the site administrator';
$string['paymentthanks'] = 'Thank you for your payment! You are now enrolled in your course:<br />"{$a}"';
$string['pendingrequests'] = 'Pending requests';
$string['percents'] = '{$a} %';
$string['periodending'] = 'Period ending ({$a})';
$string['perpage'] = 'Per page';
$string['perpagea'] = 'Per page: {$a}';
Expand Down
6 changes: 3 additions & 3 deletions mod/workshop/form/numerrors/edit_form.php
Expand Up @@ -88,14 +88,14 @@ protected function definition_inner(&$mform) {
$percents = array();
$percents[''] = '';
for ($i = 100; $i >= 0; $i--) {
$percents[$i] = get_string('percents', 'workshopform_numerrors', $i);
$percents[$i] = get_string('percents', 'moodle', $i);
}
$mform->addElement('static', 'mappingzero', 0, get_string('percents', 'workshopform_numerrors', 100));
$mform->addElement('static', 'mappingzero', 0, get_string('percents', 'moodle', 100));
for ($i = 1; $i <= $totalweight; $i++) {
$selects = array();
$selects[] = $mform->createElement('select', 'map__idx_'.$i, $i, $percents);
$selects[] = $mform->createElement('static', 'mapdefault__idx_'.$i, '',
get_string('percents', 'workshopform_numerrors', floor(100 - $i * 100 / $totalweight)));
get_string('percents', 'moodle', floor(100 - $i * 100 / $totalweight)));
$mform->addGroup($selects, 'grademapping'.$i, $i, array(' '), false);
$mform->setDefault('map__idx_'.$i, '');
}
Expand Down
Expand Up @@ -38,7 +38,6 @@
$string['grade1default'] = 'Yes';
$string['maperror'] = 'Weighted number of errors is less than or equals';
$string['mapgrade'] = 'Grade for submission';
$string['percents'] = '{$a} %';
$string['pluginname'] = 'Number of errors';
$string['privacy:metadata'] = 'The Number of errors plugin only stores the details of the assessment form. Actual personal data of how the form has been filled are stored by the Workshop module itself and are attached to exported assessments.';
$string['privacy:export:metadata:map'] = 'If the weighted number of errors reaches {$a->nonegative} then the grade is {$a->grade} percents.';

0 comments on commit 6a966ea

Please sign in to comment.