r95476 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r95475‎ | r95476 | r95477 >
Date:11:15, 25 August 2011
Author:siebrand
Status:resolved (Comments)
Tags:
Comment:
Improve i18n per CR comment on r88972.
Modified paths:
  • /trunk/extensions/SecurePoll/SecurePoll.i18n.php (modified) (history)
  • /trunk/extensions/SecurePoll/includes/entities/Election.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SecurePoll/SecurePoll.i18n.php
@@ -74,7 +74,7 @@
7575 'securepoll-api-token-mismatch' => 'Security token mismatch, cannot log in.',
7676 'securepoll-not-logged-in' => 'You must [[Special:Userlogin|log in]] to vote in this election. If you do not yet have an account, you can [[Special:Userlogin/signup|create one]].',
7777 'securepoll-too-few-edits' => 'Sorry, you cannot vote. You need to have made at least $1 {{PLURAL:$1|edit|edits}} to vote in this election, you have made $2.',
78 - 'securepoll-too-new' => 'Sorry, you cannot vote. Your account needs to have been registered before $1 to vote in this election, you registered on $2.',
 78+ 'securepoll-too-new' => 'Sorry, you cannot vote. Your account needs to have been registered before $1 at $3 to vote in this election, you registered on $2 at $4.',
7979 'securepoll-blocked' => 'Sorry, you cannot vote in this election if you are currently blocked from editing.',
8080 'securepoll-blocked-centrally' => 'Sorry, you cannot vote in this election if you are blocked on $1 or more {{PLURAL:$1|wiki|wikis}}.',
8181 'securepoll-bot' => 'Sorry, accounts with the bot flag are not allowed to vote in this election.',
Index: trunk/extensions/SecurePoll/includes/entities/Election.php
@@ -176,8 +176,10 @@
177177 if ( $maxDate && $date > $maxDate ) {
178178 $status->fatal(
179179 'securepoll-too-new',
180 - $wgLang->timeanddate( $maxDate ),
181 - $wgLang->timeanddate( $date )
 180+ $wgLang->date( $maxDate ),
 181+ $wgLang->date( $date ),
 182+ $wgLang->time( $maxDate ),
 183+ $wgLang->time( $date ),
182184 );
183185 }
184186

Follow-up revisions

RevisionCommit summaryAuthorDate
r96540Fix syntax error in r95476werdna02:16, 8 September 2011

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r88972A couple of tweaks to SecurePoll:...happy-melon15:57, 27 May 2011

Comments

#Comment by Werdna (talk | contribs)   02:16, 8 September 2011

Fixed a syntax error with r96540.

Status & tagging log