From 2c3f2dd61cdfcf96284b3870ef131799fc810444 Mon Sep 17 00:00:00 2001 From: Huji Lee Date: Mon, 1 Jan 2018 19:48:27 -0500 Subject: [PATCH] Numbers in the parser profiling data are not internationalized Bug: T158607 Change-Id: I7c2939e3171e320dce6a11d1c3ba0caf36c81d8f --- includes/EditPage.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/includes/EditPage.php b/includes/EditPage.php index 3c109f63c1..337ac1517f 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -3604,6 +3604,8 @@ class EditPage { * @return string HTML */ public static function getPreviewLimitReport( $output ) { + global $wgLang; + if ( !$output || !$output->getLimitReportData() ) { return ''; } @@ -3632,7 +3634,9 @@ class EditPage { if ( !$keyMsg->isDisabled() && !$valueMsg->isDisabled() ) { $limitReport .= Html::openElement( 'tr' ) . Html::rawElement( 'th', null, $keyMsg->parse() ) . - Html::rawElement( 'td', null, $valueMsg->params( $value )->parse() ) . + Html::rawElement( 'td', null, + $wgLang->formatNum( $valueMsg->params( $value )->parse() ) + ) . Html::closeElement( 'tr' ); } } -- 2.20.1