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/OneFichierCom.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/OneFichierCom.py')
-rw-r--r-- | module/plugins/hoster/OneFichierCom.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hoster/OneFichierCom.py b/module/plugins/hoster/OneFichierCom.py index 3f3d0a19a..d7e477356 100644 --- a/module/plugins/hoster/OneFichierCom.py +++ b/module/plugins/hoster/OneFichierCom.py @@ -40,13 +40,13 @@ class OneFichierCom(SimpleHoster): m = re.search(self.WAIT_PATTERN, self.html) if m: wait_time = int(m.group(1)) + 1 #: One minute more than what the page displays to be safe - self.logInfo("You have to wait been each free download", "Retrying in %d minutes." % wait_time) + self.logInfo(_("You have to wait been each free download"), _("Retrying in %d minutes") % wait_time) self.wait(wait_time * 60, True) self.retry() url, inputs = self.parseHtmlForm('action="http://%s' % self.file_info['ID']) if not url: - self.error("Download link not found") + self.error(_("Download link not found")) # Check for protection if "pass" in inputs: @@ -62,7 +62,7 @@ class OneFichierCom(SimpleHoster): def handlePremium(self): url, inputs = self.parseHtmlForm('action="http://%s' % self.file_info['ID']) if not url: - self.error("Download link not found") + self.error(_("Download link not found")) # Check for protection if "pass" in inputs: |