r107817 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r107816‎ | r107817 | r107818 >
Date:11:47, 2 January 2012
Author:nikerabbit
Status:ok
Tags:
Comment:
Repurpose the existing recent changes link in Special:LanguageStats to point to the new message group
I18n #349
Modified paths:
  • /trunk/extensions/Translate/specials/SpecialLanguageStats.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/specials/SpecialLanguageStats.php
@@ -210,17 +210,17 @@
211211 * Output something helpful to guide the confused user.
212212 */
213213 protected function outputIntroduction() {
214 - global $wgOut, $wgLang;
 214+ global $wgOut, $wgLang, $wgUser;
215215
216216 $linker = class_exists( 'DummyLinker' ) ? new DummyLinker : new Linker;
217217 $languageName = TranslateUtils::getLanguageName( $this->target, false, $wgLang->getCode() );
218218 $rcInLangLink = $linker->link(
219 - SpecialPage::getTitleFor( 'Recentchanges' ),
 219+ SpecialPage::getTitleFor( 'Translate', '!recent' ),
220220 wfMsgHtml( 'languagestats-recenttranslations' ),
221221 array(),
222222 array(
223 - 'translations' => 'only',
224 - 'trailer' => "/" . $this->target
 223+ 'task' => $wgUser->isAllowed( 'translate-messagereview' ) ? 'acceptqueue' : 'reviewall',
 224+ 'language' => $this->target
225225 )
226226 );
227227

Status & tagging log