Hashar has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/332032 )
Change subject: Fix extension SpellingApi failing tests ...................................................................... Fix extension SpellingApi failing tests Extension SpellingApi failing tests due to missing apihelp messages Bug: T155032 Change-Id: I9d3147214f80f0edd321753bdeb58850d38b879d --- M api/ApiQuerySpellcheck.php M i18n/en.json M i18n/qqq.json 3 files changed, 9 insertions(+), 14 deletions(-) Approvals: Hashar: Verified; Looks good to me, approved diff --git a/api/ApiQuerySpellcheck.php b/api/ApiQuerySpellcheck.php index 0019043..7b0eace 100644 --- a/api/ApiQuerySpellcheck.php +++ b/api/ApiQuerySpellcheck.php @@ -68,15 +68,4 @@ ), ); } - - public function getDescription() { - return 'Check the spelling of a text string.'; - } - - public function getParamDescription() { - return array( - 'text' => 'Text, the spelling of which you want to check.', - 'langcode' => 'Language code. The default is the the code of $wgContLang.', - ); - } } diff --git a/i18n/en.json b/i18n/en.json index f62e28b..e65cb21 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -4,5 +4,8 @@ "Amire80" ] }, - "spellingapi-desc": "Provides an API module for checking spelling" + "spellingapi-desc": "Provides an API module for checking spelling", + "apihelp-spellingapi-description": "Check the spelling of a text string.", + "apihelp-spellingapi-param-text": "Text, the spelling of which you want to check.", + "apihelp-spellingapi-param-langcode": "Language code. The default is the the code of $wgContLang." } diff --git a/i18n/qqq.json b/i18n/qqq.json index b5f24fe..c762ba9 100644 --- a/i18n/qqq.json +++ b/i18n/qqq.json @@ -7,5 +7,8 @@ "Umherirrender" ] }, - "spellingapi-desc": "{{desc|name=Spelling Api|url=https://www.mediawiki.org/wiki/Extension:SpellingApi}}" -} + "spellingapi-desc": "{{desc|name=Spelling Api|url=https://www.mediawiki.org/wiki/Extension:SpellingApi}}", + "apihelp-spellingapi-description": "{{doc-apihelp-description|spellingapi}}", + "apihelp-spellingapi-param-text": "{{doc-apihelp-param|spellingapi|text}}", + "apihelp-spellingapi-param-langcode": "{{doc-apihelp-param|spellingapi|langcode}}" +} \ No newline at end of file -- To view, visit https://gerrit.wikimedia.org/r/332032 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I9d3147214f80f0edd321753bdeb58850d38b879d Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/SpellingApi Gerrit-Branch: master Gerrit-Owner: DatGuy <datguyst...@gmail.com> Gerrit-Reviewer: Hashar <has...@free.fr> Gerrit-Reviewer: Siebrand <siebr...@kitano.nl> Gerrit-Reviewer: Umherirrender <umherirrender_de...@web.de> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits