Merge "Set up "Gadget" and "Gadget definition" namespaces"

This commit is contained in:
jenkins-bot 2015-08-09 02:48:00 +00:00 committed by Gerrit Code Review
commit e8be573463
4 changed files with 58 additions and 3 deletions

17
Gadgets.namespaces.php Normal file
View file

@ -0,0 +1,17 @@
<?php
$namespaceNames = array();
// For wikis without Gadgets installed.
if ( !defined( 'NS_GADGET' ) ) {
define( 'NS_GADGET', 2300 );
define( 'NS_GADGET_TALK', 2301 );
define( 'NS_GADGET_DEFINITION', 2302 );
define( 'NS_GADGET_DEFINITION_TALK', 2303 );
}
$namespaceNames['en'] = array(
NS_GADGET => 'Gadget',
NS_GADGET_TALK => 'Gadget_talk',
NS_GADGET_DEFINITION => 'Gadget_definition',
NS_GADGET_DEFINITION_TALK => 'Gadget_definition_talk',
);

View file

@ -8,6 +8,35 @@
"descriptionmsg": "gadgets-desc",
"license-name": "GPL-2.0+",
"type": "other",
"namespaces": [
{
"id": 2300,
"constant": "NS_GADGET",
"name": "Gadget",
"protection": "gadgets-edit"
},
{
"id": 2301,
"constant": "NS_GADGET_TALK",
"name": "Gadget_talk"
},
{
"id": 2302,
"constant": "NS_GADGET_DEFINITION",
"name": "Gadget_definition",
"protection": "gadgets-definition-edit",
"capitallinkoverride": false
},
{
"id": 2303,
"constant": "NS_GADGET_DEFINITION_TALK",
"name": "Gadget_definition_talk"
}
],
"AvailableRights": [
"gadgets-edit",
"gadgets-definition-edit"
],
"SpecialPages": {
"Gadgets": "SpecialGadgets"
},
@ -21,7 +50,8 @@
]
},
"ExtensionMessagesFiles": {
"GadgetsAlias": "Gadgets.alias.php"
"GadgetsAlias": "Gadgets.alias.php",
"GadgetsNamespaces": "Gadgets.namespaces.php"
},
"AutoloadClasses": {
"ApiQueryGadgetCategories": "api/ApiQueryGadgetCategories.php",

View file

@ -36,5 +36,9 @@
"apihelp-query+gadgets-example-2": "Get a list of gadgets with all possible properties",
"apihelp-query+gadgets-example-3": "Get a list of gadgets belonging to category \"foo\"",
"apihelp-query+gadgets-example-4": "Get information about gadgets \"foo\" and \"bar\"",
"apihelp-query+gadgets-example-5": "Get a list of gadgets enabled by current user"
"apihelp-query+gadgets-example-5": "Get a list of gadgets enabled by current user",
"right-gadgets-edit": "Edit gadget JavaScript and CSS pages",
"action-gadgets-edit": "edit this gadget JavaScript or CSS page",
"right-gadgets-definition-edit": "Edit gadget definitions",
"action-gadgets-definition-edit": "edit this gadget definition"
}

View file

@ -47,5 +47,9 @@
"apihelp-query+gadgets-example-2": "{{doc-apihelp-example|query+gadgets}}",
"apihelp-query+gadgets-example-3": "{{doc-apihelp-example|query+gadgets}}",
"apihelp-query+gadgets-example-4": "{{doc-apihelp-example|query+gadgets}}",
"apihelp-query+gadgets-example-5": "{{doc-apihelp-example|query+gadgets}}"
"apihelp-query+gadgets-example-5": "{{doc-apihelp-example|query+gadgets}}",
"right-gadgets-edit": "{{doc-right|gadgets-edit}}",
"action-gadgets-edit": "{{doc-action|gadgets-edit}}",
"right-gadgets-definition-edit": "{{doc-right|gadgets-definition-edit}}",
"action-gadgets-definition-edit": "{{doc-action|gadgets-definition-edit}}"
}