summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/SimpleHoster.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/internal/SimpleHoster.py')
-rw-r--r--module/plugins/internal/SimpleHoster.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/module/plugins/internal/SimpleHoster.py b/module/plugins/internal/SimpleHoster.py
index 951a05783..135d3c9d9 100644
--- a/module/plugins/internal/SimpleHoster.py
+++ b/module/plugins/internal/SimpleHoster.py
@@ -224,7 +224,7 @@ class SimpleHoster(Hoster):
self.logDebug("Handle as premium download")
self.handlePremium()
elif premium_only:
- self.fail("This link require a premium account")
+ self.fail(_("This link require a premium account"))
else:
self.logDebug("Handle as free download")
self.handleFree()
@@ -241,7 +241,7 @@ class SimpleHoster(Hoster):
self.tempOffline()
elif status != 2:
self.logDebug(self.file_info)
- self.error("File info")
+ self.error(_("File info"))
if name:
self.pyfile.name = name
@@ -259,12 +259,12 @@ class SimpleHoster(Hoster):
def handleFree(self):
if not hasattr(self, 'LINK_FREE_PATTERN'):
- self.fail("Free download not implemented")
+ self.fail(_("Free download not implemented"))
try:
m = re.search(self.LINK_FREE_PATTERN, self.html)
if m is None:
- self.error("Free download link not found")
+ self.error(_("Free download link not found"))
link = m.group(1)
except Exception, e:
@@ -275,12 +275,12 @@ class SimpleHoster(Hoster):
def handlePremium(self):
if not hasattr(self, 'LINK_PREMIUM_PATTERN'):
- self.fail("Premium download not implemented")
+ self.fail(_("Premium download not implemented"))
try:
m = re.search(self.LINK_PREMIUM_PATTERN, self.html)
if m is None:
- self.error("Premium download link not found")
+ self.error(_("Premium download link not found"))
link = m.group(1)
except Exception, e: