summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/FshareVn.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/FshareVn.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/FshareVn.py')
-rw-r--r--module/plugins/hoster/FshareVn.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/module/plugins/hoster/FshareVn.py b/module/plugins/hoster/FshareVn.py
index 217e2d754..fd9980117 100644
--- a/module/plugins/hoster/FshareVn.py
+++ b/module/plugins/hoster/FshareVn.py
@@ -68,16 +68,16 @@ class FshareVn(SimpleHoster):
self.url = self.pyfile.url + action
if not inputs:
- self.error("FORM")
+ self.error(_("No FORM"))
elif 'link_file_pwd_dl' in inputs:
for password in self.getPassword().splitlines():
- self.logInfo("Password protected link, trying", password)
+ self.logInfo(_("Password protected link, trying ") + password)
inputs['link_file_pwd_dl'] = password
self.html = self.load(self.url, post=inputs, decode=True)
if not 'name="link_file_pwd_dl"' in self.html:
break
else:
- self.fail("No or incorrect password")
+ self.fail(_("No or incorrect password"))
else:
self.html = self.load(self.url, post=inputs, decode=True)
@@ -88,7 +88,7 @@ class FshareVn(SimpleHoster):
m = re.search(self.LINK_PATTERN, self.html)
if m is None:
- self.error("FREE DL URL")
+ self.error(_("LINK_PATTERN not found"))
self.url = m.group(1)
self.logDebug("FREE DL URL: %s" % self.url)
@@ -106,7 +106,7 @@ class FshareVn(SimpleHoster):
m = re.search(self.WAIT_PATTERN, self.html)
if m:
- self.logInfo("Wait until %s ICT" % m.group(1))
+ self.logInfo(_("Wait until %s ICT") % m.group(1))
wait_until = mktime(strptime(m.group(1), "%d/%m/%Y %H:%M"))
self.wait(wait_until - mktime(gmtime()) - 7 * 60 * 60, True)
self.retry()
@@ -123,4 +123,4 @@ class FshareVn(SimpleHoster):
})
if check == "not_found":
- self.fail("File not m on server")
+ self.fail(_("File not m on server"))