jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/370000 )

Change subject: Add apihelp messages to pass unit tests
......................................................................


Add apihelp messages to pass unit tests

Bug: T155044
Change-Id: Iec650303a264af2d5fb6767ebe81f0bd2a003607
---
M i18n/omegawiki/en.json
M i18n/omegawiki/qqq.json
M includes/api/owAddAnnotation.php
M includes/api/owAddDefinition.php
M includes/api/owAddSyntrans.php
M includes/api/owAddToCollection.php
M includes/api/owDefine.php
M includes/api/owExpress.php
M includes/api/owSyntrans.php
9 files changed, 106 insertions(+), 127 deletions(-)

Approvals:
  Umherirrender: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/i18n/omegawiki/en.json b/i18n/omegawiki/en.json
index 0749409..a8893cc 100644
--- a/i18n/omegawiki/en.json
+++ b/i18n/omegawiki/en.json
@@ -2,5 +2,57 @@
        "@metadata": {
                "authors": []
        },
-       "apiow-desc": "OmegaWiki's WikiLexicalData extension of the MediaWiki 
api.php"
+       "apiow-desc": "OmegaWiki's WikiLexicalData extension of the MediaWiki 
api.php",
+       "apihelp-ow_add_annotation-summary": "Add annotations to Omegawiki.",
+       "apihelp-ow_add_annotation-param-type": "Annotation type.",
+       "apihelp-ow_add_annotation-param-e": "Expression to process.",
+       "apihelp-ow_add_annotation-param-lang": "Expression language to 
process.",
+       "apihelp-ow_add_annotation-param-dm": "Defined meaning id to process.",
+       "apihelp-ow_add_annotation-param-attribute": "Attribute to process.",
+       "apihelp-ow_add_annotation-param-attrib_lang": "Attribute language to 
process.",
+       "apihelp-ow_add_annotation-param-text": "Text to process.",
+       "apihelp-ow_add_annotation-param-option": "Option to process.",
+       "apihelp-ow_add_annotation-param-option_lang": "Option to process.",
+       "apihelp-ow_add_annotation-param-relation": "Relation to process.",
+       "apihelp-ow_add_annotation-param-relation_lang": "Relation to process.",
+       "apihelp-ow_add_annotation-param-dm_relation": "Defined meaning id 
relation to process for defined meaning relations or a defined meaning id for 
syntrans relations between two syntrans with different defined meaning ids.",
+       "apihelp-ow_add_annotation-param-wikipage": "The wikipage to process. 
(tsv format, using wiki page).",
+       "apihelp-ow_add_annotation-param-test": "Test mode. No changes are 
made.",
+       "apihelp-ow_add_definition-summary": "Add definitions to Omegawiki.",
+       "apihelp-ow_add_definition-param-d": "The definition to be added.",
+       "apihelp-ow_add_definition-param-dm": "The defined meaning id where the 
definition will be added.",
+       "apihelp-ow_add_definition-param-lang": "The language id of the new 
definition.",
+       "apihelp-ow_add_definition-param-file": "The file to process (csv 
format).",
+       "apihelp-ow_add_definition-param-wikipage": "The wikipage to process 
(csv format, using wiki page).",
+       "apihelp-ow_add_definition-param-test": "Test mode. No changes are 
made.",
+       "apihelp-ow_add_syntrans-summary": "Add expressions, 
synonyms/translations to Omegawiki.",
+       "apihelp-ow_add_syntrans-param-e": "The expression to be added.",
+       "apihelp-ow_add_syntrans-param-dm": "The defined meaning id where the 
expression will be added.",
+       "apihelp-ow_add_syntrans-param-lang": "The language id of the 
expression.",
+       "apihelp-ow_add_syntrans-param-im": "The identical meaning value.",
+       "apihelp-ow_add_syntrans-param-file": "The file to process (csv 
format).",
+       "apihelp-ow_add_syntrans-param-wikipage": "The wikipage to process (csv 
format, using wiki page).",
+       "apihelp-ow_add_syntrans-param-test": "Test mode. No changes are made.",
+       "apihelp-ow_add_syntrans-param-tid": "Use this Transaction id instead 
of creating a new one.",
+       "apihelp-ow_add_syntrans-param-ver": "Module version.",
+       "apihelp-ow_add_to_collection-summary": "Add annotations to Omegawiki.",
+       "apihelp-ow_add_to_collection-param-dm": "Defined meaning id to add to 
the Collection.",
+       "apihelp-ow_add_to_collection-param-coll_mid": "Defined meaning Id of 
the Collection.",
+       "apihelp-ow_add_to_collection-param-int_memb_id": "Internal member id, 
a further string that can be used to identify the member inside the 
collection.",
+       "apihelp-ow_add_to_collection-param-wikipage": "The wikipage to process 
(csv format, using wiki page).",
+       "apihelp-ow_add_to_collection-param-test": "Test mode. No changes are 
made.",
+       "apihelp-ow_define-summary": "Get the definition of a defined meaning.",
+       "apihelp-ow_define-param-dm": "The defined meaning id to be defined.",
+       "apihelp-ow_define-param-lang": "The language id to be defined.",
+       "apihelp-ow_define-param-e": "The expression to be defined.",
+       "apihelp-ow_define-param-syntrans": "Include syntrans to the 
definition.",
+       "apihelp-ow_express-summary": "Returns information about the concepts 
(DefinedMeaning) and definitions of a given expression.",
+       "apihelp-ow_express-param-search": "The expression being searched.",
+       "apihelp-ow_express-param-ver": "Module version.",
+       "apihelp-ow_syntrans-summary": "Returns information about the synonyms 
and translations of a given concept (DefinedMeaningId).",
+       "apihelp-ow_syntrans-param-dm": "Defined_meaning_id corresponding to 
the concept to define.",
+       "apihelp-ow_syntrans-param-lang": "The language of the synonyms, or the 
language to translate in translations.",
+       "apihelp-ow_syntrans-param-e": "An expression of which one want the 
synonyms of.",
+       "apihelp-ow_syntrans-param-part": "Syn for synonyms and trans for 
translations. Requires lang.",
+       "apihelp-ow_syntrans-param-ver": "Module version."
 }
diff --git a/i18n/omegawiki/qqq.json b/i18n/omegawiki/qqq.json
index 3008318..ee6e43c 100644
--- a/i18n/omegawiki/qqq.json
+++ b/i18n/omegawiki/qqq.json
@@ -5,5 +5,57 @@
                        "Umherirrender"
                ]
        },
-       "apiow-desc": 
"{{desc|name=OmegaWiki|url=https://www.omegawiki.org/Help:OmegaWiki_API}}";
+       "apiow-desc": 
"{{desc|name=OmegaWiki|url=https://www.omegawiki.org/Help:OmegaWiki_API}}";,
+       "apihelp-ow_add_annotation-summary": 
"{{doc-apihelp-summary|ow_add_annotation}}",
+       "apihelp-ow_add_annotation-param-type": 
"{{doc-apihelp-param|ow_add_annotation|type}}",
+       "apihelp-ow_add_annotation-param-e": 
"{{doc-apihelp-param|ow_add_annotation|e}}",
+       "apihelp-ow_add_annotation-param-lang": 
"{{doc-apihelp-param|ow_add_annotation|lang}}",
+       "apihelp-ow_add_annotation-param-dm": 
"{{doc-apihelp-param|ow_add_annotation|dm}}",
+       "apihelp-ow_add_annotation-param-attribute": 
"{{doc-apihelp-param|ow_add_annotation|attribute}}",
+       "apihelp-ow_add_annotation-param-attrib_lang": 
"{{doc-apihelp-param|ow_add_annotation|attrib_lang}}",
+       "apihelp-ow_add_annotation-param-text": 
"{{doc-apihelp-param|ow_add_annotation|text}}",
+       "apihelp-ow_add_annotation-param-option": 
"{{doc-apihelp-param|ow_add_annotation|option}}",
+       "apihelp-ow_add_annotation-param-option_lang": 
"{{doc-apihelp-param|ow_add_annotation|option_lang}}",
+       "apihelp-ow_add_annotation-param-relation": 
"{{doc-apihelp-param|ow_add_annotation|relation}}",
+       "apihelp-ow_add_annotation-param-relation_lang": 
"{{doc-apihelp-param|ow_add_annotation|relation_lang}}",
+       "apihelp-ow_add_annotation-param-dm_relation": 
"{{doc-apihelp-param|ow_add_annotation|dm_relation}}",
+       "apihelp-ow_add_annotation-param-wikipage": 
"{{doc-apihelp-param|ow_add_annotation|wikipage}}",
+       "apihelp-ow_add_annotation-param-test": 
"{{doc-apihelp-param|ow_add_annotation|test}}",
+       "apihelp-ow_add_definition-summary": 
"{{doc-apihelp-summary|ow_add_definition}}",
+       "apihelp-ow_add_definition-param-d": 
"{{doc-apihelp-param|ow_add_definition|d}}",
+       "apihelp-ow_add_definition-param-dm": 
"{{doc-apihelp-param|ow_add_definition|dm}}",
+       "apihelp-ow_add_definition-param-lang": 
"{{doc-apihelp-param|ow_add_definition|lang}}",
+       "apihelp-ow_add_definition-param-file": 
"{{doc-apihelp-param|ow_add_definition|file}}",
+       "apihelp-ow_add_definition-param-wikipage": 
"{{doc-apihelp-param|ow_add_definition|wikipage}}",
+       "apihelp-ow_add_definition-param-test": 
"{{doc-apihelp-param|ow_add_definition|test}}",
+       "apihelp-ow_add_syntrans-summary": 
"{{doc-apihelp-summary|ow_add_syntrans}}",
+       "apihelp-ow_add_syntrans-param-e": 
"{{doc-apihelp-param|ow_add_syntrans|e}}",
+       "apihelp-ow_add_syntrans-param-dm": 
"{{doc-apihelp-param|ow_add_syntrans|dm}}",
+       "apihelp-ow_add_syntrans-param-lang": 
"{{doc-apihelp-param|ow_add_syntrans|lang}}",
+       "apihelp-ow_add_syntrans-param-im": 
"{{doc-apihelp-param|ow_add_syntrans|im}}",
+       "apihelp-ow_add_syntrans-param-file": 
"{{doc-apihelp-param|ow_add_syntrans|file}}",
+       "apihelp-ow_add_syntrans-param-wikipage": 
"{{doc-apihelp-param|ow_add_syntrans|wikipage}}",
+       "apihelp-ow_add_syntrans-param-test": 
"{{doc-apihelp-param|ow_add_syntrans|test}}",
+       "apihelp-ow_add_syntrans-param-tid": 
"{{doc-apihelp-param|ow_add_syntrans|tid}}",
+       "apihelp-ow_add_syntrans-param-ver": 
"{{doc-apihelp-param|ow_add_syntrans|ver}}",
+       "apihelp-ow_add_to_collection-summary": 
"{{doc-apihelp-summary|ow_add_to_collection}}",
+       "apihelp-ow_add_to_collection-param-dm": 
"{{doc-apihelp-param|ow_add_to_collection|dm}}",
+       "apihelp-ow_add_to_collection-param-coll_mid": 
"{{doc-apihelp-param|ow_add_to_collection|coll_mid}}",
+       "apihelp-ow_add_to_collection-param-int_memb_id": 
"{{doc-apihelp-param|ow_add_to_collection|int_memb_id}}",
+       "apihelp-ow_add_to_collection-param-wikipage": 
"{{doc-apihelp-param|ow_add_to_collection|wikipage}}",
+       "apihelp-ow_add_to_collection-param-test": 
"{{doc-apihelp-param|ow_add_to_collection|test}}",
+       "apihelp-ow_define-summary": "{{doc-apihelp-summary|ow_define}}",
+       "apihelp-ow_define-param-dm": "{{doc-apihelp-param|ow_define|dm}}",
+       "apihelp-ow_define-param-lang": "{{doc-apihelp-param|ow_define|lang}}",
+       "apihelp-ow_define-param-e": "{{doc-apihelp-param|ow_define|e}}",
+       "apihelp-ow_define-param-syntrans": 
"{{doc-apihelp-param|ow_define|syntrans}}",
+       "apihelp-ow_express-summary": "{{doc-apihelp-summary|ow_express}}",
+       "apihelp-ow_express-param-search": 
"{{doc-apihelp-param|ow_express|search}}",
+       "apihelp-ow_express-param-ver": "{{doc-apihelp-param|ow_express|ver}}",
+       "apihelp-ow_syntrans-summary": "{{doc-apihelp-summary|ow_syntrans}}",
+       "apihelp-ow_syntrans-param-dm": "{{doc-apihelp-param|ow_syntrans|dm}}",
+       "apihelp-ow_syntrans-param-lang": 
"{{doc-apihelp-param|ow_syntrans|lang}}",
+       "apihelp-ow_syntrans-param-e": "{{doc-apihelp-param|ow_syntrans|e}}",
+       "apihelp-ow_syntrans-param-part": 
"{{doc-apihelp-param|ow_syntrans|part}}",
+       "apihelp-ow_syntrans-param-ver": "{{doc-apihelp-param|ow_syntrans|ver}}"
 }
diff --git a/includes/api/owAddAnnotation.php b/includes/api/owAddAnnotation.php
index c354e1b..466c2b2 100644
--- a/includes/api/owAddAnnotation.php
+++ b/includes/api/owAddAnnotation.php
@@ -303,11 +303,6 @@
                return true;
        }
 
-       // Description
-       public function getDescription() {
-               return 'Add annotations to Omegawiki.' ;
-       }
-
        // Parameters.
        public function getAllowedParams() {
                return array(
@@ -355,29 +350,6 @@
                        'test' => array (
                                ApiBase::PARAM_TYPE => 'string'
                        )
-               );
-       }
-
-       // Describe the parameter
-       public function getParamDescription() {
-               return array(
-                       'type' => 'Annotation type' ,
-                       'e' => 'Expression to process',
-                       'lang' => 'Expression language to process',
-                       'dm' => 'Defined meaning id to process',
-                       'attribute' => 'Attribute to process' ,
-                       'attrib_lang' => 'Attribute language to process',
-                       'text' => 'text to process',
-                       'option' => 'option to process',
-                       'option_lang' => 'option to process',
-                       'relation' => 'relation to process',
-                       'relation_lang' => 'relation to process',
-                       'dm_relation' => "Defined meaning id relation to process
-                               for defined meaning relations or a defined 
meaning id
-                               for syntrans relations between two syntrans with
-                               different defined meaning ids",
-                       'wikipage' => 'The wikipage to process. (tsv format, 
using wiki page)',
-                       'test' => 'test mode. No changes are made.'
                );
        }
 
diff --git a/includes/api/owAddDefinition.php b/includes/api/owAddDefinition.php
index 90979b4..542c2f0 100644
--- a/includes/api/owAddDefinition.php
+++ b/includes/api/owAddDefinition.php
@@ -78,11 +78,6 @@
                return true;
        }
 
-       // Description
-       public function getDescription() {
-               return 'Add definitions to Omegawiki.' ;
-       }
-
        // Parameters.
        public function getAllowedParams() {
                return array(
@@ -104,18 +99,6 @@
                        'test' => array (
                                ApiBase::PARAM_TYPE => 'string'
                        ),
-               );
-       }
-
-       // Describe the parameter
-       public function getParamDescription() {
-               return array(
-                       'd' => 'The definition to be added' ,
-                       'dm' => 'The defined meaning id where the definition 
will be added' ,
-                       'lang' => 'The language id of the new definition' ,
-                       'file' => 'The file to process. (csv format)' ,
-                       'wikipage' => 'The wikipage to process. (csv format, 
using wiki page)',
-                       'test' => 'test mode. No changes are made.'
                );
        }
 
diff --git a/includes/api/owAddSyntrans.php b/includes/api/owAddSyntrans.php
index 8deae41..6489956 100644
--- a/includes/api/owAddSyntrans.php
+++ b/includes/api/owAddSyntrans.php
@@ -107,11 +107,6 @@
                return true;
        }
 
-       // Description
-       public function getDescription() {
-               return 'Add expressions, synonyms/translations to Omegawiki.' ;
-       }
-
        // Parameters.
        public function getAllowedParams() {
                return array(
@@ -142,21 +137,6 @@
                        'ver' => array (
                                ApiBase::PARAM_TYPE => 'string',
                        ),
-               );
-       }
-
-       // Describe the parameter
-       public function getParamDescription() {
-               return array(
-                       'e' => 'The expression to be added' ,
-                       'dm' => 'The defined meaning id where the expression 
will be added' ,
-                       'lang' => 'The language id of the expression' ,
-                       'im' => 'The identical meaning value. (boolean)' ,
-                       'file' => 'The file to process. (csv format)' ,
-                       'wikipage' => 'The wikipage to process. (csv format, 
using wiki page)',
-                       'test' => 'test mode. No changes are made.',
-                       'tid' => 'Use this Transaction id instead of creating a 
new one.',
-                       'ver' => 'module version',
                );
        }
 
diff --git a/includes/api/owAddToCollection.php 
b/includes/api/owAddToCollection.php
index 477de84..138180b 100644
--- a/includes/api/owAddToCollection.php
+++ b/includes/api/owAddToCollection.php
@@ -87,11 +87,6 @@
                return true;
        }
 
-       // Description
-       public function getDescription() {
-               return 'Add annotations to Omegawiki.' ;
-       }
-
        // Parameters.
        public function getAllowedParams() {
                return array(
@@ -110,17 +105,6 @@
                        'test' => array (
                                ApiBase::PARAM_TYPE => 'string'
                        ),
-               );
-       }
-
-       // Describe the parameter
-       public function getParamDescription() {
-               return array(
-                       'dm' => 'Defined meaning id to add to the Collection',
-                       'coll_mid' => 'Defined meaning Id of the Collection' ,
-                       'int_memb_id' => 'Internal member id, A further string 
that can be used to identify the member inside the collection',
-                       'wikipage' => 'The wikipage to process. (csv format, 
using wiki page)',
-                       'test' => 'test mode. No changes are made.'
                );
        }
 
diff --git a/includes/api/owDefine.php b/includes/api/owDefine.php
index 20284cf..01047f6 100644
--- a/includes/api/owDefine.php
+++ b/includes/api/owDefine.php
@@ -153,11 +153,6 @@
                return $define;
        }
 
-       // Description
-       public function getDescription() {
-               return 'Get the definition of a defined meaning.' ;
-       }
-
        // Parameters.
        public function getAllowedParams() {
                return array(
@@ -174,16 +169,6 @@
                        'syntrans' => array (
                                ApiBase::PARAM_TYPE => 'string',
                        ),
-               );
-       }
-
-       // Describe the parameter
-       public function getParamDescription() {
-               return array(
-                       'dm' => 'The defined meaning id to be defined',
-                       'lang' => 'The language id to be defined',
-                       'e' => 'The expression to be defined',
-                       'syntrans' => 'include syntrans to the definition'
                );
        }
 
diff --git a/includes/api/owExpress.php b/includes/api/owExpress.php
index b87674c..54d1ba3 100644
--- a/includes/api/owExpress.php
+++ b/includes/api/owExpress.php
@@ -107,11 +107,6 @@
                return $express;
        }
 
-       // Description
-       public function getDescription() {
-               return 'Returns information about the concepts ( DefinedMeaning 
) and definitions of a given expression.' ;
-       }
-
        // Parameters.
        public function getAllowedParams() {
                return array(
@@ -122,14 +117,6 @@
                        'ver' => array (
                                ApiBase::PARAM_TYPE => 'string',
                        ),
-               );
-       }
-
-       // Describe the parameter
-       public function getParamDescription() {
-               return array(
-                       'search' => 'The expression being searched',
-                       'ver' => 'module version'
                );
        }
 
diff --git a/includes/api/owSyntrans.php b/includes/api/owSyntrans.php
index 8807a65..5d50574 100644
--- a/includes/api/owSyntrans.php
+++ b/includes/api/owSyntrans.php
@@ -138,11 +138,6 @@
                return true;
        }
 
-       // Description
-       public function getDescription() {
-               return 'Returns information about the synonyms and translations 
of a given concept (DefinedMeaningId)' ;
-       }
-
        // Parameters.
        public function getAllowedParams() {
                return array(
@@ -162,17 +157,6 @@
                        'ver' => array (
                                ApiBase::PARAM_TYPE => 'string',
                        ),
-               );
-       }
-
-       // Describe the parameter
-       public function getParamDescription() {
-               return array(
-                       'dm' => 'defined_meaning_id corresponding to the 
concept to define.',
-                       'lang' => "the language of the synonyms, or the 
language to translate in translations.",
-                       'e' => "an expression of which one want the synonyms 
of.",
-                       'part' => 'syn for synonyms and trans for translations. 
Requires lang',
-                       'ver' => 'module version',
                );
        }
 

-- 
To view, visit https://gerrit.wikimedia.org/r/370000
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Iec650303a264af2d5fb6767ebe81f0bd2a003607
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikiLexicalData
Gerrit-Branch: master
Gerrit-Owner: Umherirrender <umherirrender_de...@web.de>
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

Reply via email to