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

branch
eric7
changeset 9576
be9f8e7e42e0
parent 9495
28ab5f487f71
child 9653
e67609152c5e
equal deleted inserted replaced
9575:635b6c5a36e1 9576:be9f8e7e42e0
39 self.__errors = { 39 self.__errors = {
40 401: self.tr("Yandex: Invalid API key."), 40 401: self.tr("Yandex: Invalid API key."),
41 402: self.tr("Yandex: API key has been blocked."), 41 402: self.tr("Yandex: API key has been blocked."),
42 403: self.tr("Yandex: Daily limit for requests has been reached."), 42 403: self.tr("Yandex: Daily limit for requests has been reached."),
43 404: self.tr( 43 404: self.tr(
44 "Yandex: Daily limit for the volume of translated" " text reached." 44 "Yandex: Daily limit for the volume of translated text reached."
45 ), 45 ),
46 413: self.tr("Yandex: Text size exceeds the maximum."), 46 413: self.tr("Yandex: Text size exceeds the maximum."),
47 422: self.tr("Yandex: Text could not be translated."), 47 422: self.tr("Yandex: Text could not be translated."),
48 501: self.tr( 48 501: self.tr(
49 "Yandex: The specified translation direction is not" " supported." 49 "Yandex: The specified translation direction is not supported."
50 ), 50 ),
51 } 51 }
52 52
53 QTimer.singleShot(0, self.availableTranslationsLoaded.emit) 53 QTimer.singleShot(0, self.availableTranslationsLoaded.emit)
54 54

eric ide

mercurial