Localise numbers in TOC added in r102334
authorRobin Pepermans <robin@users.mediawiki.org>
Sun, 13 Nov 2011 12:46:53 +0000 (12:46 +0000)
committerRobin Pepermans <robin@users.mediawiki.org>
Sun, 13 Nov 2011 12:46:53 +0000 (12:46 +0000)
includes/specials/SpecialEditWatchlist.php

index 54d1c53..89ddbb0 100644 (file)
@@ -411,7 +411,8 @@ class SpecialEditWatchlist extends UnlistedSpecialPage {
                                $nsText = ($ns == NS_MAIN)
                                        ? wfMsgHtml( 'blanknamespace' )
                                        : htmlspecialchars( $wgContLang->getFormattedNsText( $ns ) );
-                               $this->toc .= Linker::tocLine( "mw-htmlform-{$data['section']}", $nsText, ++$tocLength, 1 ) . Linker::tocLineEnd();
+                               $this->toc .= Linker::tocLine( "mw-htmlform-{$data['section']}", $nsText,
+                                       $this->getLang()->formatNum( ++$tocLength ), 1 ) . Linker::tocLineEnd();
                        }
                        $this->toc = Linker::tocList( $this->toc );
                } else {