Why this is needed? Currently, there is no easy way to select articles from outside of CX/SX and start translating them in CX/SX with a single click. The navigation requires multiple steps in the UX, and if an article doesn’t have a source, the editor sees empty results.
This task is about generating SX URLs programmatically for a list of vital articles so that they can be embedded on a wiki page and linked with the onboarding resource for WE 2.1.5.
Technical implementation might look something like this:
- Parse a page with a list of articles needing improvement and fetch all articles. For example, in the case of Telugu wiki, the list is here.
- Check if a Wikidata item exists for each article using the Wikidata API. If it does, this likely means the source article exists and can be used as a selection criterion.
- Programmatically craft ~20 URLs that take an editor straight to the SX tool for the article they can begin translating. The URL should include the article title, source, and target language. Example: https://en.wikipedia.org/w/index.php?title=Special:ContentTranslation&filter-type=automatic&filter-id=previous-edits&from=en&to=te&active-list=suggestions&page=Karimnagar#/sx/section-selector
- Generate wiki text for embedding the URLs in a table format on the wiki page.
This might require writing a Python script that takes a wiki page with a list of articles, checks for Wikidata items for each article, generates SX URLs, and outputs a ready-to-paste wiki table.