[Mpuls-commits] r3078 - base/trunk/mpulsweb/controllers

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Jun 23 14:54:06 CEST 2010


Author: torsten
Date: 2010-06-23 14:54:06 +0200 (Wed, 23 Jun 2010)
New Revision: 3078

Modified:
   base/trunk/mpulsweb/controllers/case.py
Log:
* mpulsweb/controllers/case.py: Use ungetext for some translations.


Modified: base/trunk/mpulsweb/controllers/case.py
===================================================================
--- base/trunk/mpulsweb/controllers/case.py	2010-06-23 12:52:03 UTC (rev 3077)
+++ base/trunk/mpulsweb/controllers/case.py	2010-06-23 12:54:06 UTC (rev 3078)
@@ -4,10 +4,9 @@
 import formencode
 
 from pylons import request, session, tmpl_context as c, app_globals as g
-from mpulsweb.lib.translation import _
 from pylons.controllers.util import redirect_to
 
-
+from mpulsweb.lib.translation import _, ungettext
 from mpulsweb.lib.base import BaseController, render, h
 from mpulsweb.lib.security import checkRole
 from mpulsweb.lib.dialogs import checkPrivacyStatement
@@ -45,7 +44,7 @@
 Administration zur endgültigen Anonymisierung vor. Bitte klicken Sie auf "OK",
 um zur Fallaktenübersicht fortzufahren."""
 
-DELETE_CONFIRM = _('Delete case?')
+DELETE_CONFIRM = ungettext('Delete case?', 'Delete cases?', 1)
 DELETE_CONFIRM_TEXT = _("""Warning! On deleting the case all data will be erased
 irrecoverable!<br>Only delete the case if this case is <b>not needed for
 evaluations</b> anymore.<br><br>Do you want to delete the case from the
@@ -53,7 +52,7 @@
 MARKDELETE_CONFIRM_TEXT = _("""Do you really want to mark this case for deletion?
 The case will not be editable afterwards, and submited to the administration
 for deletion.""")
-RESTORE_CONFIRM = _('Restore case?')
+RESTORE_CONFIRM = ungettext('Restore case?', 'Restore cases?', 1)
 RESTORE_CONFIRM_TEXT = _("""Do you really want to restore the case? The case
 will be editable afterwards again for the users.""")
 



More information about the Mpuls-commits mailing list