r14135 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r14134‎ | r14135 | r14136 >
Date:16:58, 8 May 2006
Author:nikerabbit
Status:old
Tags:
Comment:
* Added formatNum call
* Support for {{plural:}} (ref 5805)
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/SpecialMostcategories.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialMostcategories.php
@@ -40,16 +40,19 @@
4141 }
4242
4343 function formatResult( $skin, $result ) {
44 - global $wgContLang;
 44+ global $wgContLang, $wgLang;
4545
4646 $nt = Title::makeTitle( $result->namespace, $result->title );
4747 $text = $wgContLang->convert( $nt->getPrefixedText() );
4848
4949 $plink = $skin->makeKnownLink( $nt->getPrefixedText(), $text );
5050
51 - $nl = wfMsg( 'ncategories', $result->value );
52 - $nlink = $skin->makeKnownLink( $wgContLang->specialPage( 'Categories' ), $nl, 'article=' . $nt->getPrefixedURL() );
 51+ $nl = wfMsgExt( 'ncategories', array( 'parsemag', 'escape' ),
 52+ $wgLang->formatNum( $result->value ) );
5353
 54+ $nlink = $skin->makeKnownLink( $wgContLang->specialPage( 'Categories' ),
 55+ $nl, 'article=' . $nt->getPrefixedURL() );
 56+
5457 return wfSpecialList($plink, $nlink);
5558 }
5659 }
Index: trunk/phase3/RELEASE-NOTES
@@ -212,7 +212,7 @@
213213 Special:Wantedcategories and Special:Mostlinkedcategories.
214214 * (bug 3309) Allow comments when undeleting pages
215215 * Clean up Special:Undelete a bit
216 -* (bug 5805) message nbytes can now use {{plural:}}
 216+* (bug 5805) messages nbytes, ncategories can now use {{plural:}}
217217 * Clean up Special:Imagelist a bit
218218 * (bug 5838) Namespace names for Nds-NL
219219 * (bug 5749) Added Tyvan language files

Status & tagging log