Topic on Talk:ResourceLoader/Version 2 Design Specification

Jeblad (talkcontribs)

How shall gadget developers be given access to the Mediawiki namespace, and will they only get access to their own gadgets or to all gadgets? Jeblad 22:42, 10 December 2011 (UTC)

Reach Out to the Truth (talkcontribs)

There is a new Gadget namespace, so they're out of MediaWiki namespace and you do not need the editinterface right to edit them.

Jeblad (talkcontribs)

Nice! What about localization?

He7d3r (talkcontribs)

And what about the interface messages used by a gadget? Per ResourceLoader/Version_2_Design_Specification#Messages, they will be on MediaWiki namespace, but will they be editable by users with the new permissions (gadgets-edit, gadgets-definition-create, gadgets-definition-edit and gadgets-definition-delete) or will it be required those users to be sysops?

Krinkle (talkcontribs)

Previously gadgets had no support for localization. For Gadgets 2.0 we're providing all ResourceLoader features for localization.

As for anything related to localization and interface messages, these are restricted to users with the 'editinterface' right. Depending on your wiki configuration this right could be given to groups like "translators" or "interface editors" or "administrators" (default).

Interface messages are intentionally not covered by the "gadgets-edit" right, that's exactly the point of separating these away from interface editors so that gadgets become more accessible.

Due to translations/localization being completely native, fallbacks to other languages and availability in mw.msg comes along for free.

The Gadgets "Export"/"Import" feature also covers messages in the MediaWiki:-namespace, so if a gadget is developed somewhere and imported by an admin, those will be imported as well.

Jeblad (talkcontribs)

This seems a bit strange to me. Gadgets pose a security risk, usually system messages is not a risk unless for those that isn't laundered properly.

I would say that an admin should not have rights as a gadget developer but a gadget developer should have the edit interface rights.

He7d3r (talkcontribs)

Agreed.

The main concern which comes to my mind is that while developing new gadget this system would force us to do a lot of coordination between the gadget creator and the interface editors (sysops et al...) and the gadget interface could be broken until a sysop has the time to do the edits on MediaWiki namespace pages.

Krinkle (talkcontribs)

I was talking about user rights, not user groups. I think you will agree that the "gadgets-edit" user right should have no influence on the MediaWiki-namespace, it's not related to that.

How your wiki configures their user groups is entirely up to you. You can create the user group "Gadget developers" any way you like. Just like "Sysop" is a user group with a bunch of rights assigned to it (check Special:ListGroupRights).

It makes perfect sense for the user group allowed to edit gadget script/styles to also be allowed to edit interface messages, but configuring that is up to the wiki configuration.

Jeblad (talkcontribs)

I'm interessted in how this will be solved at whatever repository WMF choses for Wikipedia.

He7d3r (talkcontribs)