Better prompts for multiple choice questions, see bug 2791
This commit is contained in:
@@ -244,6 +244,7 @@ $string['modulenameplural'] = 'Quizzes';
|
||||
$string['moveto'] = 'Move to >>';
|
||||
$string['multianswer'] = 'Embedded Answers (Cloze)';
|
||||
$string['multichoice'] = 'Multiple Choice';
|
||||
$string['multipleanswers'] = 'Choose at least one answer';
|
||||
$string['multiplier'] = 'Multiplier';
|
||||
$string['name'] = 'Name';
|
||||
$string['newattemptfail'] = 'Error: Could not start a new attempt at the quiz';
|
||||
@@ -406,6 +407,7 @@ $string['shuffleanswers'] = 'Shuffle answers';
|
||||
$string['shufflequestions'] = 'Shuffle questions';
|
||||
$string['significantfigures'] = ' with $a ';
|
||||
$string['significantfiguresformat'] = 'significant figures';
|
||||
$string['singleanswer'] = 'Choose one answer';
|
||||
$string['sortalpha'] = 'Sort alphabetically';
|
||||
$string['sortage'] = 'Sort by age';
|
||||
$string['sortsubmit'] = 'Sort questions';
|
||||
|
||||
@@ -270,7 +270,8 @@ class quiz_multichoice_qtype extends quiz_default_questiontype {
|
||||
|
||||
// Print input controls and alternatives
|
||||
echo '<table align="right">';
|
||||
$stranswer = get_string('answer', 'quiz');
|
||||
$stranswer = ($question->options->single) ? get_string('singleanswer', 'quiz') :
|
||||
get_string('multipleanswers', 'quiz');
|
||||
echo "<tr><td valign=\"top\">$stranswer: </td><td>";
|
||||
echo '<table>';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user