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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Jun 23 15:23:50 CEST 2010


Author: torsten
Date: 2010-06-23 15:23:49 +0200 (Wed, 23 Jun 2010)
New Revision: 3080

Modified:
   base/trunk/mpulsweb/controllers/case.py
Log:
Added some comments on use of ungettext instead of ugettext


Modified: base/trunk/mpulsweb/controllers/case.py
===================================================================
--- base/trunk/mpulsweb/controllers/case.py	2010-06-23 12:54:54 UTC (rev 3079)
+++ base/trunk/mpulsweb/controllers/case.py	2010-06-23 13:23:49 UTC (rev 3080)
@@ -44,6 +44,9 @@
 Administration zur endgültigen Anonymisierung vor. Bitte klicken Sie auf "OK",
 um zur Fallaktenübersicht fortzufahren."""
 
+# Use ungettext here because in the po file this translation is ready for
+# ungettext. As the case controller only handles single cases provide constant
+# 1
 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
@@ -52,6 +55,10 @@
 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.""")
+
+# Use ungettext here because in the po file this translation is ready for
+# ungettext. As the case controller only handles single cases provide constant
+# 1
 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