]> git.mjollnir.org Git - moodle.git/commitdiff
fix for MDL-7486, replace < and > with words for accessiblity
authortoyomoyo <toyomoyo>
Mon, 27 Nov 2006 03:07:01 +0000 (03:07 +0000)
committertoyomoyo <toyomoyo>
Mon, 27 Nov 2006 03:07:01 +0000 (03:07 +0000)
lang/en_utf8/moodle.php
lib/weblib.php

index fb01d825a9655447b039b8dba02a1745426e422f..102162033bdc05728e5dd5ea2fe0fd8b7a6aea4e 100644 (file)
@@ -941,6 +941,7 @@ Cheers from the \'$a->sitename\' administrator,
 $a->signoff';
 $string['newusers'] = 'New users';
 $string['next'] = 'Next';
+$string['nextsection'] = 'Next section';
 $string['no'] = 'No';
 $string['nobody'] = 'Nobody';
 $string['nochange'] = 'No change';
@@ -1073,6 +1074,7 @@ $string['preview'] = 'Preview';
 $string['previewhtml'] = 'HTML Format Preview';
 $string['previeworchoose'] = 'Preview or choose a theme';
 $string['previous'] = 'Previous';
+$string['previoussection'] = 'Previous section';
 $string['profile'] = 'Profile';
 $string['publicdirectory'] = 'Public directory';
 $string['publicdirectory0'] = 'Please do not publish this site';
index 752c343155c1335c4f3571a9d3c4c514f279ae68..4ab097e61d66ad2f26ac0bdeb3085073be495c46 100644 (file)
@@ -4017,7 +4017,7 @@ function print_group_menu($groups, $groupmode, $currentgroup, $urlroot, $showall
  */
 function navmenu($course, $cm=NULL, $targetwindow='self') {
 
-    global $CFG, $THEME;
+    global $CFG, $THEME, $USER;
 
     if (empty($THEME->navmenuwidth)) {
         $width = 50;
@@ -4128,17 +4128,31 @@ function navmenu($course, $cm=NULL, $targetwindow='self') {
 
     }
     if ($backmod) {
+        // MDL-7486
+        if ($USER->screenreader) {
+            $larrow = get_string('previoussection');
+        } else {
+            $larrow = $THEME->larrow;
+        }    
+      
         $backtext= get_string('activityprev', 'access');
         $backmod = '<form action="'.$CFG->wwwroot.'/mod/'.$backmod->mod.'/view.php" target="'.$CFG->framename.'">'.
                    '<input type="hidden" name="id" value="'.$backmod->cm.'" />'.
-                   '<button type="submit" title="'.$backtext.'">'.$THEME->larrow.
+                   '<button type="submit" title="'.$backtext.'">'.$larrow.
                    '<span class="accesshide">'.$backtext.'</span></button></form>';
     }
     if ($nextmod) {
+        // MDL-7486    
+        if ($USER->screenreader) {
+            $rarrow = get_string('nextsection');
+        } else {
+            $rarrow = $THEME->rarrow;
+        }   
+      
         $nexttext= get_string('activitynext', 'access');
         $nextmod = '<form action="'.$CFG->wwwroot.'/mod/'.$nextmod->mod.'/view.php" target="'.$CFG->framename.'">'.
                    '<input type="hidden" name="id" value="'.$nextmod->cm.'" />'.
-                   '<button type="submit" title="'.$nexttext.'">'.$THEME->rarrow.
+                   '<button type="submit" title="'.$nexttext.'">'.$rarrow.
                    '<span class="accesshide">'.$nexttext.'</span></button></form>';
     }