* Enahle PLURAL
authorRaimond Spekking <raymond@users.mediawiki.org>
Tue, 9 Sep 2008 11:08:21 +0000 (11:08 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Tue, 9 Sep 2008 11:08:21 +0000 (11:08 +0000)
* Use same function as in all other error cases when throttle ie triggered

includes/specials/SpecialUserlogin.php
languages/messages/MessagesEn.php

index c9ce767..478ac86 100644 (file)
@@ -946,9 +946,7 @@ class LoginForm {
         * @private
         */
        function throttleHit( $limit ) {
-               global $wgOut;
-
-               $wgOut->addWikiMsg( 'acct_creation_throttle_hit', $limit );
+               $this->mainLoginForm( wfMsgExt( 'acct_creation_throttle_hit', array( 'parseinline' ), $limit ) );
        }
 
        /**
index 6831db6..d2991cd 100644 (file)
@@ -960,7 +960,7 @@ To prevent abuse, only one password reminder will be sent per {{PLURAL:$1|hour|$
 'loginend'                   => '', # do not translate or duplicate this message to other languages
 'signupend'                  => '{{int:loginend}}', # do not translate or duplicate this message to other languages
 'mailerror'                  => 'Error sending mail: $1',
-'acct_creation_throttle_hit' => 'Sorry, you have already created $1 accounts.
+'acct_creation_throttle_hit' => 'Sorry, you have already created {{PLURAL:$1|1 account|$1 accounts}}.
 You cannot make any more.',
 'emailauthenticated'         => 'Your e-mail address was authenticated on $1.',
 'emailnotauthenticated'      => 'Your e-mail address is not yet authenticated.