Permalink
Browse files

Merge branch 'MDL-60538-32' of https://github.com/mihailges/moodle in…

…to MOODLE_32_STABLE
  • Loading branch information...
dmonllao committed Oct 25, 2017
2 parents 470a2e3 + 6b818f0 commit 5a03d418608fdb11e59927889129a5b3451ee3ba
Showing with 6 additions and 1 deletion.
  1. +1 −0 mod/lesson/lang/en/lesson.php
  2. +5 −1 mod/lesson/locallib.php
@@ -218,6 +218,7 @@
$string['eventquestionviewed'] = 'Question viewed';
$string['false'] = 'False';
$string['fileformat'] = 'File format';
$string['finalwrong'] = 'Not quite.';
$string['finish'] = 'Finish';
$string['firstanswershould'] = 'First answer should jump to the "Correct" page';
$string['firstwrong'] = 'You have answered incorrectly. Would you like to attempt the question again? (If you now answer the question correctly, it will not count towards your final score.)';
@@ -2630,7 +2630,11 @@ public function properties() {
if ($qattempts == 1) {
$result->feedback = $OUTPUT->box(get_string("firstwrong", "lesson"), 'feedback');
} else {
$result->feedback = $OUTPUT->box(get_string("secondpluswrong", "lesson"), 'feedback');
if (!$result->maxattemptsreached) {
$result->feedback = $OUTPUT->box(get_string("secondpluswrong", "lesson"), 'feedback');
} else {
$result->feedback = $OUTPUT->box(get_string("finalwrong", "lesson"), 'feedback');
}
}
} else {
$result->feedback = '';

0 comments on commit 5a03d41

Please sign in to comment.