From 8e84d9788cf78c03a82db89896297d937967bdf1 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Wed, 25 Feb 2009 07:27:02 +0000 Subject: [PATCH] quiz editing: MDL-18173 tidy up wording and add cursor: help. --- lang/en_utf8/quiz.php | 3 +-- mod/quiz/editlib.php | 9 ++------- theme/standard/styles_layout.css | 4 ++++ 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/lang/en_utf8/quiz.php b/lang/en_utf8/quiz.php index 689805ccc4..2faa8b7157 100644 --- a/lang/en_utf8/quiz.php +++ b/lang/en_utf8/quiz.php @@ -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'; diff --git a/mod/quiz/editlib.php b/mod/quiz/editlib.php index e71ad1eef2..4e1f1cd7cc 100644 --- a/mod/quiz/editlib.php +++ b/mod/quiz/editlib.php @@ -677,12 +677,7 @@ function quiz_print_randomquestion(&$question, &$pageurl, &$quiz,$quiz_qbanktool echo '
'; print_question_icon($question); print_random_option_icon($question); - if (!empty($question->questiontext)) { - $string = 'randomfromcategory'; - } else { - $string = 'randomfromcategoryonly'; - } - echo ' ' . get_string($string, 'quiz') . '
'; + echo ' ' . get_string('randomfromcategory', 'quiz') . ''; $a = new stdClass; $a->arrow = $THEME->rarrow; @@ -834,7 +829,7 @@ function print_random_option_icon($question) { $tooltip = get_string('randomnosubcat', 'quiz'); } echo '' .
-            $tooltip . ''; + $tooltip . '" title="' . $tooltip . '" class="uihint" />'; } diff --git a/theme/standard/styles_layout.css b/theme/standard/styles_layout.css index c76abf1cb8..e6863fb843 100644 --- a/theme/standard/styles_layout.css +++ b/theme/standard/styles_layout.css @@ -129,6 +129,10 @@ img.grouppicture { border: 0; } +img.uihint { + cursor: help; +} + #grouppicture { text-align: center; } -- 2.39.5