Per siebrand and Nikerabbit (tweak for r47535):
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Fri, 20 Feb 2009 10:29:44 +0000 (10:29 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Fri, 20 Feb 2009 10:29:44 +0000 (10:29 +0000)
* Reworded movesubpagetext to include the number of subpages
* Fix spelling error in movesnoubpage
* Allow plural in movesubpage

includes/specials/SpecialMovepage.php
languages/messages/MessagesEn.php

index d7a8eaa..ea839d5 100644 (file)
@@ -499,20 +499,23 @@ class MovePageForm {
        }
 
        function showSubpages( $title, $out ) {
-               global $wgUser;
+               global $wgUser, $wgLang;
 
                if( !MWNamespace::hasSubpages( $title->getNamespace() ) )
                        return;
 
-               $out->wrapWikiMsg( '== $1 ==', 'movesubpage' );
                $subpages = $title->getSubpages();
+               $count = $subpages instanceof TitleArray ? $subpages->count() : 0;
+
+               $out->wrapWikiMsg( '== $1 ==', array( 'movesubpage', $count ) );
 
                # No subpages.
-               if ( !( $subpages instanceof TitleArray ) || $subpages->count() == 0 ) {
+               if ( $count == 0 ) {
                        $out->addWikiMsg( 'movenosubpage' );
                        return;
                }
 
+               $out->addWikiMsg( 'movesubpagetext', $wgLang->formatnum( $count ) );
                $skin = $wgUser->getSkin();
                $out->addHTML( "<ul>\n" );
 
index b6a2071..ffcc22c 100644 (file)
@@ -2769,8 +2769,8 @@ Please merge them manually.'''",
 'movelogpage'                  => 'Move log',
 'movelogpagetext'              => 'Below is a list of all page moves.',
 'movesubpage'                  => 'Subpages',
-'movesubpagetext'              => 'Below is a list of subpages.',
-'movenosubpage'                => 'This page has no subpage.',
+'movesubpagetext'              => 'This page has $1 {{PLURAL:$1|subpage|subpages}} shown below.',
+'movenosubpage'                => 'This page has no subpages.',
 'movereason'                   => 'Reason:',
 'revertmove'                   => 'revert',
 'delete_and_move'              => 'Delete and move',