Page MenuHomePhabricator

Show how long since translation started in the in-progress list
Closed, ResolvedPublic

Description

After the initial implementation of in-progress lists (T260165) for the mobile experience, there is no reference for how old an in-progress translation is. This is relevant to encourage users to complete their translations and publish them before they become outdated.

This ticket proposes to add the time reference for the items in the in-progress list. The value show will be

  • "Today" less than a day has passed.
  • "1 day" or "X days" when one or more days have passed.

More details on the "time" element from the spec image below:

Dashboard lists - In progress.png (768×1 px, 202 KB)

Event Timeline

Change 930561 had a related patch set uploaded (by Nik Gkountas; author: Nik Gkountas):

[mediawiki/extensions/ContentTranslation@master] SX: Add days passed since translation start inside translation works

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

@Pginer-WMF Instead of "3 days", it would make more sense to me if it is "3 days ago".

Also, instead of "135 days", "4 months ago" would make more sense to me.

@Pginer-WMF Instead of "3 days", it would make more sense to me if it is "3 days ago".

Also, instead of "135 days", "4 months ago" would make more sense to me.

Conceptually, I think it is valid to do either communicate the time it has been in translation (4 days) or communicate when the translation started (4 days ago). The later makes the message more explicit, and I totally agree that using months for periods over 30 days makes sense.

I was considering initially a very simple approach (a day counter) to get started, since (a) there may be limited space (and the "ago" part may be much longer in other languages), and (b) previous approaches were based on Moment.js which seems to be deprecated.

Having said that, if there is a reusable approach to make the time reference more human with no effort we can start from there and iterate if needed. However, if this requires some more effort, I'd recommend starting simple and iterate later.

Change 930561 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] SX: Add days passed since translation start inside translation works

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

Change 932684 had a related patch set uploaded (by Santhosh; author: Santhosh):

[mediawiki/extensions/ContentTranslation@master] CX3 Build 0.2.0+20230626

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

Change 932684 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] CX3 Build 0.2.0+20230626

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

The label is visible with "Today" or the number of days:

bn.m.wikipedia.org_w_index.php_title=Special_ContentTranslation&from=en&to=bn(iPhone SE) (1).png (667×375 px, 115 KB)