$kblength = (int)(strlen( $this->textbox1 ) / 1024);
if( $kblength > 29 ) {
$wgOut->addHTML( '<strong>' .
- wfMsg( 'longpagewarning', $kblength )
+ wfMsg( 'longpagewarning', $wgLang->formatNum( $kblength ) )
. '</strong>' );
}
# 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();
if( $dot ) {
$numbering .= '.';
}
- $numbering .= $sublevelCount[$i];
+ $numbering .= $wgLang->formatNum( $sublevelCount[$i] );
$dot = 1;
}
}