From: Brion Vibber Date: Sun, 24 Oct 2004 05:49:54 +0000 (+0000) Subject: Language-specific number formatting in category page headers (for Hindi etc) X-Git-Tag: 1.5.0alpha1~1474 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=e129788d7441507b20796629ffd42c2212e26314;p=lhc%2Fweb%2Fwiklou.git Language-specific number formatting in category page headers (for Hindi etc) --- 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);