User:Egor/How to move a page


 * Use regular MediaWiki/Translate move page functionality to move the main page (e.g. ) and the translation pages . [1][2].
 * For whatever reason, translation unit pages will not be moved, meaning that you have to do this manually using maintenance scripts.
 * Get a list of translation units, formatted like.
 * 1198 is, aka.
 * Careful with that REPLACE function, it could replace stuff inside translation unit names.
 * Consider also doing the same with  (1199). Though, as of April 2021 there are only 3 pages in that namespace.
 * Move translation units using moveBatch.
 * Go to.
 * This process may take a long time. Or not.
 * Moving 840 pages takes 7 hours 18 minutes.
 * Moving 2747 pages takes 17 minutes.
 * Sometimes MediaWiki just randomly decides to spend an entire minute moving a single page. I wish I was kidding. 703145668977623090.png
 * This actually might be happening because of email notifications.
 * For this reason you should probably announce it on MediaWiki:Sitenotice.
 * Consider marking the edits as bot edits to avoid flooding Special:RecentChanges.
 * Mark the page for translation.
 * After the move you're probably going to have wrong statistics or incomplete language list. No clue what causes that, but marking the page fixes it.
 * This looks like a cache problem, but using purge (which Translate specifically checks for) doesn't help.
 * A move is not considered an edit by the translation extension (even though it directly affects the  unit), so you must create a dummy edit first.
 * Fix links to the page.
 * If you're in the main namespace, you're probably looking for Patch:Translatable content.
 * Otherwise, try Special:WhatLinksHere or make a redirect.
 * Fix links to the page.
 * If you're in the main namespace, you're probably looking for Patch:Translatable content.
 * Otherwise, try Special:WhatLinksHere or make a redirect.