toc should be translated using content language
authorZheng Zhu <zhengzhu@users.mediawiki.org>
Mon, 18 Oct 2004 00:54:53 +0000 (00:54 +0000)
committerZheng Zhu <zhengzhu@users.mediawiki.org>
Mon, 18 Oct 2004 00:54:53 +0000 (00:54 +0000)
includes/Skin.php

index f7b6a35..ca352fc 100644 (file)
@@ -2569,7 +2569,7 @@ class Skin {
                $hideline = ' <script type="text/javascript">showTocToggle("' . addslashes( wfMsg('showtoc') ) . '","' . addslashes( wfMsg('hidetoc') ) . '")</script>';
                return
                '<table border="0" id="toc"><tr id="toctitle"><td align="center">'."\n".
-               '<b>'.wfMsg('toc').'</b>' .
+               '<b>'.wfMsgForContent('toc').'</b>' .
                $hideline .
                '</td></tr><tr id="tocinside"><td>'."\n".
                $toc."</td></tr></table>\n";