Page MenuHomePhabricator

Deleted translations should not be (automatically) re-imported by default
Open, Needs TriagePublic

Description

We again had an issue of bad translations in translatewiki.net that had to be cleaned up. Cleaning them up in the wiki is pretty easy, for example with the Nuke extensions. However, if a new export is not made immediately for the affected message groups, those translations may be re-imported to the wiki from the source. This is especially likely with the cronned autoimport using --safe-import, but can also be annoying without --safe-import as one would have to change the import to no-import from the default value.

I propose the following changes to make this easier:

  • When processMessageChanges.php sees new messages, it should check for (recent?) deletion log entries. If such log entry is found, the group is not deemed safe for --safe-import.
  • When displaying the changes, if log entry is found, the default setting should be no-import, with some indicator that it has been recently deleted in the wiki.