Better prompts for multiple choice questions, see bug 2791

This commit is contained in:
gustav_delius
2006-02-17 14:14:18 +00:00
parent 80329e02da
commit fe5a3eb249
2 changed files with 4 additions and 1 deletions
+2
View File
@@ -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:&nbsp;&nbsp;</td><td>";
echo '<table>';