Support plural for 'throttled-mailpassword'
authorRaimond Spekking <raymond@users.mediawiki.org>
Tue, 10 Jun 2008 10:44:13 +0000 (10:44 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Tue, 10 Jun 2008 10:44:13 +0000 (10:44 +0000)
includes/SpecialUserlogin.php
languages/messages/MessagesDe.php
languages/messages/MessagesEn.php

index e2d802b..179ef3f 100644 (file)
@@ -595,7 +595,7 @@ class LoginForm {
                if ( $u->isPasswordReminderThrottled() ) {
                        global $wgPasswordReminderResendTime;
                        # Round the time in hours to 3 d.p., in case someone is specifying minutes or seconds.
-                       $this->mainLoginForm( wfMsg( 'throttled-mailpassword',
+                       $this->mainLoginForm( wfMsgExt( 'throttled-mailpassword', array( 'parsemag' ),
                                round( $wgPasswordReminderResendTime, 3 ) ) );
                        return;
                }
index 4500759..72b5b4a 100644 (file)
@@ -597,7 +597,7 @@ Bitte melde dich damit an, sobald du es erhalten hast. Das alte Passwort bleibt
 'eauthentsent'               => 'Eine Bestätigungs-E-Mail wurde an die angegebene Adresse verschickt.
 
 Bevor eine E-Mail von anderen Benutzern über die E-Mail-Funktion empfangen werden kann, muss die Adresse und ihre tatsächliche Zugehörigkeit zu diesem Benutzerkonto erst bestätigt werden. Bitte befolge die Hinweise in der Bestätigungs-E-Mail.',
-'throttled-mailpassword'     => 'Es wurde innerhalb der letzten $1 Stunden bereits ein neues Passwort angefordert. Um einen Missbrauch der Funktion zu verhindern, kann nur alle $1 Stunden ein neues Passwort angefordert werden.',
+'throttled-mailpassword'     => 'Es wurde innerhalb der letzten {{PLURAL:$1|Stunde|$1 Stunden}} bereits ein neues Passwort angefordert. Um einen Missbrauch der Funktion zu verhindern, kann nur {{PLURAL:$1|einmal pro Stunde|alle $1 Stunden}} ein neues Passwort angefordert werden.',
 'mailerror'                  => 'Fehler beim Senden der E-Mail: $1',
 'acct_creation_throttle_hit' => 'Du hast schon $1 Benutzerkonten angelegt und kannst jetzt keine weiteren mehr anlegen.',
 'emailauthenticated'         => 'Deine E-Mail-Adresse wurde bestätigt: $1.',
index da45d18..14c948c 100644 (file)
@@ -920,8 +920,8 @@ Please log in again after you receive it.',
 'blocked-mailpassword'       => 'Your IP address is blocked from editing, and so is not allowed to use the password recovery function to prevent abuse.',
 'eauthentsent'               => 'A confirmation e-mail has been sent to the nominated e-mail address.
 Before any other e-mail is sent to the account, you will have to follow the instructions in the e-mail, to confirm that the account is actually yours.',
-'throttled-mailpassword'     => 'A password reminder has already been sent, within the last $1 hours.
-To prevent abuse, only one password reminder will be sent per $1 hours.',
+'throttled-mailpassword'     => 'A password reminder has already been sent, within the last {{PLURAL:$1|hour|$1 hours}}.
+To prevent abuse, only one password reminder will be sent per {{PLURAL:$1|hour|$1 hours}}.',
 'loginstart'                 => '', # do not translate or duplicate this message to other languages
 'loginend'                   => '', # do not translate or duplicate this message to other languages
 'signupend'                  => '{{int:loginend}}', # do not translate or duplicate this message to other languages