MediaWiki talk:Gadget-Infobox.js

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search


Edit Request - 3 January 2021[edit]

{{Editprotected}}

@Zhuyifei1999 and Mike Peel:

Maybe instead hardcoded English label "Show all" will ber better to use {{int:Pagetriage-filter-all}} - see all translations and example in your interface language: Show all. --Kaganer (talk) 23:55, 3 January 2021 (UTC)[reply]

Is this gadget related to PageTriage, or is that just a random message that has the same text in English? --Lucas Werkmeister (talk) 19:01, 4 January 2021 (UTC)[reply]
@Kaganer: forgot to ping you earlier, sorry. But even if the message is related, accessing it from JavaScript isn’t trivial. I think it’s probably better to include the translations directly into the Gadget, like I’ve seen it done in some other gadgets (e.g. MediaWiki:Gadget-fastcci.js) --Lucas Werkmeister (talk) 22:09, 17 February 2021 (UTC)[reply]
@Lucas Werkmeister: Sure. Current translations may be imported from the Translatewiki. That just a random message that has the same text in English ;-) --Kaganer (talk) 18:38, 18 February 2021 (UTC)[reply]
The translations for Pagetriage-filter-all seem to be exactly what we need. We can copy-paste them into this gadget or load the message in. A gadget that uses the latter approach is GalleryFilterExtension.js. --LennardHofmann (talk) 12:08, 20 July 2022 (UTC)[reply]