Enable LanguageConverter on Category Pages.
authorPhilip Tzou <philip@users.mediawiki.org>
Thu, 22 Jan 2009 14:31:01 +0000 (14:31 +0000)
committerPhilip Tzou <philip@users.mediawiki.org>
Thu, 22 Jan 2009 14:31:01 +0000 (14:31 +0000)
includes/CategoryPage.php

index 4ac24b5..fe1fc5b 100644 (file)
@@ -192,9 +192,10 @@ class CategoryViewer {
         */
        function addPage( $title, $sortkey, $pageLength, $isRedirect = false ) {
                global $wgContLang;
+               $titletext = $wgContLang->convert($title);
                $this->articles[] = $isRedirect
-                       ? '<span class="redirect-in-category">' . $this->getSkin()->makeKnownLinkObj( $title ) . '</span>'
-                       : $this->getSkin()->makeSizeLinkObj( $pageLength, $title );
+                       ? '<span class="redirect-in-category">' . $this->getSkin()->makeKnownLinkObj( $title, $titletext ) . '</span>'
+                       : $this->getSkin()->makeSizeLinkObj( $pageLength, $title, $titletext );
                $this->articles_start_char[] = $wgContLang->convert( $wgContLang->firstChar( $sortkey ) );
        }