r45047 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r45046‎ | r45047 | r45048 >
Date:10:10, 26 December 2008
Author:siebrand
Status:ok
Tags:
Comment:
Add plural support for 'countedits-resulttext'
Modified paths:
  • /trunk/extensions/CountEdits/CountEdits.i18n.php (modified) (history)
  • /trunk/extensions/CountEdits/CountEdits.page.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CountEdits/CountEdits.page.php
@@ -81,7 +81,7 @@
8282 $skin =& $wgUser->getSkin();
8383 $wgOut->addHTML( '<h2>' . wfMsgHtml( 'countedits-resultheader', htmlspecialchars( $this->target ) ) . '</h2>' );
8484 $links = $skin->userLink( $id, $this->target ) . $skin->userToolLinks( $id, $this->target );
85 - $wgOut->addHTML( '<p>' . wfMsgHtml( 'countedits-resulttext', $links, $count ) . '</p>' );
 85+ $wgOut->addHTML( '<p>' . wfMsgExt( 'countedits-resulttext', array( 'escape', 'parsemag' ), $links, $count ) . '</p>' );
8686 $wgOut->addWikiText( wfMsg( 'countedits-warning' ) );
8787 }
8888
Index: trunk/extensions/CountEdits/CountEdits.i18n.php
@@ -20,7 +20,7 @@
2121 'countedits-ok' => 'OK',
2222 'countedits-nosuchuser' => 'There is no user with the name $1.',
2323 'countedits-resultheader' => 'Results for $1',
24 - 'countedits-resulttext' => '$1 has made $2 edits',
 24+ 'countedits-resulttext' => '$1 has made $2 {{PLURAL:$2|edit|edits}}',
2525 'countedits-mostactive' => 'Most active contributors',
2626 'countedits-nocontribs' => 'There have been no contributions to this wiki.',
2727 );

Status & tagging log