From f88b42273ef71749396995484dd60e7e3ec81216 Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Tue, 9 Sep 2008 11:08:21 +0000 Subject: [PATCH] * Enahle PLURAL * Use same function as in all other error cases when throttle ie triggered --- includes/specials/SpecialUserlogin.php | 4 +--- languages/messages/MessagesEn.php | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/includes/specials/SpecialUserlogin.php b/includes/specials/SpecialUserlogin.php index c9ce767154..478ac86a52 100644 --- a/includes/specials/SpecialUserlogin.php +++ b/includes/specials/SpecialUserlogin.php @@ -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 ) ); } /** diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index 6831db6ab5..d2991cd80f 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -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. -- 2.20.1