}
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" );
'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',