]> git.mjollnir.org Git - moodle.git/commitdiff
Fixes MDL-11648, "Required" is inappropriate text for legend in user profile edit...
authornfreear <nfreear>
Mon, 8 Oct 2007 13:55:53 +0000 (13:55 +0000)
committernfreear <nfreear>
Mon, 8 Oct 2007 13:55:53 +0000 (13:55 +0000)
lang/en_utf8/moodle.php
user/edit_form.php
user/editadvanced_form.php

index d47afc015d51e02042f567ffc14a972270228a0f..96dc187269d6b631c3144547fd14bb624f9b1485 100644 (file)
@@ -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
index 3b0794b4d9c6267d1c70c37a528216f89c37e77e..845498e5496fd4c5ecdacd797573eea5511093cf 100644 (file)
@@ -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);
index 1bcd86a42a82f899d934e484541232e9bbb3a8e4..4d13772ccea98847d0912b7fdfb70a6a4d5992e1 100644 (file)
@@ -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');