Numbers in the parser profiling data are not internationalized
authorHuji Lee <huji.huji@gmail.com>
Tue, 2 Jan 2018 00:48:27 +0000 (19:48 -0500)
committerHuji <huji.huji@gmail.com>
Sun, 7 Jan 2018 16:59:15 +0000 (11:59 -0500)
Bug: T158607
Change-Id: I7c2939e3171e320dce6a11d1c3ba0caf36c81d8f

includes/EditPage.php

index 3c109f6..337ac15 100644 (file)
@@ -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' );
                                }
                        }