summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-31 21:21:47 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-31 21:21:47 +0200
commit98c2d3e01291c75f8f7257573a362e06710d2c4b (patch)
treebac8908368b6347f59ee7dbfd52d5beea5604dcc
parentencoding fix, locale cleanup (diff)
downloadpyload-98c2d3e01291c75f8f7257573a362e06710d2c4b.tar.xz
string formating fix
-rw-r--r--locale/cli.pot2
-rw-r--r--locale/core.pot11
-rw-r--r--locale/gui.pot2
-rw-r--r--locale/setup.pot2
-rw-r--r--module/PluginManager.py2
-rw-r--r--module/plugins/hooks/IRCInterface.py2
-rw-r--r--module/plugins/hooks/XMPPInterface.py2
7 files changed, 13 insertions, 10 deletions
diff --git a/locale/cli.pot b/locale/cli.pot
index 5872b4f49..e8ad11be8 100644
--- a/locale/cli.pot
+++ b/locale/cli.pot
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: pyLoad 0.4\n"
"Report-Msgid-Bugs-To: 'bugs@pyload.org'\n"
-"POT-Creation-Date: 2010-08-31 21:06+0200\n"
+"POT-Creation-Date: 2010-08-31 21:21+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
diff --git a/locale/core.pot b/locale/core.pot
index f65e0b956..f3bf7ad80 100644
--- a/locale/core.pot
+++ b/locale/core.pot
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: pyLoad 0.4\n"
"Report-Msgid-Bugs-To: 'bugs@pyload.org'\n"
-"POT-Creation-Date: 2010-08-31 21:06+0200\n"
+"POT-Creation-Date: 2010-08-31 21:21+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -275,7 +275,8 @@ msgid "%s has invalid pattern."
msgstr ""
#: module/PluginManager.py:285
-msgid "Error importing %(name): %(msg)"
+#, python-format
+msgid "Error importing %(name)s: %(msg)s"
msgstr ""
#: module/PluginManager.py:286
@@ -395,11 +396,13 @@ msgid "File not found"
msgstr ""
#: module/plugins/hooks/IRCInterface.py:75
-msgid "Download finished: %(name) @ %(plugin) "
+#, python-format
+msgid "Download finished: %(name)s @ %(plugin)s "
msgstr ""
#: module/plugins/hooks/XMPPInterface.py:82
-msgid "Download finished: %(name) @ %(plugin)"
+#, python-format
+msgid "Download finished: %(name)s @ %(plugin)s"
msgstr ""
#: module/plugins/hooks/XMPPInterface.py:114
diff --git a/locale/gui.pot b/locale/gui.pot
index 6b404f54d..9821872ae 100644
--- a/locale/gui.pot
+++ b/locale/gui.pot
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: pyLoad 0.4\n"
"Report-Msgid-Bugs-To: 'bugs@pyload.org'\n"
-"POT-Creation-Date: 2010-08-31 21:06+0200\n"
+"POT-Creation-Date: 2010-08-31 21:21+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
diff --git a/locale/setup.pot b/locale/setup.pot
index 612c8c17d..5e99b41c3 100644
--- a/locale/setup.pot
+++ b/locale/setup.pot
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: pyLoad 0.4\n"
"Report-Msgid-Bugs-To: 'bugs@pyload.org'\n"
-"POT-Creation-Date: 2010-08-31 21:06+0200\n"
+"POT-Creation-Date: 2010-08-31 21:21+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
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