r49773 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r49772‎ | r49773 | r49774 >
Date:11:56, 23 April 2009
Author:siebrand
Status:deferred
Tags:
Comment:
Follow up on r49772. Committed wrong version.
Modified paths:
  • /trunk/extensions/Translate/TranslateEditAddons.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/TranslateEditAddons.php
@@ -168,8 +168,10 @@
169169 global $wgLang;
170170
171171 $skin = $wgUser->getSkin();
172 - $linkTitle = 'Special:' . SpecialPage::getLocalNameFor( 'Translate' );
173 - $title = $skin->makeKnownLinkObj( $linkTitle, $title, 'group=' . $group->getId() . '&language=' . $wgLang );
 172+ $userLang = $wgLang->getCode();
 173+ $groupId = $group->getId();
 174+ $linkTitle = SpecialPage::getTitleFor( 'Translate' );
 175+ $title = $skin->makeKnownLinkObj( $linkTitle, $title, 'group=$groupId&language=$userLang' );
174176 }
175177 return TranslateUtils::fieldset( $title, Xml::tags( 'code', null, $msg ), $attributes );
176178 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r49772* Add a link to Special:Translate for the message group...siebrand11:45, 23 April 2009

Status & tagging log