Index: trunk/phase3/includes/specials/SpecialMovepage.php |
— | — | @@ -499,20 +499,23 @@ |
500 | 500 | } |
501 | 501 | |
502 | 502 | function showSubpages( $title, $out ) { |
503 | | - global $wgUser; |
| 503 | + global $wgUser, $wgLang; |
504 | 504 | |
505 | 505 | if( !MWNamespace::hasSubpages( $title->getNamespace() ) ) |
506 | 506 | return; |
507 | 507 | |
508 | | - $out->wrapWikiMsg( '== $1 ==', 'movesubpage' ); |
509 | 508 | $subpages = $title->getSubpages(); |
| 509 | + $count = $subpages instanceof TitleArray ? $subpages->count() : 0; |
510 | 510 | |
| 511 | + $out->wrapWikiMsg( '== $1 ==', array( 'movesubpage', $count ) ); |
| 512 | + |
511 | 513 | # No subpages. |
512 | | - if ( !( $subpages instanceof TitleArray ) || $subpages->count() == 0 ) { |
| 514 | + if ( $count == 0 ) { |
513 | 515 | $out->addWikiMsg( 'movenosubpage' ); |
514 | 516 | return; |
515 | 517 | } |
516 | 518 | |
| 519 | + $out->addWikiMsg( 'movesubpagetext', $wgLang->formatnum( $count ) ); |
517 | 520 | $skin = $wgUser->getSkin(); |
518 | 521 | $out->addHTML( "<ul>\n" ); |
519 | 522 | |
Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -2769,8 +2769,8 @@ |
2770 | 2770 | 'movelogpage' => 'Move log', |
2771 | 2771 | 'movelogpagetext' => 'Below is a list of all page moves.', |
2772 | 2772 | 'movesubpage' => 'Subpages', |
2773 | | -'movesubpagetext' => 'Below is a list of subpages.', |
2774 | | -'movenosubpage' => 'This page has no subpage.', |
| 2773 | +'movesubpagetext' => 'This page has $1 {{PLURAL:$1|subpage|subpages}} shown below.', |
| 2774 | +'movenosubpage' => 'This page has no subpages.', |
2775 | 2775 | 'movereason' => 'Reason:', |
2776 | 2776 | 'revertmove' => 'revert', |
2777 | 2777 | 'delete_and_move' => 'Delete and move', |