Use appropriate message for talk page links.
authorRaimond Spekking <raymond@users.mediawiki.org>
Thu, 12 Jul 2007 08:43:46 +0000 (08:43 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Thu, 12 Jul 2007 08:43:46 +0000 (08:43 +0000)
Localization was broken for user language != content language

includes/WatchlistEditor.php

index abd7924..2ad32bb 100644 (file)
@@ -132,7 +132,7 @@ class WatchlistEditor {
         * @param Skin $skin
         */
        private function showTitles( $titles, $output, $skin ) {
-               $talk = htmlspecialchars( $GLOBALS['wgContLang']->getFormattedNsText( NS_TALK ) );
+               $talk = wfMsgHtml( 'talkpagelinktext' );
                // Do a batch existence check           
                $batch = new LinkBatch();
                foreach( $titles as $title ) {
@@ -410,8 +410,7 @@ class WatchlistEditor {
                $link = $skin->makeLinkObj( $title );
                if( $redirect )
                        $link = '<span class="watchlistredir">' . $link . '</span>';
-               $tools[] = $skin->makeLinkObj( $title->getTalkPage(),
-                       htmlspecialchars( $GLOBALS['wgContLang']->getFormattedNsText( NS_TALK ) ) );
+               $tools[] = $skin->makeLinkObj( $title->getTalkPage(), wfMsgHtml( 'talkpagelinktext' ) );
                if( $title->exists() )
                        $tools[] = $skin->makeKnownLinkObj( $title, wfMsgHtml( 'history_short' ), 'action=history' );
                return '<li>'