From a46248b4d8a7a68bb9fc93bde06dea5fa18e0bc8 Mon Sep 17 00:00:00 2001 From: Philip Tzou Date: Thu, 22 Jan 2009 14:31:01 +0000 Subject: [PATCH] Enable LanguageConverter on Category Pages. --- includes/CategoryPage.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 ) ); } -- 2.20.1