Plugins/UiExtensionPlugins/Translator/TranslatorEngines/YandexEngine.py

changeset 6412
d71b094845e7
parent 6048
82ad8ec9548c
child 6645
ad476851d7e0
equal deleted inserted replaced
6411:7fd9b7ecbcfe 6412:d71b094845e7
13 except NameError: 13 except NameError:
14 pass 14 pass
15 15
16 import json 16 import json
17 17
18 from PyQt5.QtCore import QUrl, QByteArray 18 from PyQt5.QtCore import QUrl, QByteArray, QTimer
19 19
20 import Utilities 20 import Utilities
21 21
22 from .TranslationEngine import TranslationEngine 22 from .TranslationEngine import TranslationEngine
23 23
48 413: self.tr("Text size exceeds the maximum."), 48 413: self.tr("Text size exceeds the maximum."),
49 422: self.tr("Text could not be translated."), 49 422: self.tr("Text could not be translated."),
50 501: self.tr("The specified translation direction is not" 50 501: self.tr("The specified translation direction is not"
51 " supported."), 51 " supported."),
52 } 52 }
53
54 QTimer.singleShot(0, self.availableTranslationsLoaded.emit)
53 55
54 def engineName(self): 56 def engineName(self):
55 """ 57 """
56 Public method to return the name of the engine. 58 Public method to return the name of the engine.
57 59

eric ide

mercurial