summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/UpstoreNet.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-26 02:31:54 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-26 02:31:54 +0200
commit9f2ebe486a3e155fb6a60e07cccb77ab6a772eb2 (patch)
tree3b7b96651b12a2fb4765a3961a19bf3c67d4b64f /module/plugins/hoster/UpstoreNet.py
parentAvoid gettext conflict due variable `_` (diff)
downloadpyload-9f2ebe486a3e155fb6a60e07cccb77ab6a772eb2.tar.xz
Extend translation support in plugins + a lot of code cosmetics and typo fixes
Diffstat (limited to 'module/plugins/hoster/UpstoreNet.py')
-rw-r--r--module/plugins/hoster/UpstoreNet.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hoster/UpstoreNet.py b/module/plugins/hoster/UpstoreNet.py
index 3695f0c6d..1ee123357 100644
--- a/module/plugins/hoster/UpstoreNet.py
+++ b/module/plugins/hoster/UpstoreNet.py
@@ -30,7 +30,7 @@ class UpstoreNet(SimpleHoster):
# STAGE 1: get link to continue
m = re.search(self.CHASH_PATTERN, self.html)
if m is None:
- self.error("Unable to detect hash")
+ self.error(_("CHASH_PATTERN not found"))
chash = m.group(1)
self.logDebug("Read hash " + chash)
# continue to stage2
@@ -45,7 +45,7 @@ class UpstoreNet(SimpleHoster):
for i in xrange(5):
m = re.search(self.WAIT_PATTERN, self.html)
if m is None:
- self.error("Wait pattern not found")
+ self.error(_("Wait pattern not found"))
wait_time = m.group(1)
# then, do the waiting
@@ -64,7 +64,7 @@ class UpstoreNet(SimpleHoster):
break
if m is None:
- self.error("Download link not found")
+ self.error(_("Download link not found"))
direct = m.group(1)
self.download(direct, disposition=True)