From: Aryeh Gregor Date: Thu, 20 Mar 2008 02:01:55 +0000 (+0000) Subject: Use formatNum for counts on category page. X-Git-Tag: 1.31.0-rc.0~48959 X-Git-Url: http://git.cyclocoop.org/%22.%24image2.%22?a=commitdiff_plain;h=ebc46e6b33d7287e77da64b09dc9bdd1d961f3e5;p=lhc%2Fweb%2Fwiklou.git Use formatNum for counts on category page. --- diff --git a/includes/CategoryPage.php b/includes/CategoryPage.php index 225898b797..a6d2c8e047 100644 --- a/includes/CategoryPage.php +++ b/includes/CategoryPage.php @@ -474,6 +474,7 @@ class CategoryViewer { * @return string A message giving the number of items, to output to HTML. */ private function getCountMessage( $rescnt, $dbcnt, $type ) { + global $wgLang; # There are three cases: # 1) The category table figure seems sane. It might be wrong, but # we can't do anything about it if we don't recalculate it on ev- @@ -494,9 +495,11 @@ class CategoryViewer { $totalcnt = $rescnt; } else { # Case 3: hopeless. Don't give a total count at all. - return wfMsgExt("category-$type-count-limited", 'parse', $rescnt); + return wfMsgExt("category-$type-count-limited", 'parse', + $wgLang->formatNum( $rescnt ) ); } - return wfMsgExt( "category-$type-count", 'parse', $rescnt, $totalcnt ); + return wfMsgExt( "category-$type-count", 'parse', $rescnt, + $wgLang->formatNum( $totalcnt ) ); } }