Index: trunk/extensions/SemanticSignup/includes/SES_Special.php |
— | — | @@ -58,7 +58,7 @@ |
59 | 59 | } |
60 | 60 | |
61 | 61 | if ( $value > $wgAccountCreationThrottle ) { |
62 | | - throw new Exception(wfMsg('throttlehit')); |
| 62 | + throw new Exception(wfMsg('ses-throttlehit')); |
63 | 63 | } |
64 | 64 | } |
65 | 65 | |
— | — | @@ -106,7 +106,7 @@ |
107 | 107 | $status = $user->sendConfirmationMail(); |
108 | 108 | |
109 | 109 | if ( !$status->isGood() ) { |
110 | | - throw new Exception( wfMsg( 'emailfailed' ) . "\n" . $status->getMessage() ); |
| 110 | + throw new Exception( wfMsg( 'ses-emailfailed' ) . "\n" . $status->getMessage() ); |
111 | 111 | } |
112 | 112 | } |
113 | 113 | |
Index: trunk/extensions/SemanticSignup/includes/SES_UserAccountDataChecker.php |
— | — | @@ -19,7 +19,7 @@ |
20 | 20 | $name = trim( $this->mUsername ); |
21 | 21 | $this->mUser = User::newFromName( $name, 'creatable' ); |
22 | 22 | if ( !$this->mUser ) { |
23 | | - $this->error( wfMsg( 'noname' ) ); |
| 23 | + $this->error( wfMsg( 'ses-noname' ) ); |
24 | 24 | } |
25 | 25 | |
26 | 26 | global $sesRealNameRequired; |
— | — | @@ -28,7 +28,7 @@ |
29 | 29 | $this->mPassword = $this->getUserDataValue('wpPassword'); |
30 | 30 | $retype = $this->getUserDataValue('wpRetype'); |
31 | 31 | if (strcmp($this->mPassword, $retype)) |
32 | | - $this->error(wfMsg('nopwdmatch')); |
| 32 | + $this->error(wfMsg('ses-nopwdmatch')); |
33 | 33 | |
34 | 34 | $this->mDomain = $this->getUserDataValue('wpDomain'); |
35 | 35 | |
— | — | @@ -65,7 +65,7 @@ |
66 | 66 | global $wgUser; |
67 | 67 | |
68 | 68 | if (!$wgUser->isAllowed( 'createaccount' ) || $wgUser->isBlockedFromCreateAccount() ) |
69 | | - $this->error(wfMsg('createforbidden')); |
| 69 | + $this->error(wfMsg('ses-createforbidden')); |
70 | 70 | } |
71 | 71 | |
72 | 72 | public function checkSorbs() |
— | — | @@ -81,7 +81,7 @@ |
82 | 82 | public function checkUserExists() |
83 | 83 | { |
84 | 84 | if ($this->mUser->idForName()) |
85 | | - $this->error(wfMsg('userexists')); |
| 85 | + $this->error(wfMsg('ses-userexists')); |
86 | 86 | } |
87 | 87 | |
88 | 88 | public function checkPasswordLength() |
Index: trunk/extensions/SemanticSignup/SemanticSignup.i18n.php |
— | — | @@ -17,15 +17,14 @@ |
18 | 18 | $messages['en'] = array( |
19 | 19 | 'semanticsignup' => 'Semantic Signup', |
20 | 20 | 'ses-desc' => 'A MediaWiki extension built on top of Semantic Forms allowing to populate a user page with semantic data at signup time', |
21 | | - 'nousername' => 'Username has not been specified', |
22 | | - 'nopwdmatch' => 'Password and password confirmation don\'t match', |
23 | | - 'norealname' => 'Real name is required but has not been specified', |
24 | | - 'userexists' => 'User already exists', |
25 | | - 'invaliduname' => 'Username specified is not allowed', |
26 | | - 'emailfailed' => 'Confirmation email sending failed', |
27 | | - 'createforbidden' => 'Current user is not allowed to create accounts', |
28 | | - 'throttlehit' => 'New user accounts number maximum per day has been exceeded for this IP', |
29 | | - 'ses_userexists' => 'User already exists' |
| 21 | + 'ses-nousername' => 'Username has not been specified.', |
| 22 | + 'ses-nopwdmatch' => 'Password and password confirmation do not match.', |
| 23 | + 'ses-norealname' => 'Real name is required but has not been specified.', |
| 24 | + 'ses-userexists' => 'User already exists.', |
| 25 | + 'ses-emailfailed' => 'Confirmation email sending failed.', |
| 26 | + 'ses-createforbidden' => 'Current user is not allowed to create accounts.', |
| 27 | + 'ses-throttlehit' => 'New user accounts number maximum per day has been exceeded for this IP.', |
| 28 | + 'ses-userexists' => 'User already exists.' |
30 | 29 | ); |
31 | 30 | |
32 | 31 | $magicWords = array(); |