Page MenuHomePhabricator

Store the progress of a saved section translation
Closed, ResolvedPublic

Description

In order to be able to communicate progress to the user (T328542), we need to store how much of the original contents have been translated. This is already supported for article translations on desktop. However, this is not the case for:

  • Section translation on mobile
  • New article (lead section translation) on mobile
  • Section translation on desktop (to be verified)

This ticket proposes to store the progress of the translation with respect to the original content for the section.

Event Timeline

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

[mediawiki/extensions/ContentTranslation@master] SX pageSection model: Add method to calculate translation progress

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

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

[mediawiki/extensions/ContentTranslation@master] SX progress: Store progress to database during autosave

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

Change 903634 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] SX pageSection model: Add method to calculate translation progress

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

Change 903635 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] SX progress: Store progress to database during autosave

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

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

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

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

Change 919809 merged by jenkins-bot:

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

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

Test status: QA PASS

Able to display progress of translation in SX at different stages

  • Section translation on mobile
  • New article (lead section translation) on mobile
  • Section translation on desktop (to be verified)

The scenarios listed in the ticket show the translation progress. There is one related issues with section translations started on desktop, where the translation is displayed as a new article on mobile instead of a section translation. Thus, the percentages displayed are with respect to the full article. This is captured on a separate ticket: T345329: Section translations started on desktop are listed as article translations on mobile