Jump to content

User:Kunalgrover05/Updating translation page on moving deleting translation units

From mediawiki.org

Moving translation units[edit]

Using hook for TitleMoveComplete for running the method

Patch: https://gerrit.wikimedia.org/r/#/c/145057/(Merged)

Difficulties faced
The move hook should not be fired multiple times in case a translation page is moved, causes the process to be highly inefficient and expensive
First solution a hack to check if the old message handle is valid, not in case of moving a translation page as the page itself is removed while doing the move
Current solution- Using a static variable to check if job queue is running

Deleting translation units[edit]

Patch: https://gerrit.wikimedia.org/r/#/c/151861/

Further tasks[edit]

Writing unit tests