Add formatnum to count of hidden categories, rephrase it a bit.
authorRaimond Spekking <raymond@users.mediawiki.org>
Mon, 25 Feb 2008 20:36:29 +0000 (20:36 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Mon, 25 Feb 2008 20:36:29 +0000 (20:36 +0000)
includes/Linker.php
languages/messages/MessagesEn.php

index 205c8e0..4f27d65 100644 (file)
@@ -1368,7 +1368,7 @@ class Linker {
         * @return string HTML output
         */
        public function formatHiddenCategories( $hiddencats) {
-               global $wgUser;
+               global $wgUser, $wgLang;
                wfProfileIn( __METHOD__ );
 
                $sk = $wgUser->getSkin();
@@ -1377,7 +1377,7 @@ class Linker {
                if ( count( $hiddencats ) > 0 ) {
                        # Construct the HTML
                        $outText = '<div class="mw-hiddenCategoriesExplanation">';
-                       $outText .= wfMsgExt( 'hiddencategories', array( 'parse' ), count( $hiddencats ) );
+                       $outText .= wfMsgExt( 'hiddencategories', array( 'parse' ), $wgLang->formatnum( count( $hiddencats ) ) );
                        $outText .= '</div><ul>';
 
                        foreach ( $hiddencats as $titleObj ) {
index 5db70ef..f04f633 100644 (file)
@@ -1066,7 +1066,7 @@ Please consider breaking the page into smaller sections.</strong>',
 'templatesusedsection'      => 'Templates used in this section:',
 'template-protected'        => '(protected)',
 'template-semiprotected'    => '(semi-protected)',
-'hiddencategories'          => '{{PLURAL:$1|Hidden category|Hidden categories}} this page is a member of:',
+'hiddencategories'          => 'This page is a member of {{PLURAL:$1|1 hidden category|$1 hidden categories}}:',
 'edittools'                 => '<!-- Text here will be shown below edit and upload forms. -->', # only translate this message to other languages if you have to change it
 'nocreatetitle'             => 'Page creation limited',
 'nocreatetext'              => '{{SITENAME}} has restricted the ability to create new pages.