[Mpuls-commits] r5165 - in base/trunk: . mpulsweb/lib

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Jul 14 10:01:42 CEST 2011


Author: torsten
Date: 2011-07-14 10:01:41 +0200 (Thu, 14 Jul 2011)
New Revision: 5165

Modified:
   base/trunk/ChangeLog
   base/trunk/mpulsweb/lib/translation.py
Log:
Added new function "N_" for null-translations.


Modified: base/trunk/ChangeLog
===================================================================
--- base/trunk/ChangeLog	2011-07-12 10:35:46 UTC (rev 5164)
+++ base/trunk/ChangeLog	2011-07-14 08:01:41 UTC (rev 5165)
@@ -1,3 +1,8 @@
+2011-07-14  Torsten Irländer <torsten.irlaender at intevation.de>
+
+	* mpulsweb/lib/translation.py: Added new function "N_" for
+	null-translations.
+
 2011-07-07  Bernhard Herzog  <bh at intevation.de>
 
 	* mpulsweb/lib/security.py (get_dbname_from_session)

Modified: base/trunk/mpulsweb/lib/translation.py
===================================================================
--- base/trunk/mpulsweb/lib/translation.py	2011-07-12 10:35:46 UTC (rev 5164)
+++ base/trunk/mpulsweb/lib/translation.py	2011-07-14 08:01:41 UTC (rev 5165)
@@ -10,6 +10,11 @@
 
 log = logging.getLogger(__name__)
 
+def N_(value):
+    """Null translation. Used to mark strings for later translation. Simply
+    returns untranslated string"""
+    return value
+
 def ugettext(value):
     """Mark a string for translation. Returns the localized unicode
     string of value.



More information about the Mpuls-commits mailing list