eric6/Plugins/UiExtensionPlugins/Translator/TranslatorEngines/GlosbeEngine.py

changeset 7748
23e98236a4c4
parent 7360
9190402e4505
child 7780
41420f82c0ac
--- a/eric6/Plugins/UiExtensionPlugins/Translator/TranslatorEngines/GlosbeEngine.py	Sat Oct 03 18:10:49 2020 +0200
+++ b/eric6/Plugins/UiExtensionPlugins/Translator/TranslatorEngines/GlosbeEngine.py	Sat Oct 03 18:11:45 2020 +0200
@@ -82,7 +82,7 @@
             try:
                 responseDict = json.loads(response)
             except ValueError:
-                return self.tr("Invalid response received"), False
+                return self.tr("Glosbe: Invalid response received"), False
             
             result = ""
             for translation in responseDict["tuc"]:
@@ -96,7 +96,7 @@
                     if translation != responseDict["tuc"][-1]:
                         result += "<hr/>"
             if not result:
-                result = self.tr("No translation found.")
+                result = self.tr("Glosbe: No translation found.")
                 ok = False
         else:
             result = response

eric ide

mercurial