diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-08-27 14:23:55 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-08-27 14:23:55 +0200 |
commit | 1bbbd7e7e123516a8540099e5f380ba158dfef5f (patch) | |
tree | 87725c8189bf68b5832e4de44555858173051743 /module/PluginThread.py | |
parent | hotfile fix (diff) | |
download | pyload-1bbbd7e7e123516a8540099e5f380ba158dfef5f.tar.xz |
locale fixes
Diffstat (limited to 'module/PluginThread.py')
-rw-r--r-- | module/PluginThread.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/module/PluginThread.py b/module/PluginThread.py index 0175bb419..9d16155ef 100644 --- a/module/PluginThread.py +++ b/module/PluginThread.py @@ -170,7 +170,7 @@ class DownloadThread(PluginThread): self.m.log.warning(_("Download is offline: %s") % pyfile.name) else: pyfile.setStatus("failed") - self.m.log.warning(_("Download failed: %s | %s") % (pyfile.name, msg)) + self.m.log.warning(_("Download failed: %(name)s | %(msg)s") % {"name": pyfile.name, "msg": msg}) pyfile.error = msg pyfile.plugin.req.clean() @@ -199,7 +199,7 @@ class DownloadThread(PluginThread): except Exception, e: pyfile.setStatus("failed") - self.m.log.error(_("Download failed: %s | %s") % (pyfile.name, str(e))) + self.m.log.warning(_("Download failed: %(name)s | %(msg)s") % {"name": pyfile.name, "msg": str(e)}) pyfile.error = str(e) if self.m.core.debug: @@ -279,7 +279,7 @@ class DecrypterThread(PluginThread): self.m.log.warning(_("Download is offline: %s") % self.active.name) else: self.active.setStatus("failed") - self.m.log.warning(_("Decrypting failed: %s | %s") % (self.active.name, msg)) + self.m.log.error(_("Decrypting failed: %(name)s | %(msg)s") % { "name" : self.active.name, "msg":msg }) self.active.error = msg return @@ -288,7 +288,7 @@ class DecrypterThread(PluginThread): except Exception, e: self.active.setStatus("failed") - self.m.log.error(_("Decrypting failed: %s | %s") % (self.active.name, str(e))) + self.m.log.error(_("Decrypting failed: %(name)s | %(msg)s") % { "name" : self.active.name, "msg" :str(e) }) self.active.error = str(e) if self.m.core.debug: |