From: nfreear Date: Mon, 8 Oct 2007 13:55:53 +0000 (+0000) Subject: Fixes MDL-11648, "Required" is inappropriate text for legend in user profile edit... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=c8149f0f4f32d821de13643821c1324d09966c4c;p=moodle.git Fixes MDL-11648, "Required" is inappropriate text for legend in user profile edit form. --- diff --git a/lang/en_utf8/moodle.php b/lang/en_utf8/moodle.php index d47afc015d..96dc187269 100644 --- a/lang/en_utf8/moodle.php +++ b/lang/en_utf8/moodle.php @@ -663,6 +663,7 @@ $string['gd1'] = 'GD 1.x is installed'; $string['gd2'] = 'GD 2.x is installed'; $string['gdneed'] = 'GD must be installed to see this graph'; $string['gdnot'] = 'GD is not installed'; +$string['general'] = 'General'; $string['gettheselogs'] = 'Get these logs'; $string['go'] = 'Go'; $string['gotoyourserver'] = '(Links back to your server)'; @@ -1597,4 +1598,4 @@ $string['zippingbackup'] = 'Zipping backup'; $string['authenticationplugins'] = 'Authentication Plugins'; $string['chooseauthmethod'] = 'Choose authentication plugin'; -?> +?> \ No newline at end of file diff --git a/user/edit_form.php b/user/edit_form.php index 3b0794b4d9..845498e549 100644 --- a/user/edit_form.php +++ b/user/edit_form.php @@ -10,6 +10,8 @@ class user_edit_form extends moodleform { $mform =& $this->_form; $this->set_upload_manager(new upload_manager('imagefile', false, false, null, false, 0, true, true, false)); + //Accessibility: "Required" is bad legend text. + $strgeneral = get_string('general'); $strrequired = get_string('required'); /// Add some extra hidden fields @@ -17,7 +19,7 @@ class user_edit_form extends moodleform { $mform->addElement('hidden', 'course', $COURSE->id); /// Print the required moodle fields first - $mform->addElement('header', 'moodle', $strrequired); + $mform->addElement('header', 'moodle', $strgeneral); /// shared fields useredit_shared_definition($mform); diff --git a/user/editadvanced_form.php b/user/editadvanced_form.php index 1bcd86a42a..4d13772cce 100644 --- a/user/editadvanced_form.php +++ b/user/editadvanced_form.php @@ -10,6 +10,8 @@ class user_editadvanced_form extends moodleform { $mform =& $this->_form; $this->set_upload_manager(new upload_manager('imagefile', false, false, null, false, 0, true, true, false)); + //Accessibility: "Required" is bad legend text. + $strgeneral = get_string('general'); $strrequired = get_string('required'); /// Add some extra hidden fields @@ -17,7 +19,7 @@ class user_editadvanced_form extends moodleform { $mform->addElement('hidden', 'course', $COURSE->id); /// Print the required moodle fields first - $mform->addElement('header', 'moodle', $strrequired); + $mform->addElement('header', 'moodle', $strgeneral); $mform->addElement('text', 'username', get_string('username'), 'size="20"'); $mform->addRule('username', $strrequired, 'required', null, 'client');