MtDu has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/329222 )
Change subject: Add missing API i18n messages ...................................................................... Add missing API i18n messages * Migrate from old API message formats Bug: T154092 Change-Id: I66006e707d40c63f91877ab6e47c846ec35f615a --- M ApiLifeWeb.php M i18n/en.json M i18n/qqq.json 3 files changed, 17 insertions(+), 18 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/LifeWeb refs/changes/22/329222/1 diff --git a/ApiLifeWeb.php b/ApiLifeWeb.php index bbab415..7b2dc13 100644 --- a/ApiLifeWeb.php +++ b/ApiLifeWeb.php @@ -79,10 +79,6 @@ return $result; } - public function getDescription() { - return 'Data downlink for the LifeBase.'; - } - public function getAllowedParams() { return array( 'what' => array ( @@ -111,19 +107,12 @@ ); } - public function getParamDescription() { - return array( - 'what' => 'Which data list to retrieve.' - ); - } - public function getExamples() { return array( 'api.php?action=query&list=LifeWeb&what=taxonData&format=json' - => 'Taxon list', + => 'apihelp-query+LifeWeb-example-1', 'api.php?action=query&list=LifeWeb&format=jsonfm&what=question' - => 'Question list, pretty-printed' + => 'apihelp-query+LifeWeb-example-2' ); } - -} \ No newline at end of file +} diff --git a/i18n/en.json b/i18n/en.json index 0188997..7ca4b11 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -1,9 +1,14 @@ { "@metadata": { "authors": [ - "Simon A. Eugster" + "Simon A. Eugster", + "Justin Du" ] }, "lifeweb": "LifeWeb", - "lifeweb-desc": "Identification key generator and editor" + "lifeweb-desc": "Identification key generator and editor", + "apihelp-query+LifeWeb-description": "Data downlink for the LifeBase.", + "apihelp-query+LifeWeb-param-what": "Which data list to retrieve.", + "apihelp-query+LifeWeb-example-1": "Taxon list", + "apihelp-query+LifeWeb-example-2": "Question list, pretty-printed" } \ No newline at end of file diff --git a/i18n/qqq.json b/i18n/qqq.json index 7d6eb26..dec8a7a 100644 --- a/i18n/qqq.json +++ b/i18n/qqq.json @@ -2,9 +2,14 @@ "@metadata": { "authors": [ "Shirayuki", - "Umherirrender" + "Umherirrender", + "Justin Du" ] }, "lifeweb": "{{doc-special|LifeWeb}}", - "lifeweb-desc": "{{desc|name=Life Web|url=https://www.mediawiki.org/wiki/Extension:LifeWeb}}" + "lifeweb-desc": "{{desc|name=Life Web|url=https://www.mediawiki.org/wiki/Extension:LifeWeb}}", + "apihelp-query+LifeWeb-description": "{{doc-apihelp-description|query+Lifeweb}}", + "apihelp-query+LifeWeb-param-what": "{{doc-apihelp-param|query+Lifeweb|what}}", + "apihelp-query+LifeWeb-example-1": "{{doc-apihelp-example|query+Lifeweb}}", + "apihelp-query+LifeWeb-example-2": "{{doc-apihelp-example|query+Lifeweb}}" } -- To view, visit https://gerrit.wikimedia.org/r/329222 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I66006e707d40c63f91877ab6e47c846ec35f615a Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/LifeWeb Gerrit-Branch: master Gerrit-Owner: MtDu <justin.d...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits