Page MenuHomePhabricator

Reverting changes to the source text should unfuzzy units the original changes fuzzied
Closed, ResolvedPublic2 Estimated Story PointsFeature

Description

Feature summary (what you would like to be able to do and where):
If a change to a translation pages that marks translations as outdated is reverted then the translations should be unmarked outdated. This could be done by comparing the content of the tp:transver revision to the current revision, and unmarking as fuzzy if they are the same (assuming the message isn't manually FUZZY and doesn't fail validation)

Use case(s) (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution):

MediaWiki.org has had a problem lately with translation admins failing in their task of minimizing unnecessary invalidations (https://www.mediawiki.org/wiki/Topic:Y4i1jx116mxpu7kh), and then sometimes being reverted (for example https://www.mediawiki.org/w/index.php?title=Project:About&action=history). It would be nice if were possible to clean up after them without having to spend hundreds to thousands undoing something clicks on something that took one click to do.

Benefits (why should this be implemented?):

So I don't have to do things like https://www.mediawiki.org/w/index.php?title=Special:Contributions/Pppery_(alt)&target=Pppery+%28alt%29&offset=20240608223217&limit=500

Conceptually the opposite of T367934 (handling fuzzy status correctly when the translation unit is reverted).

Event Timeline

(Yes, this is kind of a rant disquised as a feature request. But I think it's a decent idea on its own merits)

Change #1047540 had a related patch set uploaded (by Pppery; author: Pppery):

[mediawiki/extensions/Translate@master] Unfuzzy translations when the change that made them fuzzy is reverted

https://gerrit.wikimedia.org/r/1047540

Ideally we would have a UI to retroactively declare that the change from tp:transver N to tp:transver M should not have unfuzzied (or perhaps even should have unfuzzied - accidentally ticking "do not invalidate translations" is a much less common problem than forgetting to tick it hopefully) translations. But there's a workaround (revert the change to the source text, mark it, self-revert, mark it again with the correct unfuzzy settings), and that's a much bigger project than I have the motivation to do, so the above patch satisfies me.

Change #1047540 merged by jenkins-bot:

[mediawiki/extensions/Translate@master] Unfuzzy translations when the change that made them fuzzy is reverted

https://gerrit.wikimedia.org/r/1047540