[damned-lies] Add translator comment for a template string (Fixes #596150)



commit a3f04aa67e149f089bd026f73fbdd7dd791092c0
Author: Claude Paroz <claude 2xlibre net>
Date:   Wed Oct 28 22:51:48 2009 +0100

    Add translator comment for a template string (Fixes #596150)
    
    As Django doesn't support translator comments in templates, add a
    similar string in python code so as the translator comment appears
    in po files.

 vertimus/models.py |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/vertimus/models.py b/vertimus/models.py
index 0e1ab60..6dee032 100644
--- a/vertimus/models.py
+++ b/vertimus/models.py
@@ -823,3 +823,9 @@ def delete_merged_file(sender, instance, **kwargs):
         if os.access(merged_file, os.W_OK):
              os.remove(merged_file)
 pre_delete.connect(delete_merged_file, sender=ActionDb)
+
+""" The following string is just reproduced from a template so as a translator comment
+    can be added (comments are not supported in templates) """
+# Translators: human_level is an ordinal expression ('1st',' 2nd',...)
+# which should be localized in Django itself
+dummy = ugettext("Archived Actions (%(human_level)s archived series)" % {'human_level':0})



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]