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/RapidgatorNet.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/RapidgatorNet.py')
-rw-r--r-- | module/plugins/hoster/RapidgatorNet.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/module/plugins/hoster/RapidgatorNet.py b/module/plugins/hoster/RapidgatorNet.py index f0acfd04e..8db84340b 100644 --- a/module/plugins/hoster/RapidgatorNet.py +++ b/module/plugins/hoster/RapidgatorNet.py @@ -67,7 +67,7 @@ class RapidgatorNet(SimpleHoster): status = json['response_status'] msg = json['response_details'] except BadHeader, e: - self.logError("API:%s" % cmd, e, "SID: %s" % self.sid) + self.logError("API: %s" % cmd, repr(e), "SID: %s" % self.sid) status = e.code msg = e @@ -138,7 +138,7 @@ class RapidgatorNet(SimpleHoster): else: self.correctCaptcha() else: - self.error("Download link") + self.error(_("Download link")) def getCaptcha(self): @@ -157,7 +157,7 @@ class RapidgatorNet(SimpleHoster): captcha_key = m.group(1) captcha = SolveMedia(self) else: - self.error("Captcha") + self.error(_("Captcha")) return captcha, captcha_key @@ -165,7 +165,7 @@ class RapidgatorNet(SimpleHoster): def checkFree(self): m = re.search(self.PREMIUM_ONLY_ERROR_PATTERN, self.html) if m: - self.fail("Premium account needed for download") + self.fail(_("Premium account needed for download")) else: m = re.search(self.WAIT_PATTERN, self.html) @@ -176,7 +176,7 @@ class RapidgatorNet(SimpleHoster): if m is None: return elif m.group(1) == "daily": - self.logWarning("You have reached your daily downloads limit for today") + self.logWarning(_("You have reached your daily downloads limit for today")) wait_time = secondsToMidnight(gmt=2) else: wait_time = 1 * 60 * 60 |