changeset 550:24c87a2cd368

Changed i18ned string to have named arguments. imported from: moin--main--1.5--patch-554
author Alexander Schremmer <alex@alexanderweb.de.tla>
date Tue, 11 Apr 2006 09:38:38 +0000
parents e631e0cdd8d2
children 17ab8fe4a94b
files ChangeLog MoinMoin/packages.py
diffstat 2 files changed, 15 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Apr 11 09:00:38 2006 +0000
+++ b/ChangeLog	Tue Apr 11 09:38:38 2006 +0000
@@ -2,6 +2,18 @@
 # arch-tag: automatic-ChangeLog--arch@arch.thinkmo.de--2003-archives/moin--main--1.5
 #
 
+2006-04-11 10:38:38 GMT	Alexander Schremmer <alex@alexanderweb.de.tla>	patch-554
+
+    Summary:
+      Changed i18ned string to have named arguments.
+    Revision:
+      moin--main--1.5--patch-554
+
+
+    modified files:
+     ChangeLog MoinMoin/packages.py
+
+
 2006-04-11 10:00:38 GMT	Thomas Waldmann <tw@waldmann-edv.de>	patch-553
 
     Summary:
--- a/MoinMoin/packages.py	Tue Apr 11 09:00:38 2006 +0000
+++ b/MoinMoin/packages.py	Tue Apr 11 09:38:38 2006 +0000
@@ -303,8 +303,9 @@
             try:
                 fn = getattr(self, "do_" + fnname)
             except AttributeError:
-                self.msg += u"Exception RuntimeScriptException (line %i): %s\n" % (
-                    lineno, _("Unknown function %s in line %i.") % (elements[0], lineno))
+                self.msg += u"Exception RuntimeScriptException: %s\n" % (
+                        _("Unknown function %(func)s in line %(lineno)i.") %
+                        {'func': elements[0], 'lineno': lineno}, )
                 success = False
                 break