diff --git a/includes/EditPage.php b/includes/EditPage.php index d1c3a9f627e..83f30346372 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -290,7 +290,7 @@ class EditPage { $kblength = (int)(strlen( $this->textbox1 ) / 1024); if( $kblength > 29 ) { $wgOut->addHTML( '' . - wfMsg( 'longpagewarning', $kblength ) + wfMsg( 'longpagewarning', $wgLang->formatNum( $kblength ) ) . '' ); } diff --git a/includes/Parser.php b/includes/Parser.php index ae665d2fd3c..4a1bc0c70c7 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -1855,7 +1855,7 @@ class Parser # It loops through all headlines, collects the necessary data, then splits up the # string and re-inserts the newly formatted headlines. /* private */ function formatHeadings( $text, $isMain=true ) { - global $wgInputEncoding, $wgMaxTocLevel; + global $wgInputEncoding, $wgMaxTocLevel, $wgLang; $doNumberHeadings = $this->mOptions->getNumberHeadings(); $doShowToc = $this->mOptions->getShowToc(); @@ -1954,7 +1954,7 @@ class Parser if( $dot ) { $numbering .= '.'; } - $numbering .= $sublevelCount[$i]; + $numbering .= $wgLang->formatNum( $sublevelCount[$i] ); $dot = 1; } }