From: Philip Tzou Date: Thu, 22 Jan 2009 14:31:01 +0000 (+0000) Subject: Enable LanguageConverter on Category Pages. X-Git-Tag: 1.31.0-rc.0~43309 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=a46248b4d8a7a68bb9fc93bde06dea5fa18e0bc8;p=lhc%2Fweb%2Fwiklou.git Enable LanguageConverter on Category Pages. --- diff --git a/includes/CategoryPage.php b/includes/CategoryPage.php index 4ac24b5f46..fe1fc5bad0 100644 --- a/includes/CategoryPage.php +++ b/includes/CategoryPage.php @@ -192,9 +192,10 @@ class CategoryViewer { */ function addPage( $title, $sortkey, $pageLength, $isRedirect = false ) { global $wgContLang; + $titletext = $wgContLang->convert($title); $this->articles[] = $isRedirect - ? '' . $this->getSkin()->makeKnownLinkObj( $title ) . '' - : $this->getSkin()->makeSizeLinkObj( $pageLength, $title ); + ? '' . $this->getSkin()->makeKnownLinkObj( $title, $titletext ) . '' + : $this->getSkin()->makeSizeLinkObj( $pageLength, $title, $titletext ); $this->articles_start_char[] = $wgContLang->convert( $wgContLang->firstChar( $sortkey ) ); }