From 7f6620630b285da922bef2731c100f64c772a0da Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Mon, 17 Aug 2009 09:45:39 +0000 Subject: [PATCH] Use formatNum for some more numbers. --- includes/specials/SpecialSearch.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/includes/specials/SpecialSearch.php b/includes/specials/SpecialSearch.php index cbdd337345..4d7ded7745 100644 --- a/includes/specials/SpecialSearch.php +++ b/includes/specials/SpecialSearch.php @@ -526,7 +526,7 @@ class SpecialSearch { 'search-result-size', array( 'parsemag', 'escape' ), $this->sk->formatSize( $byteSize ), - $wordCount + $wgLang->formatNum( $wordCount ) ); $date = $wgLang->timeanddate( $timestamp ); @@ -881,12 +881,17 @@ class SpecialSearch { } $out .= Xml::closeElement( 'ul' ); $out .= Xml::closeElement('div') ; - + // Results-info if ( $resultsShown > 0 ) { if ( $totalNum > 0 ){ - $top = wfMsgExt('showingresultsheader', array( 'parseinline' ), - $this->offset+1, $this->offset+$resultsShown, $totalNum, wfEscapeWikiText($term), $resultsShown ); + $top = wfMsgExt( 'showingresultsheader', array( 'parseinline' ), + $wgLang->formatNum( $this->offset + 1 ), + $wgLang->formatNum( $this->offset + $resultsShown ), + $wgLang->formatNum( $totalNum ), + wfEscapeWikiText( $term ), + $wgLang->formatNum( $resultsShown ) + ); } elseif ( $resultsShown >= $this->limit ) { $top = wfShowingResults( $this->offset, $this->limit ); } else { -- 2.20.1