jenkins-bot has submitted this change and it was merged.
Change subject: Add 'match' and 'case' parameters for search translations API.
......................................................................
Add 'match' and 'case' parameters for search translations API.
Change-Id: I84e9e9f5d6ce2c4eaed735a589ff7823345c7779
---
M api/ApiSearchTranslations.php
M i18n/api/en.json
M i18n/api/qqq.json
3 files changed, 12 insertions(+), 0 deletions(-)
Approvals:
Nikerabbit: Looks good to me, approved
jenkins-bot: Verified
diff --git a/api/ApiSearchTranslations.php b/api/ApiSearchTranslations.php
index eb2ff13..e07785b 100644
--- a/api/ApiSearchTranslations.php
+++ b/api/ApiSearchTranslations.php
@@ -83,6 +83,14 @@
ApiBase::PARAM_TYPE => $filters,
ApiBase::PARAM_DFLT => '',
),
+ 'match' => array(
+ ApiBase::PARAM_TYPE => 'string',
+ ApiBase::PARAM_DFLT => '',
+ ),
+ 'case' => array(
+ ApiBase::PARAM_TYPE => 'string',
+ ApiBase::PARAM_DFLT => '0',
+ ),
'offset' => array(
ApiBase::PARAM_TYPE => 'integer',
ApiBase::PARAM_DFLT => 0,
diff --git a/i18n/api/en.json b/i18n/api/en.json
index b0f259f..b78a793 100644
--- a/i18n/api/en.json
+++ b/i18n/api/en.json
@@ -82,6 +82,8 @@
"apihelp-searchtranslations-param-language": "The language code to
search string for.",
"apihelp-searchtranslations-param-group": "The group id to search
string in.",
"apihelp-searchtranslations-param-filter": "Message translation status
filter.",
+ "apihelp-searchtranslations-param-match": "Match any/all search words.",
+ "apihelp-searchtranslations-param-case": "Case (in)sensitive search.",
"apihelp-searchtranslations-param-offset": "Offset for the
translations.",
"apihelp-searchtranslations-param-limit": "Size of the result.",
"apihelp-searchtranslations-example-1": "Show translations for the
language.",
diff --git a/i18n/api/qqq.json b/i18n/api/qqq.json
index 4217fa6..c20b52b 100644
--- a/i18n/api/qqq.json
+++ b/i18n/api/qqq.json
@@ -87,6 +87,8 @@
"apihelp-searchtranslations-param-language":
"{{doc-apihelp-param|searchtranslations|language}}",
"apihelp-searchtranslations-param-group":
"{{doc-apihelp-param|searchtranslations|group}}",
"apihelp-searchtranslations-param-filter":
"{{doc-apihelp-param|searchtranslations|filter}}",
+ "apihelp-searchtranslations-param-match":
"{{doc-apihelp-param|searchtranslations|match}}",
+ "apihelp-searchtranslations-param-case":
"{{doc-apihelp-param|searchtranslations|case}}",
"apihelp-searchtranslations-param-offset":
"{{doc-apihelp-param|searchtranslations|offset}}",
"apihelp-searchtranslations-param-limit":
"{{doc-apihelp-param|searchtranslations|limit}}",
"apihelp-searchtranslations-example-1":
"{{doc-apihelp-example|searchtranslations}}",
--
To view, visit https://gerrit.wikimedia.org/r/233436
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I84e9e9f5d6ce2c4eaed735a589ff7823345c7779
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Translate
Gerrit-Branch: master
Gerrit-Owner: Phoenix303 <[email protected]>
Gerrit-Reviewer: Nemo bis <[email protected]>
Gerrit-Reviewer: Nikerabbit <[email protected]>
Gerrit-Reviewer: Siebrand <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits