From d7129a519f7e374f7c40a58c246cf2f5a4ff543c Mon Sep 17 00:00:00 2001 From: tjhunt Date: Tue, 25 Nov 2008 13:15:53 +0000 Subject: [PATCH] accessibility / lang strings: MDL-17359 remove > being used as an arrow - screen readers don't like it. --- lang/en_utf8/moodle.php | 2 +- lang/en_utf8/quiz.php | 2 +- mod/quiz/editlib.php | 9 ++++++--- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/lang/en_utf8/moodle.php b/lang/en_utf8/moodle.php index b400be7c8f..a0d0f5582a 100644 --- a/lang/en_utf8/moodle.php +++ b/lang/en_utf8/moodle.php @@ -285,7 +285,7 @@ $string['coursehelpcategory'] = 'Position the course on the course listing and m $string['coursehelpformat'] = 'The course main page will be displayed in this format.'; $string['coursehelpnumberweeks'] = 'Number of weeks/topics displayed on the course main page.'; $string['coursehelphiddensections'] = 'How the hidden sections in the course are displayed to students.'; -$string['coursehelpnewsitemsnumber'] = 'Number of recent items appearing on the course home page, in a news box down the right-hand side
(0 => the news box won\'t appear).'; +$string['coursehelpnewsitemsnumber'] = 'Number of recent items appearing on the course home page, in a news box down the right-hand side
(0 means the news box won\'t appear).'; $string['coursehelpshowgrades'] = 'Enable the display of the gradebook. It does not prevent grades from being displayed within the individual activities.'; $string['coursehelpmaximumupload'] = 'Define the largest size of file that can be uploaded by students in this course, limited by the site wide setting.'; $string['coursehelpmetacourse'] = 'Set the course a metacourse. A meta course takes enrolments (and other role assignments) from a \"child\" course or courses.'; diff --git a/lang/en_utf8/quiz.php b/lang/en_utf8/quiz.php index cc00cb7f2f..f5bfc43abb 100644 --- a/lang/en_utf8/quiz.php +++ b/lang/en_utf8/quiz.php @@ -26,7 +26,7 @@ $string['addingshortanswer'] = 'Adding a Short-Answer question'; $string['addingtruefalse'] = 'Adding a True/False question'; $string['addmoreoverallfeedbacks'] = 'Add {no} more feedback fields'; $string['addnewpagesafterselected'] = 'Add new pages after selected questions'; -$string['addnewquestionsqbank'] = 'Add questions to the category $a in the \'Question bank contents\' tool >>'; +$string['addnewquestionsqbank'] = 'Add questions to the category $a->catname in the \'Question bank contents\' tool $a->arrow'; $string['addpagehere'] = 'Add page here'; $string['addquestion'] = 'Add question'; $string['addquestions'] = 'Add questions'; diff --git a/mod/quiz/editlib.php b/mod/quiz/editlib.php index 1705d0fb91..36dd83d9df 100644 --- a/mod/quiz/editlib.php +++ b/mod/quiz/editlib.php @@ -786,7 +786,8 @@ function quiz_print_singlequestion(&$question, &$questionurl, &$quiz){ * @param boolean $quiz_qbanktool Indicate to this function if the question bank window open */ function quiz_print_randomquestion(&$question, &$pageurl, &$quiz,$quiz_qbanktool){ - global $DB; + global $DB, $THEME; + check_theme_arrows(); echo '
'; //TODO: Tim? I left this out from the below get_record call:, , 'contextid' => $contextid @@ -828,8 +829,10 @@ function quiz_print_randomquestion(&$question, &$pageurl, &$quiz,$quiz_qbanktool "cat"=>$category->id.','.$category->contextid)). '">'; } - echo get_string("addnewquestionsqbank","quiz", - "$category->name"); + $a = new stdClass; + $a->catname = '' . $category->name . ''; + $a->arrow = $THEME->rarrow; + echo get_string('addnewquestionsqbank','quiz', $a); if(!$quiz_qbanktool){ echo ''; } -- 2.39.5