Index: trunk/extensions/Translate/tag/PageTranslationHooks.php |
— | — | @@ -339,6 +339,12 @@ |
340 | 340 | |
341 | 341 | return false; |
342 | 342 | } |
| 343 | + } elseif ( $action === 'move' ) { |
| 344 | + $page = TranslatablePage::newFromTitle( $title ); |
| 345 | + if ( $page->getMarkedTag() ) { |
| 346 | + $result = array( 'tpt-move-impossible' ); |
| 347 | + return false; |
| 348 | + } |
343 | 349 | } |
344 | 350 | |
345 | 351 | return true; |
Index: trunk/extensions/Translate/PageTranslation.i18n.php |
— | — | @@ -73,6 +73,7 @@ |
74 | 74 | This page is a translation of page [[$1]] and the translation can be updated using [$2 the translation tool].', |
75 | 75 | 'tpt-unknown-page' => 'This namespace is reserved for content page translations. |
76 | 76 | 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.', |
77 | 78 | |
78 | 79 | 'tpt-install' => 'Run php maintenance/update.php or web install to enable page translation feature.', |
79 | 80 | |