diff --git a/lang/en_utf8/moodle.php b/lang/en_utf8/moodle.php index fb01d825a96..102162033bd 100644 --- a/lang/en_utf8/moodle.php +++ b/lang/en_utf8/moodle.php @@ -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'; diff --git a/lib/weblib.php b/lib/weblib.php index 752c343155c..4ab097e61d6 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -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 = '
'. ''. - '
'; } if ($nextmod) { + // MDL-7486 + if ($USER->screenreader) { + $rarrow = get_string('nextsection'); + } else { + $rarrow = $THEME->rarrow; + } + $nexttext= get_string('activitynext', 'access'); $nextmod = '
'. ''. - '
'; }