quiz editing: MDL-18173 tidy up wording and add cursor: help.
authortjhunt <tjhunt>
Wed, 25 Feb 2009 07:27:02 +0000 (07:27 +0000)
committertjhunt <tjhunt>
Wed, 25 Feb 2009 07:27:02 +0000 (07:27 +0000)
lang/en_utf8/quiz.php
mod/quiz/editlib.php
theme/standard/styles_layout.css

index 689805ccc4bde4d5161b252793f410f17c9b5f1c..2faa8b71573fef17abf1124f662eddbde6b1cd88 100644 (file)
@@ -552,8 +552,7 @@ $string['quiztimer'] = 'Quiz Timer';
 $string['quizwillopen'] = 'This quiz will open $a';
 $string['random'] = 'Random Question';
 $string['randomcreate'] = 'Create Random Questions';
-$string['randomfromcategory'] = 'Random question from all of category:';
-$string['randomfromcategoryonly'] = 'Random question from just category:';
+$string['randomfromcategory'] = 'Random question from category:';
 $string['randomnosubcat'] = 'Questions from this category only, not its subcategories.';
 $string['randomsamatch'] = 'Random Short-Answer Matching';
 $string['randomsamatchcreate'] = 'Create Random Short-Answer Matching questions';
index e71ad1eef2c9e03ec393b68eb6a263c385ccb67d..4e1f1cd7cc1188a961b64cf5cd029a8fc6d426d3 100644 (file)
@@ -677,12 +677,7 @@ function quiz_print_randomquestion(&$question, &$pageurl, &$quiz,$quiz_qbanktool
     echo '<div class="randomquestionfromcategory">';
     print_question_icon($question);
     print_random_option_icon($question);
-    if (!empty($question->questiontext)) {
-        $string = 'randomfromcategory';
-    } else {
-        $string = 'randomfromcategoryonly';
-    }
-    echo ' ' . get_string($string, 'quiz') . '</div>';
+    echo ' ' . get_string('randomfromcategory', 'quiz') . '</div>';
 
     $a = new stdClass;
     $a->arrow = $THEME->rarrow;
@@ -834,7 +829,7 @@ function print_random_option_icon($question) {
         $tooltip = get_string('randomnosubcat', 'quiz');
     }
     echo  '<img src="' . $CFG->pixpath . '/i/' . $icon . '.png" alt="' .
-            $tooltip . '" title="' . $tooltip . '" />';
+            $tooltip . '" title="' . $tooltip . '" class="uihint" />';
     
 }
 
index c76abf1cb8db08fd853854ae848610555a025ec0..e6863fb843b23253ffb596f01c77c01d13333881 100644 (file)
@@ -129,6 +129,10 @@ img.grouppicture {
   border: 0;
 }
 
+img.uihint {
+  cursor: help;
+}
+
 #grouppicture {
   text-align: center;
 }