[Mpuls-commits] r4956 - in base/trunk: . mpulsweb/controllers

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed May 11 10:16:41 CEST 2011


Author: torsten
Date: 2011-05-11 10:16:39 +0200 (Wed, 11 May 2011)
New Revision: 4956

Modified:
   base/trunk/ChangeLog
   base/trunk/mpulsweb/controllers/case_bundle.py
Log:
Issue1865: Fixed call of ungetext


Modified: base/trunk/ChangeLog
===================================================================
--- base/trunk/ChangeLog	2011-05-11 08:05:23 UTC (rev 4955)
+++ base/trunk/ChangeLog	2011-05-11 08:16:39 UTC (rev 4956)
@@ -2,6 +2,8 @@
 
 	* mpulsweb/controllers/case.py: Issue2114: Fixed gettext call. Needs
 	to be ungetext.
+	* mpulsweb/controllers/case_bundle.py: Issue1865: Fixed call of
+	ungettext.
 
 2011-05-10  Torsten Irländer <torsten.irlaender at intevation.de>
 

Modified: base/trunk/mpulsweb/controllers/case_bundle.py
===================================================================
--- base/trunk/mpulsweb/controllers/case_bundle.py	2011-05-11 08:05:23 UTC (rev 4955)
+++ base/trunk/mpulsweb/controllers/case_bundle.py	2011-05-11 08:16:39 UTC (rev 4956)
@@ -543,9 +543,8 @@
         for l in g.mpuls_config.get('case', 'formletter'):
             if int(l.get('id')) == int(letterid):
                 lettername = l.get('name')
-        c.dialog_title= ungettext("%s Case was marked for formletter" % num,
-                                  "%s Cases were marked for formletter" % num,
-                                  num)
+        c.dialog_title= ungettext("%s Case was marked for formletter",
+                                  "%s Cases were marked for formletter", num) % num
         c.dialog_text = \
             ungettext("%d case can be exported for formletter '%s'. Please click on 'Download' to download the exported data", 
                       "%d cases can be exported for formletter '%s'. Please click on 'Download' to download the exported data",



More information about the Mpuls-commits mailing list