Add count of hidden categories to message for better localization.
authorRaimond Spekking <raymond@users.mediawiki.org>
Mon, 25 Feb 2008 19:09:25 +0000 (19:09 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Mon, 25 Feb 2008 19:09:25 +0000 (19:09 +0000)
includes/Linker.php
languages/messages/MessagesEn.php

index a27c6c7..205c8e0 100644 (file)
@@ -1377,7 +1377,7 @@ class Linker {
                if ( count( $hiddencats ) > 0 ) {
                        # Construct the HTML
                        $outText = '<div class="mw-hiddenCategoriesExplanation">';
-                       $outText .= wfMsgExt( 'hiddencategories', array( 'parse' ) );
+                       $outText .= wfMsgExt( 'hiddencategories', array( 'parse' ), count( $hiddencats ) );
                        $outText .= '</div><ul>';
 
                        foreach ( $hiddencats as $titleObj ) {
@@ -1388,7 +1388,7 @@ class Linker {
                wfProfileOut( __METHOD__  );
                return $outText;
        }
-       
+
        /**
         * Format a size in bytes for output, using an appropriate
         * unit (B, KB, MB or GB) according to the magnitude in question
index 277d9da..5db70ef 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'          => 'Hidden categories this page is a member of:',
+'hiddencategories'          => '{{PLURAL:$1|Hidden category|Hidden categories}} this page is a member of:',
 '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.