As far as I know we have these options: 1. Provide the text in the content language of the wiki instead of in the user language (so a French user will get English interface on English Wikipedia), but save a few bytes by sending a single translation to the user. 2. Provide the text in the user language, but use more bytes to keep all translations in the same JS 3. Provide the text in the user language, but make an extra HTTP request to get it I opted for 2, which is the approach used on Wikidata gadgets. See e.g.: https://www.wikidata.org/wiki/MediaWiki:Gadget-autoEdit.js
The ideal solution would be what will be provided by https://www.mediawiki.org/wiki/Gadgets_2.0 but this is not available yet.
Helder
On Sun, Jul 27, 2014 at 10:21 PM, Minh Nguyen mxn@1ec5.org wrote:
On 2014-07-26 08:11, Helder . wrote:
Hi!
As suggested at
https://www.mediawiki.org/wiki/ResourceLoader/Migration_guide_%28users%29#Ke... we should keep a single central gadget, and import it from other wikis, instead of making many copies. The central gadget could be the one I added to https://en.wikipedia.org/wiki/MediaWiki:Gadget-featured-articles-links.js Please give your feedback on
https://en.wikipedia.org/wiki/MediaWiki_talk:Common.js#Global_gadget_for_Lin...
This gadget would eventually get quite bloated with translations if all the wikis make use of it. I like how OldWikisource's centralized gadgets require wikis to translate messages locally, helping to keep the size down. Translations for a limited number of languages can be centralized to help interwiki users.
-- Minh Nguyen mxn@1ec5.org Jabber: mxn@1ec5.org; Blog: http://notes.1ec5.org/
Wikitech-ambassadors mailing list Wikitech-ambassadors@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-ambassadors