improved an error message, see http://moodle.org/bugs/bug.php?op=show&bugid=504&pos=0
authorgustav_delius <gustav_delius>
Wed, 29 Dec 2004 07:48:21 +0000 (07:48 +0000)
committergustav_delius <gustav_delius>
Wed, 29 Dec 2004 07:48:21 +0000 (07:48 +0000)
lang/en/quiz.php
mod/quiz/questiontypes/randomsamatch/randomsamatch.html

index 5156c5a0b02206a1dcbd998c4c350d1d5e35e295..76f5631640d66d930aac2c750fe09afe15f7ff6c 100644 (file)
@@ -58,6 +58,7 @@ $string['countdown'] = 'Countdown';
 $string['countdownfinished'] = 'The quiz is closing, you should submit your answers now.';
 $string['countdowntenminutes'] = 'The quiz will be closing in ten minutes.';
 $string['coursetestmanager'] = 'Course Test Manager format';
+$string['createfirst'] = 'You must create some short-answer questions first. ';
 $string['createmultiple'] = 'Create multiple questions';
 $string['createnewquestion'] = 'Create new question';
 $string['custom'] = 'Custom format';
index 5a0987fd180c36e4b85425d786a4b0db8cb6f393..bd5c6f51ef8b7912ebc5ff1df690d01e6cd53afd 100644 (file)
 
         if ($numberavailable < 2) {
 
-            echo "ERROR";
+            echo get_string('createfirst', 'quiz');
 
             $maxrandom=2;