Revision: 46020
Author:   philip
Date:     2009-01-22 14:31:01 +0000 (Thu, 22 Jan 2009)

Log Message:
-----------
Enable LanguageConverter on Category Pages.

Modified Paths:
--------------
    trunk/phase3/includes/CategoryPage.php

Modified: trunk/phase3/includes/CategoryPage.php
===================================================================
--- trunk/phase3/includes/CategoryPage.php      2009-01-22 13:40:12 UTC (rev 
46019)
+++ trunk/phase3/includes/CategoryPage.php      2009-01-22 14:31:01 UTC (rev 
46020)
@@ -192,9 +192,10 @@
         */
        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 ) );
        }
 



_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to