diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-08-31 21:21:47 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-08-31 21:21:47 +0200 |
commit | 98c2d3e01291c75f8f7257573a362e06710d2c4b (patch) | |
tree | bac8908368b6347f59ee7dbfd52d5beea5604dcc /module | |
parent | encoding fix, locale cleanup (diff) | |
download | pyload-98c2d3e01291c75f8f7257573a362e06710d2c4b.tar.xz |
string formating fix
Diffstat (limited to 'module')
-rw-r--r-- | module/PluginManager.py | 2 | ||||
-rw-r--r-- | module/plugins/hooks/IRCInterface.py | 2 | ||||
-rw-r--r-- | module/plugins/hooks/XMPPInterface.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/module/PluginManager.py b/module/PluginManager.py index 7e1c663de..29c01ce21 100644 --- a/module/PluginManager.py +++ b/module/PluginManager.py @@ -282,7 +282,7 @@ class PluginManager(): try: module = __import__(value["path"], globals(), locals(), [value["name"]] , -1) except Exception, e: - self.log.error(_("Error importing %(name): %(msg)") % {"name": name, "msg": str(e) }) + self.log.error(_("Error importing %(name)s: %(msg)s") % {"name": name, "msg": str(e) }) self.log.error(_("You should fix dependicies or deactivate load on startup.")) continue diff --git a/module/plugins/hooks/IRCInterface.py b/module/plugins/hooks/IRCInterface.py index d3e0d9c40..404cf407a 100644 --- a/module/plugins/hooks/IRCInterface.py +++ b/module/plugins/hooks/IRCInterface.py @@ -72,7 +72,7 @@ class IRCInterface(Thread, Hook): def downloadFinished(self, pyfile): try: if self.getConfig("info_file"): - self.response(_("Download finished: %(name) @ %(plugin) ") % { "name" : pyfile.name, "plugin": pyfile.pluginname} ) + self.response(_("Download finished: %(name)s @ %(plugin)s ") % { "name" : pyfile.name, "plugin": pyfile.pluginname} ) except: pass diff --git a/module/plugins/hooks/XMPPInterface.py b/module/plugins/hooks/XMPPInterface.py index b2d8f301b..68689cfd3 100644 --- a/module/plugins/hooks/XMPPInterface.py +++ b/module/plugins/hooks/XMPPInterface.py @@ -79,7 +79,7 @@ class XMPPInterface(IRCInterface, JabberClient): def downloadFinished(self, pyfile): try: if self.getConfig("info_file"): - self.announce(_("Download finished: %(name) @ %(plugin)") % {"name": pyfile.name, "plugin": pyfile.pluginname} ) + self.announce(_("Download finished: %(name)s @ %(plugin)s") % {"name": pyfile.name, "plugin": pyfile.pluginname} ) except: pass |