summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/FilerNet.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/FilerNet.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/FilerNet.py')
-rw-r--r--module/plugins/hoster/FilerNet.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/hoster/FilerNet.py b/module/plugins/hoster/FilerNet.py
index d45289fc0..9a34f8872 100644
--- a/module/plugins/hoster/FilerNet.py
+++ b/module/plugins/hoster/FilerNet.py
@@ -41,7 +41,7 @@ class FilerNet(SimpleHoster):
inputs = self.parseHtmlForm(input_names='token')[1]
if 'token' not in inputs:
- self.error("Unable to detect token")
+ self.error(_("Unable to detect token"))
token = inputs['token']
self.logDebug("Token: " + token)
@@ -49,7 +49,7 @@ class FilerNet(SimpleHoster):
inputs = self.parseHtmlForm(input_names='hash')[1]
if 'hash' not in inputs:
- self.error("Unable to detect hash")
+ self.error(_("Unable to detect hash"))
hash_data = inputs['hash']
self.logDebug("Hash: " + hash_data)
@@ -76,7 +76,7 @@ class FilerNet(SimpleHoster):
self.invalidCaptcha()
if not downloadURL:
- self.fail("No Download url retrieved/all captcha attempts failed")
+ self.fail(_("No Download url retrieved/all captcha attempts failed"))
self.download(downloadURL, disposition=True)
@@ -89,7 +89,7 @@ class FilerNet(SimpleHoster):
html = self.load(self.pyfile.url)
m = re.search(self.LINK_PATTERN, html)
if m is None:
- self.error("Unable to detect direct link, try to enable 'Direct download' in your user settings")
+ self.error(_("LINK_PATTERN not found"))
dl = 'http://filer.net' + m.group(1)
self.logDebug("Direct link: " + dl)