* If there's only one category, display "Category", else display "Categories"
authorÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Wed, 26 Oct 2005 01:57:23 +0000 (01:57 +0000)
committerÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Wed, 26 Oct 2005 01:57:23 +0000 (01:57 +0000)
includes/Skin.php

index 9f723ba..9e03676 100644 (file)
@@ -425,9 +425,10 @@ END;
                # Taken out so that they will be displayed in previews -- TS
                #if( !$wgOut->isArticle() ) return '';
 
-               $t = implode ( ' | ' , $wgOut->mCategoryLinks ) ;
+               $t = implode ( ' | ' , $wgOut->mCategoryLinks );
+               $msg = count( $wgOut->mCategoryLinks ) === 1 ? 'categories1' : 'categories';
                $s = $this->makeKnownLinkObj( Title::makeTitle( NS_SPECIAL, 'Categories' ),
-                       wfMsg( 'categories' ), 'article=' . urlencode( $wgTitle->getPrefixedDBkey() ) )
+                       wfMsg( $msg ), 'article=' . urlencode( $wgTitle->getPrefixedDBkey() ) )
                        . ': ' . $t;
 
                # optional 'dmoz-like' category browser. Will be shown under the list