Translate extension language bar not reliably showing how complete a translation is
Open, HighPublic

Description

The Translate extension can show roughly how complete a translation is in the language bar in five steps. Over the last few days, this has not worked on Meta: plenty of fully translated languages show up as barely started.

Examples:
https://meta.wikimedia.org/wiki/Community_Wishlist_Survey_2019/Banner
https://meta.wikimedia.org/wiki/Tech/News/2018/45

Johan created this task.Nov 1 2018, 4:53 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptNov 1 2018, 4:54 PM
Johan added a comment.Nov 1 2018, 4:54 PM

I have tried in different browsers to make sure it's not a local caching issue.

Johan updated the task description. (Show Details)Nov 1 2018, 4:56 PM

I first noticed it roughly 22 hours ago.

Change 470618 had a related patch set uploaded (by Nikerabbit; owner: Nikerabbit):
[mediawiki/extensions/Translate@master] Fix message group stats not updating

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

Nikerabbit triaged this task as High priority.
Nikerabbit added a subscriber: Nikerabbit.

Adding to sprint since I already have a patch.

Change 470618 merged by jenkins-bot:
[mediawiki/extensions/Translate@master] Fix message group stats not updating

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

Nikerabbit removed a project: Patch-For-Review.
Nikerabbit moved this task from Backlog to Statistics on the MediaWiki-extensions-Translate board.

@Nikerabbit - I checked in wmf.4 - the translate extension language bar is perfectly working on https://meta.wikimedia.org/wiki/Community_Wishlist_Survey_2019/Banner:

But https://meta.wikimedia.org/wiki/Tech/News/2018/45 still incorrectly displays the completeness of the translation:

I have purged https://meta.wikimedia.org/w/index.php?title=Special:MessageGroupStats&language=fi&group=page-Tech%2FNews%2F2018%2F45 and they are now up to date.

Unfortunately, a trigger is needed to rebuild statistics (such as someone making a translation). I'll consider running a maintenance script to rebuild statistics.

Mentioned in SAL (#wikimedia-operations) [2018-11-19T09:10:14Z] <Nikerabbit> Rebuilt message group stats cache for T208521

Nikerabbit added a comment.EditedMon, Nov 19, 9:12 AM

Most pages are now up to date. There are some that are stuck with old values in parser cache, but those will repair themselves over time in the next few weeks as cached entries get expired or manually purged.

Thanks, @Nikerabbit - I guess I'll be checking it periodically to see whether the fix would work.

Re-checked - the different lang pages show a different progress, e.g.

https://meta.wikimedia.org/wiki/Tech/News/2018/45 will show full green progress for dansk and polski

https://meta.wikimedia.org/wiki/Tech/News/2018/45/zh will not show the progress for dansk and polski

It looks fine to me, so I believe it is parser cache related. https://meta.wikimedia.org/w/index.php?title=Special:MessageGroupStats&language=fi&group=page-Tech%2FNews%2F2018%2F45 looks correct, and it does not involve parser cache.