Permalink
Browse files

Merge branch 'MDL-33374-m23' of git://github.com/ankitagarwal/moodle …

…into MOODLE_23_STABLE
  • Loading branch information...
2 parents 5a05aa9 + 800abd6 commit 1595c976dd094f1bc7485c118ce1095c2a895aed Sam Hemelryk committed Sep 10, 2012
Showing with 8 additions and 1 deletion.
  1. +1 −0 lang/en/moodle.php
  2. +7 −1 user/editadvanced_form.php
View
1 lang/en/moodle.php
@@ -363,6 +363,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';
View
8 user/editadvanced_form.php
@@ -72,7 +72,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 1595c97

Please sign in to comment.