Huji has uploaded a new change for review. https://gerrit.wikimedia.org/r/311125
Change subject: Numbers showin poll statistics should be normalized ...................................................................... Numbers showin poll statistics should be normalized Bug: 145542 Change-Id: Id6a40c31afd02341194d90513dff82069f93ba21 --- M includes/pages/ListPage.php 1 file changed, 7 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SecurePoll refs/changes/25/311125/1 diff --git a/includes/pages/ListPage.php b/includes/pages/ListPage.php index 44b9ed8..27e147b 100644 --- a/includes/pages/ListPage.php +++ b/includes/pages/ListPage.php @@ -13,6 +13,7 @@ * @param $params array Array of subpage parameters. */ public function execute( $params ) { + global $wgLang; $out = $this->specialPage->getOutput(); if ( !count( $params ) ) { @@ -79,9 +80,13 @@ $struck_votes = $res->result->num_rows; $out->addHTML('<div id="mw-poll-stats"><p>' . - $this->msg( 'securepoll-voter-stats', $distinct_voters ) . + $this->msg( 'securepoll-voter-stats', + $wgLang->formatNum( $distinct_voters ) ) . '</p><p>' . - $this->msg( 'securepoll-vote-stats', $all_votes, $not_current_votes, $struck_votes ) . + $this->msg( 'securepoll-vote-stats', + $wgLang->formatNum( $all_votes ), + $wgLang->formatNum( $not_current_votes ), + $wgLang->formatNum( $struck_votes ) ) . '</p></div>'); $pager = new SecurePoll_ListPager( $this ); -- To view, visit https://gerrit.wikimedia.org/r/311125 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Id6a40c31afd02341194d90513dff82069f93ba21 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/SecurePoll Gerrit-Branch: master Gerrit-Owner: Huji <huji.h...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits