diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-10-26 02:31:54 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-10-26 02:31:54 +0200 |
commit | 9f2ebe486a3e155fb6a60e07cccb77ab6a772eb2 (patch) | |
tree | 3b7b96651b12a2fb4765a3961a19bf3c67d4b64f /module/plugins/hoster/TurbobitNet.py | |
parent | Avoid gettext conflict due variable `_` (diff) | |
download | pyload-9f2ebe486a3e155fb6a60e07cccb77ab6a772eb2.tar.xz |
Extend translation support in plugins + a lot of code cosmetics and typo fixes
Diffstat (limited to 'module/plugins/hoster/TurbobitNet.py')
-rw-r--r-- | module/plugins/hoster/TurbobitNet.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/module/plugins/hoster/TurbobitNet.py b/module/plugins/hoster/TurbobitNet.py index a12fc3874..4e26f74b1 100644 --- a/module/plugins/hoster/TurbobitNet.py +++ b/module/plugins/hoster/TurbobitNet.py @@ -67,7 +67,7 @@ class TurbobitNet(SimpleHoster): action, inputs = self.parseHtmlForm("action='#'") if not inputs: - self.error("Captcha form not found") + self.error(_("Captcha form not found")) self.logDebug(inputs) if inputs['captcha_type'] == 'recaptcha': @@ -76,7 +76,7 @@ class TurbobitNet(SimpleHoster): else: m = re.search(self.CAPTCHA_PATTERN, self.html) if m is None: - self.error("captcha") + self.error(_("captcha")) captcha_url = m.group(1) inputs['captcha_response'] = self.decryptCaptcha(captcha_url) @@ -89,7 +89,7 @@ class TurbobitNet(SimpleHoster): self.correctCaptcha() break else: - self.fail("Invalid captcha") + self.fail(_("Invalid captcha")) def getRtUpdate(self): @@ -109,7 +109,7 @@ class TurbobitNet(SimpleHoster): self.setStorage("timestamp", timestamp()) self.setStorage("version", self.__version__) else: - self.logError("Unable to download, wait for update...") + self.logError(_("Unable to download, wait for update...")) self.tempOffline() return rtUpdate @@ -165,7 +165,7 @@ class TurbobitNet(SimpleHoster): def downloadFile(self): m = re.search(self.LINK_PATTERN, self.html) if m is None: - self.error("Download link not found") + self.error(_("Download link not found")) self.url = "http://turbobit.net" + m.group('url') self.download(self.url) |