From e129788d7441507b20796629ffd42c2212e26314 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sun, 24 Oct 2004 05:49:54 +0000 Subject: [PATCH] Language-specific number formatting in category page headers (for Hindi etc) --- includes/CategoryPage.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/CategoryPage.php b/includes/CategoryPage.php index 479938a4e4..6c56dbc0a4 100644 --- a/includes/CategoryPage.php +++ b/includes/CategoryPage.php @@ -170,9 +170,9 @@ class CategoryPage extends Article { $numchild = count( $children ); if($numchild == 1) { - $r .= wfMsg( 'subcategorycount1', 1 ); + $r .= wfMsg( 'subcategorycount1', $wgContLang->formatNum( 1 ) ); } else { - $r .= wfMsg( 'subcategorycount' , $numchild ); + $r .= wfMsg( 'subcategorycount' , $wgContLang->formatNum( $numchild ) ); } unset($numchild); @@ -234,9 +234,9 @@ class CategoryPage extends Article { $numart = count( $articles ); if($numart == 1) { - $r .= wfMsg( 'categoryarticlecount1', 1 ); + $r .= wfMsg( 'categoryarticlecount1', $wgContLang->formatNum( 1 ) ); } else { - $r .= wfMsg( 'categoryarticlecount' , $numart ); + $r .= wfMsg( 'categoryarticlecount' , $wgContLang->formatNum( $numart ) ); } unset($numart); -- 2.20.1