r67852 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r67851‎ | r67852 | r67853 >
Date:12:55, 11 June 2010
Author:nikerabbit
Status:ok
Tags:
Comment:
Disallow moving for now
Modified paths:
  • /trunk/extensions/Translate/PageTranslation.i18n.php (modified) (history)
  • /trunk/extensions/Translate/tag/PageTranslationHooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/tag/PageTranslationHooks.php
@@ -339,6 +339,12 @@
340340
341341 return false;
342342 }
 343+ } elseif ( $action === 'move' ) {
 344+ $page = TranslatablePage::newFromTitle( $title );
 345+ if ( $page->getMarkedTag() ) {
 346+ $result = array( 'tpt-move-impossible' );
 347+ return false;
 348+ }
343349 }
344350
345351 return true;
Index: trunk/extensions/Translate/PageTranslation.i18n.php
@@ -73,6 +73,7 @@
7474 This page is a translation of page [[$1]] and the translation can be updated using [$2 the translation tool].',
7575 'tpt-unknown-page' => 'This namespace is reserved for content page translations.
7676 The page you are trying to edit does not seem to correspond any page marked for translation.',
 77+ 'tpt-move-impossible' => 'Moving pages marked for translation is not yet possible.',
7778
7879 'tpt-install' => 'Run php maintenance/update.php or web install to enable page translation feature.',
7980

Status & tagging log