Page MenuHomePhabricator

Create a "translate/create this" button that can be used for Translation campaigns.
Open, NormalPublic

Description

In oder to promote the translation/Creation of particular Wikipedia articles in particular languages for a Translation Campaign, it will be necessary to have a direct link to the CX dashboard that can be placed on a wiki-page. Visually this can take the form of a button that says "translate this article" (or similar).

However, because the source language is unknown (there might be several viable source languages) the link must route via Wikidata (see T112769 ) and give the user the option of choosing from one of the available languages. The target language might be pre-set in the link, or assumed based on the language settings of the user, or potentially also open to choice.

Furthermore, if subsequent to the "button" being placed on the wiki page the article in question now exists, the button should either replace itself with just a straight link to the article, or change to saying "article already exists" (or similar).

Event Timeline

Wittylama raised the priority of this task from to Normal.
Wittylama updated the task description. (Show Details)
Wittylama added subscribers: Magnus, Pginer-WMF, Amire80 and 3 others.
Amire80 moved this task from Needs Triage to CX7 on the ContentTranslation board.Sep 18 2015, 12:52 PM
Wittylama set Security to None.
Amire80 moved this task from CX8 candidates to CX7 on the ContentTranslation board.
Amire80 moved this task from CX7 to CX8 on the ContentTranslation board.Jan 24 2016, 10:33 PM
TheDJ added a subscriber: TheDJ.Apr 15 2016, 12:24 PM

Translate this button for wikidata IDs:
https://www.wikidata.org/w/index.php?title=Wikidata:Europeana_Art_History_Challenge/Content_Translation&withJS=MediaWiki:EuropeanaContentTranslation.js&itemid=Q17015401&destlang=ca

Features:

  • Reads out destination language and wikidata ID from URL
  • validates these parameters
  • Adds link back to the wikidata ID from the UI
  • Mentions the target language in the UI
  • Allows you to start a translation
    • Fetches all sitelinks of the wikidata item
    • Crossreferences this with the sitematrix to filter on only wikipedia sitelinks of active wikis
    • Checks if there is a wikipedia sitelink in a language other than the destination
    • Presents these in a dropdown to the user as "language: page title"
    • Allows the user to pick one and start a translation
    • A translation action passes a campaign param to CX, the original title, source and destination titles
  • If there are no sitelinks, or if the user does not want to use CX, he can start an article from scratch
    • Check if there is a pre-existing label for the destination language in wikidata and suggest this as the new page title in the dest. language
    • A create new article action passes an edit summary, the destination title, redlink=1 etc.
Amire80 moved this task from CX8 to Bugs on the ContentTranslation board.Apr 20 2016, 1:12 PM
Arrbee moved this task from Bugs to Enhancements on the ContentTranslation board.Jun 22 2018, 1:41 PM
Arrbee moved this task from Bugs to Enhancements on the ContentTranslation board.
Arrbee moved this task from Bugs to Enhancements on the ContentTranslation board.
Arrbee moved this task from Bugs to Enhancements on the ContentTranslation board.