mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 12:32:08 +02:00
MDL-45336 lesson: copied used strings from quiz
AMOS BEGIN CPY [false,mod_quiz],[false,mod_lesson] CPY [fractionsaddwrong,mod_quiz],[fractionsaddwrong,mod_lesson] CPY [fractionsnomax,mod_quiz],[fractionsnomax,mod_lesson] CPY [notenoughsubquestions,mod_quiz],[notenoughsubquestions,mod_lesson] CPY [true,mod_quiz],[true,mod_lesson] AMOS END
This commit is contained in:
parent
e0c22222b6
commit
cf10649795
@ -89,7 +89,7 @@ function lesson_save_question_options($question, $lesson) {
|
||||
/// Perform sanity checks on fractional grades
|
||||
if ($maxfraction != 1) {
|
||||
$maxfraction = $maxfraction * 100;
|
||||
$result->notice = get_string("fractionsnomax", "quiz", $maxfraction);
|
||||
$result->notice = get_string("fractionsnomax", "lesson", $maxfraction);
|
||||
return $result;
|
||||
}
|
||||
break;
|
||||
@ -127,7 +127,7 @@ function lesson_save_question_options($question, $lesson) {
|
||||
/// Perform sanity checks on fractional grades
|
||||
if ($maxfraction != 1) {
|
||||
$maxfraction = $maxfraction * 100;
|
||||
$result->notice = get_string("fractionsnomax", "quiz", $maxfraction);
|
||||
$result->notice = get_string("fractionsnomax", "lesson", $maxfraction);
|
||||
return $result;
|
||||
}
|
||||
break;
|
||||
@ -140,7 +140,7 @@ function lesson_save_question_options($question, $lesson) {
|
||||
$answer->lessonid = $question->lessonid;
|
||||
$answer->pageid = $question->id;
|
||||
$answer->timecreated = $timenow;
|
||||
$answer->answer = get_string("true", "quiz");
|
||||
$answer->answer = get_string("true", "lesson");
|
||||
$answer->grade = $question->correctanswer * 100;
|
||||
if ($answer->grade > 50 ) {
|
||||
$answer->jumpto = LESSON_NEXTPAGE;
|
||||
@ -156,7 +156,7 @@ function lesson_save_question_options($question, $lesson) {
|
||||
$answer->lessonid = $question->lessonid;
|
||||
$answer->pageid = $question->id;
|
||||
$answer->timecreated = $timenow;
|
||||
$answer->answer = get_string("false", "quiz");
|
||||
$answer->answer = get_string("false", "lesson");
|
||||
$answer->grade = (1 - (int)$question->correctanswer) * 100;
|
||||
if ($answer->grade > 50 ) {
|
||||
$answer->jumpto = LESSON_NEXTPAGE;
|
||||
@ -214,14 +214,14 @@ function lesson_save_question_options($question, $lesson) {
|
||||
if ($question->single) {
|
||||
if ($maxfraction != 1) {
|
||||
$maxfraction = $maxfraction * 100;
|
||||
$result->notice = get_string("fractionsnomax", "quiz", $maxfraction);
|
||||
$result->notice = get_string("fractionsnomax", "lesson", $maxfraction);
|
||||
return $result;
|
||||
}
|
||||
} else {
|
||||
$totalfraction = round($totalfraction,2);
|
||||
if ($totalfraction != 1) {
|
||||
$totalfraction = $totalfraction * 100;
|
||||
$result->notice = get_string("fractionsaddwrong", "qtype_multichoice", $totalfraction);
|
||||
$result->notice = get_string("fractionsaddwrong", "lesson", $totalfraction);
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
@ -267,7 +267,7 @@ function lesson_save_question_options($question, $lesson) {
|
||||
}
|
||||
|
||||
if (count($subquestions) < 3) {
|
||||
$result->notice = get_string("notenoughsubquestions", "quiz");
|
||||
$result->notice = get_string("notenoughsubquestions", "lesson");
|
||||
return $result;
|
||||
}
|
||||
break;
|
||||
|
@ -176,11 +176,14 @@ $string['eventhighscoreadded'] = 'Highscore added';
|
||||
$string['eventhighscoresviewed'] = 'Highscores viewed';
|
||||
$string['eventlessonended'] = 'Lesson ended';
|
||||
$string['eventlessonstarted'] = 'Lesson started';
|
||||
$string['false'] = 'False';
|
||||
$string['fileformat'] = 'File format';
|
||||
$string['finish'] = 'Finish';
|
||||
$string['firstanswershould'] = 'First answer should jump to the "Correct" page';
|
||||
$string['firstwrong'] = 'Unfortunately you cannot earn this one point, because your response was not correct. Would you like to keep guessing, just for the sheer joy of learning (but for no point credit)?';
|
||||
$string['flowcontrol'] = 'Flow control';
|
||||
$string['fractionsaddwrong'] = 'The positive grades you have chosen do not add up to 100%<br />Instead, they add up to {$a}%<br />Do you want to go back and fix this question?';
|
||||
$string['fractionsnomax'] = 'One of the answers should be 100%, so that it is<br />possible to get a full grade for this question.<br />Do you want to go back and fix this question?';
|
||||
$string['full'] = 'Expanded';
|
||||
$string['general'] = 'General';
|
||||
$string['gotoendoflesson'] = 'Go to the end of the lesson';
|
||||
@ -307,6 +310,7 @@ $string['noretake'] = 'You are not allowed to retake this lesson.';
|
||||
$string['normal'] = 'Normal - follow lesson path';
|
||||
$string['notcompleted'] = 'Not completed';
|
||||
$string['notdefined'] = 'Not defined';
|
||||
$string['notenoughsubquestions'] = 'Not enough sub-questions have been defined!';
|
||||
$string['nothighscore'] = 'You did not make the top {$a} high scores list.';
|
||||
$string['notitle'] = 'No title';
|
||||
$string['numberofcorrectanswers'] = 'Number of correct answers: {$a}';
|
||||
@ -418,6 +422,7 @@ $string['timespenterror'] = 'Spend at least {$a} minutes in the lesson';
|
||||
$string['timespentminutes'] = 'Time spent (minutes)';
|
||||
$string['timetaken'] = 'Time taken';
|
||||
$string['topscorestitle'] = 'Top {$a} high scores';
|
||||
$string['true'] = 'True';
|
||||
$string['truefalse'] = 'True/false';
|
||||
$string['unabledtosavefile'] = 'The file you uploaded could not be saved';
|
||||
$string['unknownqtypesnotimported'] = '{$a} questions with unsupported question types were not imported';
|
||||
|
Loading…
x
Reference in New Issue
Block a user