Permalink
Browse files

MDL-33374 profile: Use correct text for buttons when creating a new user

  • Loading branch information...
1 parent 555112a commit 4df3274355e3ab230291bda95fb8733d13c9984f @ankitagarwal ankitagarwal committed Sep 3, 2012
Showing with 8 additions and 1 deletion.
  1. +1 −0 lang/en/moodle.php
  2. +7 −1 user/editadvanced_form.php
View
@@ -356,6 +356,7 @@
$string['createcategory'] = 'Create category';
$string['createfolder'] = 'Create a folder in {$a}';
$string['createuserandpass'] = 'Choose your username and password';
+$string['createuser'] = 'Create user';
$string['createziparchive'] = 'Create zip archive';
$string['creatingblocks'] = 'Creating blocks';
$string['creatingblocksroles'] = 'Creating block level role assignments and overrides';
@@ -68,7 +68,13 @@ function definition() {
/// Next the customisable profile fields
profile_definition($mform, $userid);
- $this->add_action_buttons(false, get_string('updatemyprofile'));
+ if ($userid == -1) {
+ $btnstring = get_string('createuser');
+ } else {
+ $btnstring = get_string('updatemyprofile');
+ }
+
+ $this->add_action_buttons(false, $btnstring);
}
function definition_after_data() {

0 comments on commit 4df3274

Please sign in to comment.