registration: Allow documenting config settings with i18n messages
authorFlorian Schmidt <florian.schmidt.stargatewissen@gmail.com>
Fri, 13 Jan 2017 05:14:42 +0000 (06:14 +0100)
committerLegoktm <legoktm@member.fsf.org>
Tue, 7 Mar 2017 07:29:32 +0000 (07:29 +0000)
In addition to the general (English) description key in a config
option in extension.json, developers now can provide a description message
key. This localized message will be used in user interfaces, such as
viewing configuration options on-wiki (see later changes).

Bug: T155157
Change-Id: I5c780b3347bd54a05694cfa6de93879656b4e921

docs/extension.schema.v2.json

index d6f8c16..a2fdf65 100644 (file)
                                                        "type": ["string", "array"],
                                                        "description": "A description of the config setting, mostly for documentation/developers"
                                                },
+                                               "decriptionmsg": {
+                                                       "type": "string",
+                                                       "description": "The message key which should be used as a description for this configuration option in a user interface. If empty, description will be used."
+                                               },
                                                "public": {
                                                        "type": "boolean",
                                                        "default": false,