Page MenuHomePhabricator

Translations of subpages aren't moved when a translatable page is moved
Closed, DuplicatePublic

Description

I've been trying to move https://meta.wikimedia.org/wiki/Grants:APG and its subpages to https://meta.wikimedia.org/wiki/Grants:Annual_Plans (and the corresponding subpages). This should be a trivial move to make. However, trying to wake this move has shown up two major problems with the way that mediawiki and the translate extension moves pages. Namely:

  1. It's not possible to automatically create redirects to the new locations when moving a translatable page

Ideally, when a translatable page and a set of subpages are moved, it should be possible to leave redirects behind. This is normal behaviour when moving a regular page - but it isn't possible for a translatable page. This is a somewhat manageable problem - I ended up writing a Python script based on pywikibot that can create redirects for a list of such pages, the source code of which is at https://meta.wikimedia.org/wiki/User:Mike_Peel/bulkredirect.py . However, this is definitely not ideal - moving translatable pages should have an option to leave behind redirects without requiring programming knowledge.

  1. Translations of subpages aren't moved when a translatable page is moved

This is the main problem. When a translatable page that has translatable subpages is moved, the translations of the subpages should also be moved. That doesn't currently happen. A practical example is that https://meta.wikimedia.org/wiki/Grants:APG/Board_decisions/2012-2013_round_1/ur was not moved when https://meta.wikimedia.org/wiki/Grants:APG/Board_decisions/2012-2013_round_1 was moved to https://meta.wikimedia.org/wiki/Grants:Annual_Plans/Board_decisions/2012-2013_round_1, via the larger move of Grants:APG to Grants:Annual_Plans through the translation extension . I tried to move the translation page afterwards, but this wasn't allowed by the software. It doesn't seem to be possible at all to move a translation page after its main page has been moved.

The second issue necessitated the move of Grants:Annual_Plans back to Grants:APG to try to fix it. My current plan is to move translatable subpages individually to new locations, before trying to move the base page again.

Event Timeline

Mike_Peel raised the priority of this task from to Needs Triage.
Mike_Peel updated the task description. (Show Details)

It's not possible to automatically create redirects to the new locations when moving a translatable page

See T41023: Special:MovePage for translatable pages should provide option to move talk

Translations of subpages aren't moved when a translatable page is moved

This is supposed to happen (and still does work; see Meta-Wiki move logs) but since it's done by the job queue, I guess something went wrong there. Or there was/is a bug in the logic which finds all the subpages. I can't reproduce it locally.

Nikerabbit triaged this task as Medium priority.Apr 20 2016, 1:05 PM

I was able to reproduce the second issue and it has already been reported as T114592: A translatable subpage page should not be messed while moving subpages so I will close this task as it reports two already reported separate issues.