]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-6353 Quiz questions per page setting is confusing. People expect that changing...
authortjhunt <tjhunt>
Fri, 22 Aug 2008 02:13:00 +0000 (02:13 +0000)
committertjhunt <tjhunt>
Fri, 22 Aug 2008 02:13:00 +0000 (02:13 +0000)
lang/en_utf8/help/quiz/questionsperpage.html
lang/en_utf8/quiz.php
mod/quiz/config.html
mod/quiz/mod_form.php

index 16f36ba9760d4f7340e3d7e7393047eedc465cb8..406f39cc2fbcc0d9ab388a243a68a879e9914825 100644 (file)
@@ -1,4 +1,7 @@
-<h1>Questions per page</h1>
+<h1>Automatically start a new page</h1>
 
-<p>For longer quizzes it makes sense to stretch the quiz over several pages by limiting the number of questions per page. When adding questions to the quiz page breaks will automatically be inserted according to the setting you choose here. However you will also be able to move page breaks around by hand later on the editing page.
-</p>
+<p>For longer quizzes it makes sense to stretch the quiz over several pages by
+limiting the number of questions per page. When adding questions to the quiz
+page breaks will automatically be inserted according to the setting you choose 
+here. However you will also be able to move page breaks around by hand later on
+the editing page.</p>
index 66f7bea64ac6bed6536b1a8dce5972fdd6787b9f..9f6b647e0bfd9308aa56eb0a16805960556fb6f8 100644 (file)
@@ -32,6 +32,8 @@ $string['addrandom2'] = 'random questions';
 $string['addselectedtoquiz'] = 'Add selected to quiz';
 $string['addtoquiz'] = 'Add to quiz';
 $string['affectedstudents'] = 'Affected $a';
+$string['aftereachquestion'] = 'After adding each question';
+$string['afternquestions'] = 'After adding $a questions';
 $string['aiken'] = 'Aiken format';
 $string['allattempts'] = 'All attempts';
 $string['allinone'] = 'Unlimited';
@@ -368,6 +370,7 @@ $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';
+$string['newpageevery'] = 'Automatically start a new page';
 $string['noanswers'] = 'No answers were selected!';
 $string['noattempts'] = 'No attempts have been made on this quiz';
 $string['noattemptstoshow'] = 'There are no attempts to show';
index e7b882ba9deb48c25c47cd7f6e16c10e1ff667df..5df78765d9f39b1b22346a61d512290bc2976e38 100644 (file)
 </tr>
 
 <tr valign="top">
-    <td align="right"><b><?php print_string('questionsperpage', 'quiz') ?>:</b></td>
+    <td align="right"><b><?php print_string('newpageevery', 'quiz') ?>:</b></td>
     <td>
     <?php
-        $perpage= array();
-        for ($i=0; $i<=50; ++$i) {
-            $perpage[$i] = $i;
+        $perpage = array();
+        $perpage[0] = get_string('never');
+        $perpage[1] = get_string('aftereachquestion', 'quiz');
+        for ($i = 2; $i <= 50; ++$i) {
+            $perpage[$i] = get_string('afternquestions', 'quiz', $i);
         }
-        $perpage[0] = get_string('allinone', 'quiz');
 
         choose_from_menu($perpage, 'questionsperpage', $form->questionsperpage, '');
-        helpbutton('questionsperpage', get_string('questionsperpage', 'quiz'), 'quiz');
+        helpbutton('questionsperpage', get_string('newpageevery', 'quiz'), 'quiz');
      ?>
     </td>
   <td align="center">
index 1075c0ae225fdfa55c0c34dac3f50d18e8905a07..993e9c5e994be237ce595023b409e13f056e8e3f 100644 (file)
@@ -77,12 +77,13 @@ class mod_quiz_mod_form extends moodleform_mod {
 //-------------------------------------------------------------------------------
         $mform->addElement('header', 'displayhdr', get_string('display', 'form'));
         $perpage = array();
-        for ($i = 0; $i <= 50; ++$i) {
-            $perpage[$i] = $i;
+        $perpage[0] = get_string('never');
+        $perpage[1] = get_string('aftereachquestion', 'quiz');
+        for ($i = 2; $i <= 50; ++$i) {
+            $perpage[$i] = get_string('afternquestions', 'quiz', $i);
         }
-        $perpage[0] = get_string('allinone', 'quiz');
-        $mform->addElement('select', 'questionsperpage', get_string('questionsperpage', 'quiz'), $perpage);
-        $mform->setHelpButton('questionsperpage', array('questionsperpage', get_string('questionsperpage', 'quiz'), 'quiz'));
+        $mform->addElement('select', 'questionsperpage', get_string('newpageevery', 'quiz'), $perpage);
+        $mform->setHelpButton('questionsperpage', array('questionsperpage', get_string('newpageevery', 'quiz'), 'quiz'));
         $mform->setAdvanced('questionsperpage', $CFG->quiz_fix_questionsperpage);
         $mform->setDefault('questionsperpage', $CFG->quiz_questionsperpage);