Page MenuHomePhabricator

Confirm Section Translation can support the new set of languages
Closed, ResolvedPublic

Description

Section translation is being enabled in a gradual way. With the initial enablement to Bengali, different parts of the UI were adjusted to support only that language. As we plan to enable three more languages (T290175: Igbo, Hausa and Yoruba), we want to check that the system will support those properly and coordinate any code changes (if needed) with the deployment of configuration changes.

Aspects to verify include:

  • Target language selector. In Section Translation users should be able to select as the target language any of the languages where the tool is available, and none of the languages where the tool is not. More context in T273274
  • Language selector entry point. When searching with the mobile language selector for any of the languages where Section Translation is available, an option should be available for translation. More context in T286645

The outcome for this ticket will be to find an answer to the following questions:

  1. Is updating the target language variable the only change needed for the new languages to be supported in the above scenarios or additional changes are needed?
  2. Can the deployment of such changes occur at the same time as the enablement of the new wikis? If not, how to better coordinate it with our deployment process?
  3. Are there other changes we need to consider not covered by the above scenarios when expanding languages?
  4. How much of this we'll have to repeat for every new wiki we add support for?

Considerations for the deployment

  • Remove old configuration variable ContentTranslationMFLanguageSearchEntrypointTargetLanguages (719964)
  • Rename SectionTranslationTargetLanguage to SectionTranslationTargetLanguages which supports array. (719557)
  • Add support for SectionTranslationTargetLanguages in Production configuration. (720982)
  • Remove SectionTranslationTargetLanguage from Production config. (724992)

Event Timeline

As a first step, I'll enable these set of languages in Labs and update here.

As a first step, I'll enable these set of languages in Labs and update here.

Great. I also added a comment from Santhosh in a related ticket. Can you help make the "Considerations for the deployment" section in the description a list of actions that are needed for the deployment? Having a more specific check list could be helpful. Thanks!

Current config for SectionTranslationTargetLanguage looks like this in Production:

'wgSectionTranslationTargetLanguage' => [
    'default' => null,
    'bnwiki' => 'bn',
],

So, we need:

  1. SectionTranslationTargetLanguage to support multiple targets.
  2. And, probably deprecate ContentTranslationMFLanguageSearchEntrypointTargetLanguages? It is not set in mediawiki-config and taking values from extension.json right now.

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

[mediawiki/extensions/ContentTranslation@master] SX: Update SectionTranslationTargetLanguage parameter to accept array

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

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

[mediawiki/extensions/ContentTranslation@master] SX SectionTranslationTargetLanguages proper configuration

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

@ngkountas Now that we renamed SectionTranslationTargetLanguage to SectionTranslationTargetLanguages,
I am in favor or merging SectionTranslationTargetLanguages and ContentTranslationMFLanguageSearchEntrypointTargetLanguages into single configuration value SectionTranslationTargetLanguages

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

[mediawiki/extensions/ContentTranslation@master] SX Remove LanguageSearchEntrypointTargetLanguages config parameter

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

Change 719558 abandoned by Nik Gkountas:

[mediawiki/extensions/ContentTranslation@master] SX SectionTranslationTargetLanguages proper configuration

Reason:

This patch was just an example

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

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

[operations/mediawiki-config@master] WIP: Add support for SectionTranslationTargetLanguages

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

KartikMistry changed the task status from Open to In Progress.Sep 17 2021, 8:28 AM
KartikMistry updated the task description. (Show Details)
KartikMistry updated the task description. (Show Details)

Change 719557 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] SX: Update SectionTranslationTargetLanguage parameter to accept array

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

Change 719964 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] SX Remove LanguageSearchEntrypointTargetLanguages config parameter

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

Change 720982 merged by jenkins-bot:

[operations/mediawiki-config@master] Add support for SectionTranslationTargetLanguages

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

Mentioned in SAL (#wikimedia-operations) [2021-09-28T11:29:19Z] <lucaswerkmeister-wmde@deploy1002> Synchronized wmf-config/InitialiseSettings.php: Config: [[gerrit:720982|Add support for SectionTranslationTargetLanguages (T290302, T290175)]] (duration: 00m 57s)

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

[operations/mediawiki-config@master] Remove deprecated SectionTranslationTargetLanguage

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

Change 724992 merged by jenkins-bot:

[operations/mediawiki-config@master] Remove deprecated SectionTranslationTargetLanguage config

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

Mentioned in SAL (#wikimedia-operations) [2021-10-04T11:31:21Z] <lucaswerkmeister-wmde@deploy1002> Synchronized wmf-config/InitialiseSettings.php: Config: [[gerrit:724992|Remove deprecated SectionTranslationTargetLanguage config (T290302)]] (duration: 00m 58s)