Page MenuHomePhabricator

Adjust visibility for the option to translate in the Persistent Contribution entry point
Closed, ResolvedPublic

Description

The persistent entry point for contributions (T286466) is intended to list the different ways in which editors can contribute, and it will include the option to translate based on Content/Section Translation (which is available in different ways across wikis and devices).

This ticket proposes to adjust how the access to the translate option is provided in different contexts:

  • On mobile, provide the option to translate only for languages where the mobile experience is enabled (Section Translation wikis)
  • On desktop and mobile, accessing the option to translate should automatically enable the Content Translation beta feature for the user. In this way, users can access the tool on those wikis where Content Translation may still be provided as a beta feature.

Event Timeline

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

[mediawiki/extensions/ContentTranslation@master] Special:Contribute entrypoint: auto betafeature and hide in non-SX wikis

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

Change 839383 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] Special:Contribute entrypoint: auto betafeature and hide in non-SX wikis

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

Change 843003 had a related patch set uploaded (by KartikMistry; author: KartikMistry):

[operations/mediawiki-config@master] Enable specialcontribute campaign

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

Change 843003 merged by jenkins-bot:

[operations/mediawiki-config@master] Enable specialcontribute campaign

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

Mentioned in SAL (#wikimedia-operations) [2022-10-19T07:03:07Z] <kartik@deploy1002> Started scap: Backport for [[gerrit:843003|Enable specialcontribute campaign (T319306)]]

Mentioned in SAL (#wikimedia-operations) [2022-10-19T07:03:35Z] <kartik@deploy1002> kartik and kartik: Backport for [[gerrit:843003|Enable specialcontribute campaign (T319306)]] synced to the testservers: mwdebug2001.codfw.wmnet, mwdebug1002.eqiad.wmnet, mwdebug1001.eqiad.wmnet, mwdebug2002.codfw.wmnet

Mentioned in SAL (#wikimedia-operations) [2022-10-19T07:09:19Z] <kartik@deploy1002> Finished scap: Backport for [[gerrit:843003|Enable specialcontribute campaign (T319306)]] (duration: 06m 11s)

Test plan:

  • Visit: bn.m.wikipedia.org/wiki/Special:Contribute - a wiki where SX enabled in mobile mode. Observe Translate option is present
  • Visit: en.m.wikipedia.org/wiki/Special:Contribute - a wiki where SX is not enabled in mobile mode. Observe Translate option is not present
  • Visit: en.wikipedia.org/wiki/Special:Contribute - a wiki where CX is enabled in desktop mode. Observe Translate option is present
  • Visit: bn.wikipedia.org/wiki/Special:Contribute - a wiki where CX is enabled in desktop mode. Observe Translate option is present
  • Visit https://en.wikipedia.org/wiki/Special:Preferences#mw-prefsection-betafeatures, disable Content Translation Beta Feature. Then go to Visit: en.wikipedia.org/wiki/Special:Contribute, Click translate option. It should take the user to CX dashboard. Now open https://en.wikipedia.org/wiki/Special:Preferences#mw-prefsection-betafeatures again and observe Content Translation beta feature is activated.

@santhosh thanks for the Steps. These worked as expected

  • Visit: bn.m.wikipedia.org/wiki/Special:Contribute - a wiki where SX enabled in mobile mode. Observe Translate option is present. PASS
  • Visit: en.m.wikipedia.org/wiki/Special:Contribute - a wiki where SX is not enabled in mobile mode. Observe Translate option is not present. PASS
  • Visit: en.wikipedia.org/wiki/Special:Contribute - a wiki where CX is enabled in desktop mode. Observe Translate option is present. PASS
  • Visit: bn.wikipedia.org/wiki/Special:Contribute - a wiki where CX is enabled in desktop mode. Observe Translate option is present. PASS
  • Visit https://en.wikipedia.org/wiki/Special:Preferences#mw-prefsection-betafeatures, disable Content Translation Beta Feature. Then go to Visit: en.wikipedia.org/wiki/Special:Contribute, Click translate option. It should take the user to CX dashboard. Now open https://en.wikipedia.org/wiki/Special:Preferences#mw-prefsection-betafeatures again and observe Content Translation beta feature is activated. PASS