From: Raimond Spekking Date: Thu, 12 Jul 2007 08:43:46 +0000 (+0000) Subject: Use appropriate message for talk page links. X-Git-Tag: 1.31.0-rc.0~52124 X-Git-Url: http://git.cyclocoop.org/%22.%20generer_url_ecrire%28%22sites_tous%22%2C%22%22%29.%20%22?a=commitdiff_plain;h=819bda343ee51fc55efcd1992d2019968ac939ba;p=lhc%2Fweb%2Fwiklou.git Use appropriate message for talk page links. Localization was broken for user language != content language --- diff --git a/includes/WatchlistEditor.php b/includes/WatchlistEditor.php index abd79248a5..2ad32bb028 100644 --- a/includes/WatchlistEditor.php +++ b/includes/WatchlistEditor.php @@ -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 = '' . $link . ''; - $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 '
  • '