Page MenuHomePhabricator

Show tpt-duplicate error message only once for a translation unit
Closed, ResolvedPublic

Description

When marking a page for translation, if a translation unit is repeated twice, the error message also appears twice. This can be avoided.

See screenshot below,

image.png (480×965 px, 25 KB)

Event Timeline

abi_ triaged this task as Low priority.Oct 22 2019, 12:44 PM
abi_ moved this task from Backlog to tux on the MediaWiki-extensions-Translate board.
Pppery subscribed.

This feels like it was almost too easy for a GCI task, given how little time it took me to code.

This feels like it was almost too easy for a GCI task, given how little time it took me to code.

Many people have different skill levels. So there will be tasks that are easy for some, and harder for others

Change 554665 had a related patch set uploaded (by Pppery; owner: Pppery):
[mediawiki/extensions/Translate@master] Prevent duplicate translation unit error from showing twice

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

The actual behavior I noticed and wrote a patch to fix was that the error message shows up twice if you use the same translation unit name three times in one page. It is possible that there is some other cause for this duplicate error message that I was unable to reproduce and this patch may not fix.

Change 554665 merged by jenkins-bot:
[mediawiki/extensions/Translate@master] Prevent duplicate translation unit error from showing twice

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