MDL-13151 add a new language string: phone2, thanks for your idea, Jams Ballard.

This commit is contained in:
dongsheng 2008-03-26 02:58:16 +00:00
parent 6f87ef52b9
commit 55ac3d6f21
6 changed files with 6 additions and 5 deletions

View file

@ -233,7 +233,7 @@ class admin_uploaduser_form2 extends moodleform {
$mform->setType('phone1', PARAM_CLEAN); $mform->setType('phone1', PARAM_CLEAN);
$mform->setAdvanced('phone1'); $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->setType('phone2', PARAM_CLEAN);
$mform->setAdvanced('phone2'); $mform->setAdvanced('phone2');

View file

@ -1164,6 +1164,7 @@ $string['personal'] = 'Personal';
$string['personalprofile'] = 'Personal profile'; $string['personalprofile'] = 'Personal profile';
$string['pictureof'] = 'Picture of $a'; $string['pictureof'] = 'Picture of $a';
$string['phone'] = 'Phone'; $string['phone'] = 'Phone';
$string['phone2'] = 'Mobile Phone';
$string['phpinfo'] = 'PHP info'; $string['phpinfo'] = 'PHP info';
$string['pleaseclose'] = 'Please close this window now.'; $string['pleaseclose'] = 'Please close this window now.';
$string['plugincheck'] = 'Plugins check'; $string['plugincheck'] = 'Plugins check';

View file

@ -97,7 +97,7 @@ class resource_file extends resource_base {
'value' => $USER->icq), 'value' => $USER->icq),
'userphone1' => array('langstr' => get_string('phone').' 1', 'userphone1' => array('langstr' => get_string('phone').' 1',
'value' => $USER->phone1), 'value' => $USER->phone1),
'userphone2' => array('langstr' => get_string('phone').' 2', 'userphone2' => array('langstr' => get_string('phone2').' 2',
'value' => $USER->phone2), 'value' => $USER->phone2),
'userinstitution' => array('langstr' => get_string('institution'), 'userinstitution' => array('langstr' => get_string('institution'),
'value' => $USER->institution), 'value' => $USER->institution),

View file

@ -106,7 +106,7 @@ function set_parameters() {
'value' => $USER->icq), 'value' => $USER->icq),
'userphone1' => array('langstr' => get_string('phone').' 1', 'userphone1' => array('langstr' => get_string('phone').' 1',
'value' => $USER->phone1), 'value' => $USER->phone1),
'userphone2' => array('langstr' => get_string('phone').' 2', 'userphone2' => array('langstr' => get_string('phone2').' 2',
'value' => $USER->phone2), 'value' => $USER->phone2),
'userinstitution' => array('langstr' => get_string('institution'), 'userinstitution' => array('langstr' => get_string('institution'),
'value' => $USER->institution), 'value' => $USER->institution),

View file

@ -262,7 +262,7 @@ function useredit_shared_definition(&$mform) {
$mform->addElement('text', 'phone1', get_string('phone'), 'maxlength="20" size="25"'); $mform->addElement('text', 'phone1', get_string('phone'), 'maxlength="20" size="25"');
$mform->setType('phone1', PARAM_CLEAN); $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->setType('phone2', PARAM_CLEAN);
$mform->addElement('text', 'address', get_string('address'), 'maxlength="70" size="25"'); $mform->addElement('text', 'address', get_string('address'), 'maxlength="70" size="25"');

View file

@ -244,7 +244,7 @@
print_row(get_string("phone").":", "$user->phone1"); print_row(get_string("phone").":", "$user->phone1");
} }
if ($user->phone2) { if ($user->phone2) {
print_row(get_string("phone").":", "$user->phone2"); print_row(get_string("phone2").":", "$user->phone2");
} }
} }