From ebc46e6b33d7287e77da64b09dc9bdd1d961f3e5 Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Thu, 20 Mar 2008 02:01:55 +0000 Subject: [PATCH] Use formatNum for counts on category page. --- includes/CategoryPage.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 ) ); } } -- 2.20.1