Index: trunk/phase3/includes/parser/Parser.php |
— | — | @@ -3980,7 +3980,7 @@ |
3981 | 3981 | if ( $prevtoclevel > 0 && $prevtoclevel < $wgMaxTocLevel ) { |
3982 | 3982 | $toc .= $sk->tocUnindent( $prevtoclevel - 1 ); |
3983 | 3983 | } |
3984 | | - $toc = $sk->tocList( $toc ); |
| 3984 | + $toc = $sk->tocList( $toc, $this->mOptions->getUserLang() ); |
3985 | 3985 | $this->mOutput->setTOCHTML( $toc ); |
3986 | 3986 | } |
3987 | 3987 | |
Index: trunk/phase3/includes/Linker.php |
— | — | @@ -1322,10 +1322,11 @@ |
1323 | 1323 | * Wraps the TOC in a table and provides the hide/collapse javascript. |
1324 | 1324 | * |
1325 | 1325 | * @param $toc String: html of the Table Of Contents |
| 1326 | + * @param $lang mixed: Language code for the toc title |
1326 | 1327 | * @return String: full html of the TOC |
1327 | 1328 | */ |
1328 | | - function tocList( $toc ) { |
1329 | | - $title = wfMsgHtml( 'toc' ) ; |
| 1329 | + function tocList( $toc, $lang = false ) { |
| 1330 | + $title = wfMsgExt( 'toc', array( 'language' => $lang, 'escape' ) ); |
1330 | 1331 | return |
1331 | 1332 | '<table id="toc" class="toc"><tr><td>' |
1332 | 1333 | . '<div id="toctitle"><h2>' . $title . "</h2></div>\n" |