MDL-13151 add a new language string: phone2, thanks for your idea, Jams Ballard.
authordongsheng <dongsheng>
Wed, 26 Mar 2008 02:58:16 +0000 (02:58 +0000)
committerdongsheng <dongsheng>
Wed, 26 Mar 2008 02:58:16 +0000 (02:58 +0000)
admin/uploaduser_form.php
lang/en_utf8/moodle.php
mod/resource/type/file/resource.class.php
mod/resource/type/repository/resource.class.php
user/editlib.php
user/view.php

index b3c05db373b839f4db4474d6f00c6f7efafe9612..79559a68cb6a9eadf7af14fff54dcd7b93e44c5f 100644 (file)
@@ -233,7 +233,7 @@ class admin_uploaduser_form2 extends moodleform {
         $mform->setType('phone1', PARAM_CLEAN);
         $mform->setAdvanced('phone1');
 
-        $mform->addElement('text', 'phone2', get_string('phone'), 'maxlength="20" size="25"');
+        $mform->addElement('text', 'phone2', get_string('phone2'), 'maxlength="20" size="25"');
         $mform->setType('phone2', PARAM_CLEAN);
         $mform->setAdvanced('phone2');
 
index 604a1ca0186babcc3e25508a8626465ab75f700c..112990a701c7d8174a6e733061c154160a0f2762 100644 (file)
@@ -1164,6 +1164,7 @@ $string['personal'] = 'Personal';
 $string['personalprofile'] = 'Personal profile';
 $string['pictureof'] = 'Picture of $a';
 $string['phone'] = 'Phone';
+$string['phone2'] = 'Mobile Phone';
 $string['phpinfo'] = 'PHP info';
 $string['pleaseclose'] = 'Please close this window now.';
 $string['plugincheck'] = 'Plugins check';
index 464da8a28dcfc6697bf4443d43c674fda692ed7a..5fffca58b7ea6e2aa9f2e063a6d58996c9af59c6 100644 (file)
@@ -97,7 +97,7 @@ class resource_file extends resource_base {
                                            'value'   => $USER->icq),
                 'userphone1'      => array('langstr' => get_string('phone').' 1',
                                            'value'   => $USER->phone1),
-                'userphone2'      => array('langstr' => get_string('phone').' 2',
+                'userphone2'      => array('langstr' => get_string('phone2').' 2',
                                            'value'   => $USER->phone2),
                 'userinstitution' => array('langstr' => get_string('institution'),
                                            'value'   => $USER->institution),
index a492a3734982547db19b8fe0875386c807737480..6528da85f59d98a6710e0b2befeb0864122c2151 100644 (file)
@@ -106,7 +106,7 @@ function set_parameters() {
                                        'value'   => $USER->icq),
             'userphone1'      => array('langstr' => get_string('phone').' 1',
                                        'value'   => $USER->phone1),
-            'userphone2'      => array('langstr' => get_string('phone').' 2',
+            'userphone2'      => array('langstr' => get_string('phone2').' 2',
                                        'value'   => $USER->phone2),
             'userinstitution' => array('langstr' => get_string('institution'),
                                        'value'   => $USER->institution),
index b7c927a308edc938337704fe46e10e94a146bc9d..d8d8bcf93100a8dee7d81024697bf1abe3c01e58 100644 (file)
@@ -262,7 +262,7 @@ function useredit_shared_definition(&$mform) {
     $mform->addElement('text', 'phone1', get_string('phone'), 'maxlength="20" size="25"');
     $mform->setType('phone1', PARAM_CLEAN);
 
-    $mform->addElement('text', 'phone2', get_string('phone'), 'maxlength="20" size="25"');
+    $mform->addElement('text', 'phone2', get_string('phone2'), 'maxlength="20" size="25"');
     $mform->setType('phone2', PARAM_CLEAN);
 
     $mform->addElement('text', 'address', get_string('address'), 'maxlength="70" size="25"');
index b344f926e487dd97376024d49c6c42afecb92cfe..bbd03126be75a0c3708be4179e4010d387233fc7 100644 (file)
             print_row(get_string("phone").":", "$user->phone1");
         }
         if ($user->phone2) {
-            print_row(get_string("phone").":", "$user->phone2");
+            print_row(get_string("phone2").":", "$user->phone2");
         }
     }