MDL-20458 - adding help button to screen reader

This commit is contained in:
Rossiani Wijaya 2010-07-08 07:13:59 +00:00
parent 2821c4955b
commit 7851bd35ae
2 changed files with 2 additions and 0 deletions

View file

@ -1410,6 +1410,7 @@ $string['scalestip2'] = 'To create custom scales, click the Grades link in the c
$string['screenreaderno'] = 'No'; $string['screenreaderno'] = 'No';
$string['screenreaderuse'] = 'Screen reader'; $string['screenreaderuse'] = 'Screen reader';
$string['screenreaderyes'] = 'Yes'; $string['screenreaderyes'] = 'Yes';
$string['screenreaderuse_help'] = 'If set to yes, a more accessible interface is provided in various places such as chat.';
$string['screenshot'] = 'Screenshot'; $string['screenshot'] = 'Screenshot';
$string['search'] = 'Search'; // TODO rename to searchforums and move to mod_forum $string['search'] = 'Search'; // TODO rename to searchforums and move to mod_forum
$string['search_help'] = 'For basic searching of one or more words anywhere in the text, just type them separated by spaces. All words longer than two characters are used. $string['search_help'] = 'For basic searching of one or more words anywhere in the text, just type them separated by spaces. All words longer than two characters are used.

View file

@ -185,6 +185,7 @@ function useredit_shared_definition(&$mform, $editoroptions = null) {
$choices['1'] = get_string('screenreaderyes'); $choices['1'] = get_string('screenreaderyes');
$mform->addElement('select', 'screenreader', get_string('screenreaderuse'), $choices); $mform->addElement('select', 'screenreader', get_string('screenreaderuse'), $choices);
$mform->setDefault('screenreader', 0); $mform->setDefault('screenreader', 0);
$mform->addHelpButton('screenreader', 'screenreaderuse');
$mform->addElement('text', 'city', get_string('city'), 'maxlength="20" size="21"'); $mform->addElement('text', 'city', get_string('city'), 'maxlength="20" size="21"');
$mform->setType('city', PARAM_MULTILANG); $mform->setType('city', PARAM_MULTILANG);