Accessibility: lib/weblib.php: function helpbutton - added $string['helpprefix'].

This commit is contained in:
nfreear
2006-02-28 15:29:11 +00:00
parent d455cd04e9
commit ece65914f9
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -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';
+3
View File
@@ -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="'.