Page MenuHomePhabricator

Consider translated optional messages towards meeting the export threshold
Closed, ResolvedPublic

Description

Request: add 1 to the total messages and translated messages when an optional message is translated.

At least since 2011 (perhaps always), optional messages are not considered in statistics for how much a group is translated. This is good to avoid "falsely" reporting a group as partially untranslated when all non-optional messages are translated; but it's bad when a group is reported as fully untranslated and below the export threshold.

Case at hand: https://gerrit.wikimedia.org/r/#/c/339601/3 / eb8b6d3099e79c47397d1258770d7cc03611f762 . https://translatewiki.net/wiki/Special:LanguageStats/ang shows "pywikibot redirect" 0 % translated, i.e. 0/5, when it's actually 1/6 translated, but the one translated message is optional. https://translatewiki.net/w/i.php?title=Special:Translate&group=out-pywikipedia-redirect&language=ang&filter=&action=translate&optional=1

I believe there might have been another report about outdated/fuzzied optional messages.


See also: T41068: Fuzzied optional messages should be considered untranslated

Outcome

Message groups with only optional messages do now get exported if other conditions are met.

Event Timeline

Nemo_bis renamed this task from Consider translated optional messages to Consider translated optional messages towards meeting the export threshold.Feb 27 2017, 10:29 AM
Nemo_bis triaged this task as Low priority.
Nikerabbit raised the priority of this task from Low to High.Feb 4 2021, 9:09 AM
Nikerabbit added a subscriber: Nikerabbit.

Marking this as high priority now because with the export behavior changes, this causes deletion of files that should not be deleted.

Change 661711 had a related patch set uploaded (by Nikerabbit; owner: Nikerabbit):
[mediawiki/extensions/Translate@master] Count optional messages towards translated

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

Change 661741 had a related patch set uploaded (by Nikerabbit; owner: Nikerabbit):
[mediawiki/extensions/Translate@master] Count optional messages with translations

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

Change 661711 abandoned by Nikerabbit:
[mediawiki/extensions/Translate@master] Count optional messages towards translated

Reason:
In favor of a simpler patch

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

Change 661741 merged by jenkins-bot:
[mediawiki/extensions/Translate@master] MessageGroupStats: Count optional messages with translations

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

Nikerabbit updated the task description. (Show Details)