r40791 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r40790‎ | r40791 | r40792 >
Date:18:05, 13 September 2008
Author:siebrand
Status:old
Tags:
Comment:
Add plural support for $1 and $3 in 'boardvote_nosession', 'boardvote_notloggedin', and 'boardvote_notqualified'
Modified paths:
  • /trunk/extensions/BoardVote/BoardVote.i18n.php (modified) (history)
  • /trunk/extensions/BoardVote/BoardVote_body.php (modified) (history)
  • /trunk/extensions/BoardVote/GoToBoardVote_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/BoardVote/GoToBoardVote_body.php
@@ -45,7 +45,7 @@
4646 $wgOut->addWikiText( wfMsg( "boardvote_redirecting", $url ) );
4747 $wgOut->addMeta( 'http:Refresh', '20;url=' . htmlspecialchars( $url ) );
4848 } else {
49 - $wgOut->addWikiText( wfMsg( "boardvote_notloggedin", $wgBoardVoteEditCount,
 49+ $wgOut->addWikiText( wfMsgExt( 'boardvote_notloggedin', array( 'parsemag' ), $wgBoardVoteEditCount,
5050 $wgLang->timeanddate( $wgBoardVoteCountDate ), $wgBoardVoteRecentEditCount,
5151 $wgLang->timeanddate( $wgBoardVoteRecentFirstCountDate ),
5252 $wgLang->timeanddate( $wgBoardVoteRecentCountDate )
Index: trunk/extensions/BoardVote/BoardVote_body.php
@@ -323,18 +323,18 @@
324324 global $wgOut, $wgLang;
325325 global $wgBoardVoteEditCount, $wgBoardVoteRecentEditCount, $wgBoardVoteCountDate;
326326 global $wgBoardVoteRecentFirstCountDate, $wgBoardVoteRecentCountDate;
327 - $wgOut->addWikiText( wfMsg( "boardvote_nosession", $wgBoardVoteEditCount,
 327+ $wgOut->addWikiText( wfMsgExt( 'boardvote_nosession', array( 'parsemag' ), $wgBoardVoteEditCount,
328328 $wgLang->timeanddate( $wgBoardVoteCountDate ), $wgBoardVoteRecentEditCount,
329329 $wgLang->timeanddate( $wgBoardVoteRecentFirstCountDate ),
330330 $wgLang->timeanddate( $wgBoardVoteRecentCountDate )
331 - ) );
 331+ ) );
332332 }
333333
334334 function notQualified() {
335335 global $wgOut, $wgLang;
336336 global $wgBoardVoteEditCount, $wgBoardVoteRecentEditCount, $wgBoardVoteCountDate;
337337 global $wgBoardVoteRecentFirstCountDate, $wgBoardVoteRecentCountDate;
338 - $wgOut->addWikiText( wfMsg( "boardvote_notqualified", $wgBoardVoteEditCount,
 338+ $wgOut->addWikiText( wfMsg( 'boardvote_notqualified', array( 'parsemag' ), $wgBoardVoteEditCount,
339339 $wgLang->timeanddate( $wgBoardVoteCountDate ), $wgBoardVoteRecentEditCount,
340340 $wgLang->timeanddate( $wgBoardVoteRecentFirstCountDate ),
341341 $wgLang->timeanddate( $wgBoardVoteRecentCountDate )
Index: trunk/extensions/BoardVote/BoardVote.i18n.php
@@ -55,11 +55,11 @@
5656 left empty.</p>",
5757 'boardvote_nosession' => "Your Wikimedia user ID could not be determined.
5858 Please log in to the wiki where you are qualified to vote, and go to <nowiki>[[Special:Boardvote]]</nowiki>.
59 -You must use an account with at least $1 contributions before $2, and have made at least $3 contributions between $4 and $5.",
 59+You must use an account with at least $1 {{PLURAL:$1|contribution|contributions}} before $2, and have made at least $3 {{PLURAL:$3|contribution|contributions}} between $4 and $5.",
6060 'boardvote_notloggedin' => "You are not logged in.
61 -To vote, you must use an account with at least $1 contributions before $2, and have made at least $3 contributions between $4 and $5.",
 61+To vote, you must use an account with at least $1 {{PLURAL:$1|contribution|contributions}} before $2, and have made at least $3 {{PLURAL:$3|contribution|contributions}} between $4 and $5.",
6262 'boardvote_notqualified' => "You are not qualified to vote in this election.
63 -You need to have made at least $1 contributions before $2, and have made at least $3 contributions between $4 and $5.",
 63+You need to have made at least $1 {{PLURAL:$1|contribution|contributions}} before $2, and have made at least $3 {{PLURAL:$3|contribution|contributions}} between $4 and $5.",
6464 'boardvote_novotes' => "Nobody has voted yet.",
6565 'boardvote_time' => "Time",
6666 'boardvote_user' => "User",