Page MenuHomePhabricator

Show invite to translate another section after publishing in the Sandbox
Closed, ResolvedPublic

Assigned To
Authored By
Pginer-WMF
Feb 17 2021, 11:33 AM

Description

Currently when publishing a translated section in the sandbox, the invite to translate another section (T260137) is not shown.

This ticket proposes to:

  • Show the invite after publishing in the sandbox.
  • Adjust the invite when publishing at the sandbox (and only in such case) to not show the "X and 3 more are missing" indicator. In this way we avoid the issue of suggesting a section that may have been already translated (to the sandbox) but the API still identifies as missing since it has not been added to the target article yet.

The expected result is illustrated below:

mob-published copy.png (667×375 px, 91 KB)

As a reference you can check the original spec for this invite:

Contribute again - Invite.png (768×1 px, 184 KB)
Contribute again - Invite Dimensions.png (768×1 px, 126 KB)

Event Timeline

Pginer-WMF created this task.
Pginer-WMF moved this task from Backlog to Entry points on the SectionTranslation board.

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

[mediawiki/extensions/ContentTranslation@master] SX: Show invite for SX after publishing in the Sandbox

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

Change 747198 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] SX: Show invite for SX after publishing in the Sandbox

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

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

[mediawiki/extensions/ContentTranslation@master] CX3 Build 0.1.0+20220110

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

Change 752530 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] CX3 Build 0.1.0+20220110

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

When publishing on the sandbox the whole action seems to be removed.
The ticket was intended to keep the action and remove only the description below it to avoid showing section names.
The "= Translate another section" action should be shown to let people go back to the translation workflow.

Below I added some screenshots to compare proposed and what I experienced in testing and production wikis:

Expected from specPublished at test WikipediaPublished at Bengali Wikipedia
mob-published copy.png (667×375 px, 91 KB)
test.m.wikipedia.org_w_index.php_title=User_Pginer-WMF_%E0%B8%9B%E0%B8%99%E0%B8%B5%E0%B8%A3&sx-published-section=%E0%B8%99%E0%B8%B4%E0%B8%A3%E0%B8%B8%E0%B8%81%E0%B8%95%E0%B8%B4%E0%B8%A8%E0%B8%B2%E0%B8%AA%E0%B8%95%E0%B8%A3%E0%B9%8C&sx-source.png (1×750 px, 137 KB)
bn.m.wikipedia.org_w_index.php_title=%E0%A6%AC%E0%A7%8D%E0%A6%AF%E0%A6%AC%E0%A6%B9%E0%A6%BE%E0%A6%B0%E0%A6%95%E0%A6%BE%E0%A6%B0%E0%A7%80_Pginer-WMF_%E0%A6%AA%E0%A6%A8%E0%A6%BF%E0%A6%B0&sx-published-section=%E0%A6%AC%E0%A7%8D%E0%A6%AF%E0%A7%.png (1×750 px, 168 KB)

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

[mediawiki/extensions/ContentTranslation@master] SX invitation after publishing: Fix to always appear in sandbox

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

Change 758589 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] SX invitation after publishing: Fix to always appear in sandbox

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

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

[mediawiki/extensions/ContentTranslation@master] CX3 Build 0.1.0+20220207

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

Change 760304 abandoned by Santhosh:

[mediawiki/extensions/ContentTranslation@master] CX3 Build 0.1.0+20220207

Reason:

Nothing specific changes going out

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

The invite is shown as expected:

bn.m.wikipedia.org_w_index.php_title=%E0%A6%AC%E0%A7%8D%E0%A6%AF%E0%A6%AC%E0%A6%B9%E0%A6%BE%E0%A6%B0%E0%A6%95%E0%A6%BE%E0%A6%B0%E0%A7%80_Pginer-WMF_%E0%A6%97%E0%A7%81%E0%A6%B8%E0%A7%8D%E0%A6%A4%E0%A6%BE%E0%A6%AD_%E0%A6%86%E0%A6%87%E0%A6%AB%.png (1×750 px, 128 KB)