Page MenuHomePhabricator

New translation: Direct access to translate a specific section
Closed, ResolvedPublic

Description

As part of the "new translation" entry point (T241590) from the Translation Dashboard, users can start a translation of a section for an article of their choice. This ticket focuses on the case where such selection is done though the url or an external tool.

Users can access directly the translation of a specific section through the URL (directly, through an external tool, bookmarks, etc.). When doing so, a special version of the confirmation step is shown which includes the selected section:

New translation - Direct.png (768×1 px, 297 KB)

We want external tools to be able to provide the detail they can and let the user complete the rest to start the translation. These are some scenarios to support:

  • Article and section are provided: both article and section get pre-selected as shown above.
  • Article selection: The article is provided in the URL but no section. The confirmation step is shown with the article selected and the user will proceed to select the section (as int he standard workflow).
  • Article selection without an exact match. When there is no exact match for the article provided, the destination will be the search step, to provide the opportunity to adjust the query.
  • Language selection. The source language is mandatory. However, it should be possible to keep the target empty and Section Translation will select one (from frequent languages different than source).

Result: Now you can link to the "Formation" section of the Moon article to be translated with this link: https://test.m.wikipedia.org/wiki/Special:ContentTranslation?page=Moon&section=Formation&from=en&to=es&sx=true

More details in the parent task: T241590: Section Translation: "New translation" entry point

Related Objects

StatusSubtypeAssignedTask
OpenNone
OpenNone
OpenNone
OpenNone
Resolvedngkountas
OpenNone
Resolvedngkountas
Resolvedngkountas
ResolvedBUG REPORTngkountas
Resolvedngkountas
Resolvedngkountas
Resolvedsanthosh
Resolvedngkountas
Resolvedsanthosh
OpenNone
Resolvedngkountas
Resolvedngkountas
Resolvedngkountas
Resolvedsanthosh
Resolvedngkountas
ResolvedPginer-WMF
OpenNone
ResolvedBUG REPORTngkountas
Resolvedsanthosh
DeclinedNone
ResolvedPginer-WMF
Resolvedngkountas
OpenNone
OpenNone
Resolvedngkountas
ResolvedBUG REPORTngkountas
Resolvedngkountas
Resolvedngkountas
ResolvedWangombe
OpenNone
Resolvedngkountas
Resolvedngkountas
Resolvedngkountas
ResolvedWangombe
ResolvedBUG REPORTPginer-WMF
In Progressngkountas
OpenNone
OpenNone
Resolvedngkountas

Event Timeline

Pginer-WMF triaged this task as Medium priority.Sep 3 2020, 8:29 AM
Pginer-WMF moved this task from Backlog to Entry points on the SectionTranslation board.

Change 632456 had a related patch set uploaded (by Santhosh; owner: Santhosh):
[mediawiki/extensions/ContentTranslation@master] Section translation: Direct access to section selector

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

Change 632456 merged by jenkins-bot:
[mediawiki/extensions/ContentTranslation@master] Section translation: Direct access to section selector

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

Direct access through URL to a specific article has been implemented, but no support for specific section inside an article yet.

Change 651194 had a related patch set uploaded (by Nik Gkountas; owner: Nik Gkountas):
[mediawiki/extensions/ContentTranslation@master] SX Entry points: Add direct access to prefilled section entry point

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

Change 651194 merged by Santhosh:

[mediawiki/extensions/ContentTranslation@master] SX Entry points: Add direct access to prefilled section entry point

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

Jpita subscribed.

https://sx.wmflabs.org lists some examples of direct access

which ones?
I just see these:

You may modify the URL parameters to try any languages and any existing articles that have missing sections.

* [https://sx.wmflabs.org/index.php/Special:ContentTranslation?page=Moon&from=en&to=es&sx=true Translate "Moon" from English to '''Spanish''']
* [https://sx.wmflabs.org/index.php/Special:ContentTranslation?page=Moon&from=en&to=ca&sx=true Translate "Moon" from English to '''Catalan''']
* [https://sx.wmflabs.org/index.php/Special:ContentTranslation?page=Moon&from=en&to=pt&sx=true Translate "Moon" from English to '''Portuguese''']
* [https://sx.wmflabs.org/index.php/Special:ContentTranslation?page=Salt&from=en&to=fr&sx=true Translate "Salt" from English to '''French''']
* [https://sx.wmflabs.org/index.php/Special:ContentTranslation?page=Salt&from=en&to=sc&sx=true Translate "Salt" from English to '''Sardinian''']

can u add that to the main page please?

I do not have such priviledges. @KartikMistry could you please add this link with a description Translate "Formation" section of "Moon" article from English to Spanish, in the same way the other links are added?