Index: trunk/extensions/Translate/TranslateEditAddons.php |
— | — | @@ -168,8 +168,10 @@ |
169 | 169 | global $wgLang; |
170 | 170 | |
171 | 171 | $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' ); |
174 | 176 | } |
175 | 177 | return TranslateUtils::fieldset( $title, Xml::tags( 'code', null, $msg ), $attributes ); |
176 | 178 | } |