Fix copy/pasto in API help and a typo in message name
authorPetr Kadlec <mormegil@centrum.cz>
Wed, 15 Oct 2014 20:52:40 +0000 (22:52 +0200)
committerPetr Kadlec <mormegil@centrum.cz>
Wed, 15 Oct 2014 20:52:40 +0000 (22:52 +0200)
* The help for [[Special:ApiHelp/xml]] used the same copypasted
apihelp-json-param-callback message for both parameters instead of the
correct ones for those parameters.
* The message name in en.json and qqq.json was truncated, so that it did
not correspond to the parameter name. I presume this was unintentional
and not some strange limitation.

Change-Id: I666b2fd6511f08bccc9f05739bab68d7675ef5c6

includes/api/ApiFormatXml.php
includes/api/i18n/en.json
includes/api/i18n/qqq.json

index 4ed4944..7010dd6 100644 (file)
@@ -238,11 +238,11 @@ class ApiFormatXml extends ApiFormatBase {
        public function getAllowedParams() {
                return array(
                        'xslt' => array(
-                               ApiBase::PARAM_HELP_MSG => 'apihelp-json-param-callback',
+                               ApiBase::PARAM_HELP_MSG => 'apihelp-xml-param-xslt',
                        ),
                        'includexmlnamespace' => array(
                                ApiBase::PARAM_DFLT => false,
-                               ApiBase::PARAM_HELP_MSG => 'apihelp-json-param-callback',
+                               ApiBase::PARAM_HELP_MSG => 'apihelp-xml-param-includexmlnamespace',
                        ),
                );
        }
index 6c45425..c871be0 100644 (file)
@@ -37,7 +37,7 @@
        "apihelp-wddxfm-description": "Output data in WDDX format (pretty-print in HTML).",
        "apihelp-xml-description": "Output data in XML format.",
        "apihelp-xml-param-xslt": "If specified, adds &lt;xslt&gt; as stylesheet. This should be a wiki page in the MediaWiki namespace whose page name ends with \".xsl\".",
-       "apihelp-xml-param-includexmlnamespac": "If specified, adds an XML namespace.",
+       "apihelp-xml-param-includexmlnamespace": "If specified, adds an XML namespace.",
        "apihelp-xmlfm-description": "Output data in XML format (pretty-print in HTML).",
        "apihelp-yaml-description": "Output data in YAML format.",
        "apihelp-yamlfm-description": "Output data in YAML format (pretty-print in HTML).",
index a4dfd7c..0b10779 100644 (file)
@@ -35,7 +35,7 @@
        "apihelp-wddxfm-description": "{{doc-apihelp-description|wddxfm|seealso=* {{msg-mw|apihelp-wddx-description}}}}",
        "apihelp-xml-description": "{{doc-apihelp-description|xml|seealso=* {{msg-mw|apihelp-xmlfm-description}}}}",
        "apihelp-xml-param-xslt": "{{doc-apihelp-param|xml|xslt}}",
-       "apihelp-xml-param-includexmlnamespac": "{{doc-apihelp-param|xml|includexmlnamespac}}",
+       "apihelp-xml-param-includexmlnamespace": "{{doc-apihelp-param|xml|includexmlnamespace}}",
        "apihelp-xmlfm-description": "{{doc-apihelp-description|xmlfm|seealso=* {{msg-mw|apihelp-xml-description}}}}",
        "apihelp-yaml-description": "{{doc-apihelp-description|yaml|seealso=* {{msg-mw|apihelp-yamlfm-description}}}}",
        "apihelp-yamlfm-description": "{{doc-apihelp-description|yamlfm|seealso=* {{msg-mw|apihelp-yaml-description}}}}",