Accessibility: lib/weblib.php: function helpbutton - added $string['helpprefix'].
This commit is contained in:
@@ -614,6 +614,7 @@ $string['helpformatting'] = 'About formatting text';
|
||||
$string['helphtml'] = 'How to write html';
|
||||
$string['helpindex'] = 'Index of all help files';
|
||||
$string['helppicture'] = 'How to upload a picture';
|
||||
$string['helpprefix'] = 'Help with';
|
||||
$string['helpquestions'] = 'Ask good questions';
|
||||
$string['helpreading'] = 'Read carefully';
|
||||
$string['helprichtext'] = 'About the HTML editor';
|
||||
|
||||
@@ -3915,6 +3915,7 @@ function print_error ($string, $link='') {
|
||||
* @uses $CFG
|
||||
* @param string $page The keyword that defines a help page
|
||||
* @param string $title The title of links, rollover tips, alt tags etc
|
||||
* 'Help with' (or the language equivalent) will be prefixed and '...' will be stripped.
|
||||
* @param string $module Which module is the page defined in
|
||||
* @param mixed $image Use a help image for the link? (true/false/"both")
|
||||
* @param string $text If defined then this text is used in the page, and
|
||||
@@ -3934,6 +3935,8 @@ function helpbutton ($page, $title='', $module='moodle', $image=true, $linktext=
|
||||
|
||||
$linkobject = '<span class="helplink">';
|
||||
|
||||
//Accessibility: prefix the alt text/title with 'Help with', strip distracting dots '...'
|
||||
$title = get_string('helpprefix') ." '". trim($title,' \t.') ."'";
|
||||
if ($image) {
|
||||
if ($imagetext == '') {
|
||||
$imagetext = '<img height="17" width="17" alt="'.$title.'" src="'.
|
||||
|
||||
Reference in New Issue
Block a user