(bug 13456) categoriespagetext supports PLURAL
authorSiebrand Mazeland <siebrand@users.mediawiki.org>
Thu, 21 May 2009 17:52:43 +0000 (17:52 +0000)
committerSiebrand Mazeland <siebrand@users.mediawiki.org>
Thu, 21 May 2009 17:52:43 +0000 (17:52 +0000)
RELEASE-NOTES
includes/specials/SpecialCategories.php
languages/messages/MessagesEn.php

index 73b4db3..5346aca 100644 (file)
@@ -65,6 +65,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 18849) Implement Japanese and North Korean calendars
 * (bug 5755) Introduce {{CURRENTMONTH1}} and {{LOCALMONTH1}} to display the
   month number without the leading zero
+* (bug 13456) categoriespagetext supports PLURAL
 
 === Bug fixes in 1.16 ===
 
index fca0538..d2d03eb 100644 (file)
@@ -16,7 +16,7 @@ function wfSpecialCategories( $par=null ) {
        $cap->doQuery();
        $wgOut->addHTML(
                XML::openElement( 'div', array('class' => 'mw-spcontent') ) .
-               wfMsgExt( 'categoriespagetext', array( 'parse' ) ) .
+               wfMsgExt( 'categoriespagetext', array( 'parse' ), $cap->getNumRows() ) .
                $cap->getStartForm( $from ) .
                $cap->getNavigationBar() .
                '<ul>' . $cap->getBody() . '</ul>' .
index 7bb7757..a3adbea 100644 (file)
@@ -2241,7 +2241,7 @@ It may contain one or more characters which cannot be used in titles.',
 # Special:Categories
 'categories'                    => 'Categories',
 'categories-summary'            => '', # do not translate or duplicate this message to other languages
-'categoriespagetext'            => 'The following categories contain pages or media.
+'categoriespagetext'            => 'The following {{PLURAL:$1|category contains|categories contain}} pages or media.
 [[Special:UnusedCategories|Unused categories]] are not shown here.
 Also see [[Special:WantedCategories|wanted categories]].',
 'categoriesfrom'                => 'Display categories starting at:',