r68970 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r68969‎ | r68970 | r68971 >
Date:20:23, 3 July 2010
Author:siebrand
Status:deferred
Tags:
Comment:
Refer to localised page in group description for translatable pages.
Modified paths:
  • /trunk/extensions/Translate/MessageGroups.php (modified) (history)
  • /trunk/extensions/Translate/Translate.i18n.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/MessageGroups.php
@@ -836,7 +836,8 @@
837837 $id = "page|$title";
838838 $wgTranslateCC[$id] = new WikiPageMessageGroup( $id, $title );
839839 $wgTranslateCC[$id]->setLabel( $title );
840 - $wgTranslateCC[$id]->setDescription( wfMsgNoTrans( 'translate-tag-page-desc', $title ) );
 840+ $target = SpecialPage::getTitleFor( 'MyLanguage', $title )->getPrefixedText();
 841+ $wgTranslateCC[$id]->setDescription( wfMsgNoTrans( 'translate-tag-page-desc', $title, $target ) );
841842 }
842843 }
843844
Index: trunk/extensions/Translate/Translate.i18n.php
@@ -183,7 +183,7 @@
184184 'translate-statsf-submit' => 'Preview',
185185
186186 'translate-tag-category' => 'Translatable pages',
187 - 'translate-tag-page-desc' => 'Translation of the wiki page [[:$1]].',
 187+ 'translate-tag-page-desc' => 'Translation of the wiki page [[$2|$1]].',
188188
189189 'translate-tag-fuzzy-comment' => 'Definition changed by [[User:$1|$1]] in revision $2.',
190190 'translate-tag-fuzzy-reason' => 'Definition changed by "$1" with comment "$3" in $2.',

Status & tagging log