Page MenuHomePhabricator

Translate the initial title automatically
Closed, ResolvedPublicFeature

Description

Currently when a translation is started the translation title is just a copy of the original title.
Since editing the title is not common on a wiki, this may lead to the article being published with an untranslated title causing problems and additional work to fix them.

This ticket proposes to adjust the translation title using the following methods when available (in order of priority):

  • Wikidata label in the target language. For example, the Wikidata item for Lemon has a label for the Ewe (ee) language despite the article not existing in such language. Thus, a translation from English to Ewe should have "mumue" as a title instead of "Lemon".
  • Machine translated version of the title. Machine translation can help to have an initial version of the title in the local language. Even if the title is not always correct, the translation errors can drive the user attention to it and help to encourage editing the title.

When translating sections (on desktop and mobile), the section mapping information can be used to find a relevant title.

Considerations

  • This ticket is intended as an initial step. Follow-up tickets can provide more clarity and control to the users by showing the MT card with he different sources for title translations (including the available MT providers): T324452: Provide machine translation options on desktop for the title of the article/section
  • Titles provided in the parameters should be respected (i.e., use the target title if it was provided). We need to make sure that the tools providing such parameters do so only when they are providing a meaningful title (otherwise t is preferred not to provide it and translation to happen).

Related:

Event Timeline

Pginer-WMF moved this task from Needs Triage to Enhancements on the ContentTranslation board.

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

[mediawiki/services/cxserver@master] Add translate title endpoint

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

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

[mediawiki/extensions/ContentTranslation@master] CX: Translate title to get target title before translation init

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

Change 832335 merged by jenkins-bot:

[mediawiki/services/cxserver@master] Add suggest target title endpoint

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

Nikerabbit changed the subtype of this task from "Task" to "Feature Request".Oct 27 2022, 12:43 PM

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

[operations/deployment-charts@master] Update cxserver to 2022-10-27-102021-production

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

Change 850315 merged by jenkins-bot:

[operations/deployment-charts@master] Update cxserver to 2022-10-27-102021-production

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

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

[operations/deployment-charts@master] Update cxserver to 2022-10-31-083825-production

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

Change 851053 merged by jenkins-bot:

[operations/deployment-charts@master] Update cxserver to 2022-10-31-083825-production

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

Change 832456 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] CX: Use suggested title from cxserver as target title when no URL param

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

Nikerabbit subscribed.

The CX patch is going out this week, since there was no train last week.

Pginer-WMF updated the task description. (Show Details)