Merge "Numbers in the parser profiling data are not internationalized"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Wed, 10 Jan 2018 18:12:05 +0000 (18:12 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 10 Jan 2018 18:12:05 +0000 (18:12 +0000)
1  2 
includes/EditPage.php

diff --combined includes/EditPage.php
@@@ -3604,6 -3604,8 +3604,8 @@@ class EditPage 
         * @return string HTML
         */
        public static function getPreviewLimitReport( $output ) {
+               global $wgLang;
                if ( !$output || !$output->getLimitReportData() ) {
                        return '';
                }
                                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' );
                                }
                        }
                $out->addHTML( implode( $this->getEditButtons( $tabindex ), "\n" ) . "\n" );
  
                $cancel = $this->getCancelLink();
 -              if ( $cancel !== '' ) {
 -                      $cancel .= Html::element( 'span',
 -                              [ 'class' => 'mw-editButtons-pipe-separator' ],
 -                              $this->context->msg( 'pipe-separator' )->text() );
 -              }
  
                $message = $this->context->msg( 'edithelppage' )->inContentLanguage()->text();
                $edithelpurl = Skin::makeInternalOrExternalUrl( $message );