From: Huji Lee Date: Tue, 2 Jan 2018 00:48:27 +0000 (-0500) Subject: Numbers in the parser profiling data are not internationalized X-Git-Tag: 1.31.0-rc.0~942^2 X-Git-Url: http://git.cyclocoop.org/clavettes/images/siteon3.jpg?a=commitdiff_plain;h=2c3f2dd61cdfcf96284b3870ef131799fc810444;p=lhc%2Fweb%2Fwiklou.git Numbers in the parser profiling data are not internationalized Bug: T158607 Change-Id: I7c2939e3171e320dce6a11d1c3ba0caf36c81d8f --- 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' ); } }