jenkins-bot has submitted this change and it was merged.
Change subject: add i18n support for ApiClientInfo module
......................................................................
add i18n support for ApiClientInfo module
Change-Id: Id7f1eb1945afecf5d4133d8d96133ff94ee71574
---
M client/i18n/en.json
M client/i18n/qqq.json
M client/includes/api/ApiClientInfo.php
3 files changed, 10 insertions(+), 35 deletions(-)
Approvals:
Thiemo Mättig (WMDE): Looks good to me, approved
jenkins-bot: Verified
diff --git a/client/i18n/en.json b/client/i18n/en.json
index 4f05827..5b222e6 100644
--- a/client/i18n/en.json
+++ b/client/i18n/en.json
@@ -15,6 +15,9 @@
"apihelp-query+pageterms-example-simple": "Get all terms associated
with the page 'London', in the user language.",
"apihelp-query+pageterms-example-label-en": "Get labels and aliases
associated with the page 'London', in English.",
"apihelp-query+pageterms-param-terms": "The kinds of terms to get, e.g.
'label', 'description', or 'alias'.",
+ "apihelp-query+wikibase-description": "Get information about the
associated Wikibase repository.",
+ "apihelp-query+wikibase-example": "Get URL path and other information
for the Wikibase repository.",
+ "apihelp-query+wikibase-param-prop": "Which properties to
get:\n;<kbd>url</kbd>: Base URL, script path and article path.",
"wikibase-after-page-move": "You may also [$1 update] the associated
{{WBREPONAME}} item to maintain language links on moved page.",
"wikibase-after-page-move-queued": "The [$1 {{WBREPONAME}} item]
associated with this page will be automatically updated soon.",
"wikibase-after-page-delete": "You may also remove the link to this
page from the associated [$1 {{WBREPONAME}} item] to maintain language links.",
diff --git a/client/i18n/qqq.json b/client/i18n/qqq.json
index 5fafc61..0567e84 100644
--- a/client/i18n/qqq.json
+++ b/client/i18n/qqq.json
@@ -25,6 +25,9 @@
"apihelp-query+pageterms-example-simple":
"{{doc-apihelp-example|query+pageterms}}",
"apihelp-query+pageterms-example-label-en":
"{{doc-apihelp-example|query+pageterms}}",
"apihelp-query+pageterms-param-terms":
"{{doc-apihelp-param|query+pageterms|terms}}",
+ "apihelp-query+wikibase-description":
"{{doc-apihelp-description|query+wikibase}}",
+ "apihelp-query+wikibase-example":
"{{doc-apihelp-example|query+wikibase}}",
+ "apihelp-query+wikibase-param-prop":
"{{doc-apihelp-param|query+wikibase|prop}}",
"wikibase-after-page-move": "Message on [[Special:MovePage]] on submit
and successfully move, inviting user to update associated Wikibase repository
item to maintain language links on the moved page on the
client.\n\nParameters:\n* $1 - the link for the associated Wikibase item.",
"wikibase-after-page-move-queued": "Message after a successful page
move, telling the user that the Wikidata item belonging to the page will be
automatically updated soon.\n\nParameters:\n* $1 - the link for the associated
Wikibase item.",
"wikibase-after-page-delete": "Message after a successful page
deletion, inviting the user to remove the link to the deleted page from the
associated Wikibase repository item.\n\nParameters:\n* $1 - the link for the
associated Wikibase item.",
diff --git a/client/includes/api/ApiClientInfo.php
b/client/includes/api/ApiClientInfo.php
index 03571dc..6b2364d 100644
--- a/client/includes/api/ApiClientInfo.php
+++ b/client/includes/api/ApiClientInfo.php
@@ -108,44 +108,13 @@
}
/**
- * @see ApiBase::getParamDescription
- *
- * @since 0.4
- *
- * @return array
+ * @see ApiBase::getExamplesMessages()
*/
- public function getParamDescription() {
+ protected function getExamplesMessages() {
return array(
- 'prop' => array(
- 'Which wikibase repository properties to get:',
- ' url - Base url, script path and
article path',
- ),
+ 'action=query&meta=wikibase'
+ => 'apihelp-query+wikibase-example',
);
- }
-
- /**
- * @see ApiBase::getExamples
- *
- * @since 0.4
- *
- * @return array
- */
- protected function getExamples() {
- return array(
- 'api.php?action=query&meta=wikibase' =>
- 'Get url path and other info for the Wikibase
repo',
- );
- }
-
- /**
- * @see ApiBase::getDescription
- *
- * @since 0.4
- *
- * @return string
- */
- public function getDescription() {
- return 'Get information about the Wikibase repository.';
}
}
--
To view, visit https://gerrit.wikimedia.org/r/179868
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Id7f1eb1945afecf5d4133d8d96133ff94ee71574
Gerrit-PatchSet: 5
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Aude <[email protected]>
Gerrit-Reviewer: Addshore <[email protected]>
Gerrit-Reviewer: Aude <[email protected]>
Gerrit-Reviewer: Hoo man <[email protected]>
Gerrit-Reviewer: Siebrand <[email protected]>
Gerrit-Reviewer: Thiemo Mättig (WMDE) <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits