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 |