Jump to content

Community Wishlist Survey 2021/Translation/Easy and effective way to translate gadgets and userscripts

From Meta, a Wikimedia project coordination wiki

Easy and effective way to translate gadgets and userscripts

  • Problem: Gadgets and Userscripts are an important part of the Wikiverse. There are numerous such scripts that are used by a large number of users. Currently, those scripts are often copy-pasted from one wiki to another, to allow to translate them into the local language of the wikis. By that process lots of duplicates emerge that need to be maintained and improved independently. Further often several different scripts exist for one problem, because the script was not known outside the origin wiki, often again due to the language barrier (as well as the issue of missing findability of scripts – but this problem is currently tackled by a different WMF project).

Some scripts have translations into multiple languages integrated (mostly on Commons/Wikidata), there are issues with that. See below.

  • Who would benefit: All editors and some readers
  • Proposed solution: There should be one simple way to make the user interfaces of an userscript/gadget translatable (known as i18n). The mechanism has to full fill the following requirements:
    1. Easy to use for tool developers. Something like mw.translate("English text") should be enough.
    2. The translations should be saved separated to the script. Probably as a page with content model JSON.
    3. All regular editors should have the rights to translate scripts. Which user group ("autoconfirmed", "editor", …) will be needed is up to debate but the current situation where only the script author and sysops can translate the script must be avoided.
    4. Translating should not require technical know-how. An easy-to-use user interface is required.
  • More comments:
  • Phabricator tickets:
  • Proposer: MichaelSchoenitzer (talk) 16:52, 21 November 2020 (UTC)[reply]