Divadsn has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/328594 )
Change subject: The Configure extension misses API i18n messages ...................................................................... The Configure extension misses API i18n messages Adds following missing api i18n messages: * apihelp-configure-description * apihelp-configure-param-prop * apihelp-configure-param-prop-versionlist * apihelp-configure-param-prop-wikilist * apihelp-configure-param-prop-settings * apihelp-configure-param-prop-extensions * apihelp-configure-param-prop-ajax * apihelp-configure-param-version * apihelp-configure-param-wiki * apihelp-configure-param-group * apihelp-configure-param-ajaxgroup * apihelp-configure-param-ajaxsetting Bug: T153585 Change-Id: Iec016e11e762d12010aeaefa376a471db3376fed --- M Configure.api.php M i18n/en.json M i18n/qqq.json 3 files changed, 47 insertions(+), 76 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Configure refs/changes/94/328594/1 diff --git a/Configure.api.php b/Configure.api.php index 2346335..a762651 100644 --- a/Configure.api.php +++ b/Configure.api.php @@ -380,79 +380,23 @@ } protected function getAllowedParams() { - global $wgConfigureAPI; - - if ( $wgConfigureAPI ) { - return array( - 'prop' => array( - ApiBase::PARAM_ISMULTI => true, - ApiBase::PARAM_TYPE => array( - 'versionlist', - 'wikilist', - 'settings', - 'extensions', - 'ajax', - ), - ApiBase::PARAM_DFLT => 'versionlist|wikilist', - ), - 'version' => null, - 'wiki' => null, - 'group' => false, - 'ajaxgroup' => null, - 'ajaxsetting' => null, - ); - } else { - return array( - 'prop' => array( - ApiBase::PARAM_ISMULTI => true, - ApiBase::PARAM_TYPE => array( - 'ajax', - ), - ), - 'ajaxgroup' => null, - 'ajaxsetting' => null, - ); - } - } - - protected function getParamDescription() { - global $wgConfigureAPI; - - if ( $wgConfigureAPI ) { - return array( - 'prop' => array( - 'Which information to get:', - '- versionlist: Get the list of old configurations', - '- wikilist: Get the list the wikis to configuration', - '- settings: Get settings of a specific version', - '- extensions: List of installed extensions', - '- ajax: Get part of the html form on Special:Configure (for internal use)', - ), - 'version' => 'Version to get settings from', - 'wiki' => 'Wiki to get settings from (default: current wiki)', - 'group' => 'Whether to group settings', - 'ajaxgroup' => 'for prop=ajax, new group name', - 'ajaxsetting' =>'for prop=ajax, setting name', - ); - } else { - return array( - 'prop' => array( - 'Which information to get:', - '- ajax: Get part of the html form on Special:Configure (for internal use)', - ), - 'ajaxgroup' => 'for prop=ajax, new group name', - 'ajaxsetting' =>'for prop=ajax, setting name', - ); - } - } - - protected function getDescription() { - return 'Configure extension\'s API module'; - } - - protected function getExamples() { return array( - 'api.php?action=configure', + 'prop' => array( + ApiBase::PARAM_ISMULTI => true, + ApiBase::PARAM_TYPE => array( + 'versionlist', + 'wikilist', + 'settings', + 'extensions', + 'ajax', + ), + ApiBase::PARAM_DFLT => 'versionlist|wikilist', + ), + 'version' => null, + 'wiki' => null, + 'group' => false, + 'ajaxgroup' => null, + 'ajaxsetting' => null, ); } } diff --git a/i18n/en.json b/i18n/en.json index 1a57763..e95714d 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -1,6 +1,8 @@ { "@metadata": { - "authors": [] + "authors": [ + "David Sn <divad.nnamtd...@gmail.com>" + ] }, "configure": "Configure the wiki", "configure-desc": "Allow authorized users to [[Special:Configure|configure]] the wiki via a web-based interface", @@ -191,5 +193,17 @@ "configure-boolop-description-not": "No conditions must be true", "configure-farmer-settings": "[[Special:Configure|Configure this wiki]].", "configure-farmer-extensions": "[[Special:Extensions|Configure extensions for this wiki]].", - "configure-farmer-extensions-list": "[[Special:Extensions|List extensions available for this wiki]]." + "configure-farmer-extensions-list": "[[Special:Extensions|List extensions available for this wiki]].", + "apihelp-configure-description": "Configure extension's API module", + "apihelp-configure-param-prop": "Which information to get", + "apihelp-configure-param-prop-versionlist": "Get the list of old configurations", + "apihelp-configure-param-prop-wikilist": "Get the list the wikis to configuration", + "apihelp-configure-param-prop-settings": "Get settings of a specific version", + "apihelp-configure-param-prop-extensions": "List of installed extensions", + "apihelp-configure-param-prop-ajax": "Get part of the html form on Special:Configure (for internal use)", + "apihelp-configure-param-version": "Version to get settings from", + "apihelp-configure-param-wiki": "Wiki to get settings from (default: current wiki)", + "apihelp-configure-param-group": "Whether to group settings", + "apihelp-configure-param-ajaxgroup": "for prop=ajax, new group name", + "apihelp-configure-param-ajaxsetting": "for prop=ajax, setting name" } diff --git a/i18n/qqq.json b/i18n/qqq.json index 5f0f827..00d954f 100644 --- a/i18n/qqq.json +++ b/i18n/qqq.json @@ -14,7 +14,8 @@ "Shirayuki", "Siebrand", "Umherirrender", - "Liuxinyu970226" + "Liuxinyu970226", + "Divadsn" ] }, "configure": "{{doc-special|Configure}}", @@ -206,5 +207,17 @@ "configure-boolop-description-not": "Used as description for the operator NOT.\n{{Related|Configure-boolop}}", "configure-farmer-settings": "Preceded by the heading {{msg-mw|Farmer-basic-permission}}.", "configure-farmer-extensions": "Preceded by the heading {{msg-mw|Farmer-extensions}}.\n\nSee also:\n* {{msg-mw|Configure-farmer-extensions-list}}", - "configure-farmer-extensions-list": "Preceded by the heading {{msg-mw|Farmer-extensions-available}}.\n\nSee also:\n* {{msg-mw|Configure-farmer-extensions}}" + "configure-farmer-extensions-list": "Preceded by the heading {{msg-mw|Farmer-extensions-available}}.\n\nSee also:\n* {{msg-mw|Configure-farmer-extensions}}", + "apihelp-configure-description": "{{doc-apihelp-description|configure}}", + "apihelp-configure-param-prop": "{{doc-apihelp-param|configure|prop}}", + "apihelp-configure-param-prop-versionlist": "{{doc-apihelp-param|configure|prop|versionlist}}", + "apihelp-configure-param-prop-wikilist": "{{doc-apihelp-param|configure|prop|wikilist}}", + "apihelp-configure-param-prop-settings": "{{doc-apihelp-param|configure|prop|settings}}", + "apihelp-configure-param-prop-extensions": "{{doc-apihelp-param|configure|prop|extensions}}", + "apihelp-configure-param-prop-ajax": "{{doc-apihelp-param|configure|prop|ajax}}", + "apihelp-configure-param-version": "{{doc-apihelp-param|configure|version}}", + "apihelp-configure-param-wiki": "{{doc-apihelp-param|configure|wiki}}", + "apihelp-configure-param-group": "{{doc-apihelp-param|configure|group}}", + "apihelp-configure-param-ajaxgroup": "{{doc-apihelp-param|configure|ajaxgroup}}", + "apihelp-configure-param-ajaxsetting": "{{doc-apihelp-param|configure|ajaxsetting}}" } -- To view, visit https://gerrit.wikimedia.org/r/328594 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Iec016e11e762d12010aeaefa376a471db3376fed Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Configure Gerrit-Branch: master Gerrit-Owner: Divadsn <divad.nnamtd...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits