6411:7fd9b7ecbcfe | 6412:d71b094845e7 |
---|---|
11 try: | 11 try: |
12 str = unicode | 12 str = unicode |
13 except NameError: | 13 except NameError: |
14 pass | 14 pass |
15 | 15 |
16 from PyQt5.QtCore import QUrl, QDateTime, QByteArray | 16 from PyQt5.QtCore import QUrl, QDateTime, QByteArray, QTimer |
17 | 17 |
18 from .TranslationEngine import TranslationEngine | 18 from .TranslationEngine import TranslationEngine |
19 | 19 |
20 | 20 |
21 class MicrosoftEngine(TranslationEngine): | 21 class MicrosoftEngine(TranslationEngine): |
39 | 39 |
40 self.__mappings = { | 40 self.__mappings = { |
41 "zh-CN": "zh-CHS", | 41 "zh-CN": "zh-CHS", |
42 "zh-TW": "zh-CHT", | 42 "zh-TW": "zh-CHT", |
43 } | 43 } |
44 | |
45 QTimer.singleShot(0, self.availableTranslationsLoaded.emit) | |
44 | 46 |
45 def engineName(self): | 47 def engineName(self): |
46 """ | 48 """ |
47 Public method to return the name of the engine. | 49 Public method to return the name of the engine. |
48 | 50 |