BUG#160 Internationalize display of numbers:

* section numbers in TOC
* file size in edit page warning for big articles.
This commit is contained in:
Jens Frank 2004-08-28 19:08:49 +00:00
parent 487722221b
commit dac2ca94f4
2 changed files with 3 additions and 3 deletions

View file

@ -290,7 +290,7 @@ class EditPage {
$kblength = (int)(strlen( $this->textbox1 ) / 1024);
if( $kblength > 29 ) {
$wgOut->addHTML( '<strong>' .
wfMsg( 'longpagewarning', $kblength )
wfMsg( 'longpagewarning', $wgLang->formatNum( $kblength ) )
. '</strong>' );
}

View file

@ -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;
}
}