eric7/Plugins/UiExtensionPlugins/Translator/TranslatorEngines/YandexEngine.py

branch
eric7
changeset 9148
b31f0d894b55
parent 8881
54e42bc2437a
--- a/eric7/Plugins/UiExtensionPlugins/Translator/TranslatorEngines/YandexEngine.py	Sun Jun 12 16:05:27 2022 +0200
+++ b/eric7/Plugins/UiExtensionPlugins/Translator/TranslatorEngines/YandexEngine.py	Mon Jun 13 16:39:53 2022 +0200
@@ -28,8 +28,10 @@
         """
         Constructor
         
-        @param plugin reference to the plugin object (TranslatorPlugin)
-        @param parent reference to the parent object (QObject)
+        @param plugin reference to the plugin object
+        @type TranslatorPlugin
+        @param parent reference to the parent object
+        @type QObject
         """
         super().__init__(plugin, parent)
         
@@ -51,7 +53,8 @@
         """
         Public method to return the name of the engine.
         
-        @return engine name (string)
+        @return engine name
+        @rtype str
         """
         return "yandex"
     
@@ -59,7 +62,8 @@
         """
         Public method to get the supported languages.
         
-        @return list of supported language codes (list of string)
+        @return list of supported language codes
+        @rtype list of str
         """
         return ["ar", "be", "bg", "bs", "ca", "cs", "da", "de", "el", "en",
                 "es", "et", "fi", "fr", "ga", "gl", "hi", "hr", "hu", "id",
@@ -74,12 +78,15 @@
         Public method to translate the given text.
         
         @param requestObject reference to the request object
-            (TranslatorRequest)
-        @param text text to be translated (string)
-        @param originalLanguage language code of the original (string)
-        @param translationLanguage language code of the translation (string)
-        @return tuple of translated text (string) and flag indicating
-            success (boolean)
+        @type TranslatorRequest
+        @param text text to be translated
+        @type str
+        @param originalLanguage language code of the original
+        @type str
+        @param translationLanguage language code of the translation
+        @type str
+        @return tuple of translated text and flag indicating success
+        @rtype tuple of (str, bool)
         """
         if len(text) > self.TranslatorLimit:
             return (

eric ide

mercurial