[Zope3-checkins] CVS: Zope3/src/zope/tal - talinterpreter.py:1.6

Jim Fulton jim@zope.com
Fri, 28 Mar 2003 11:58:05 -0500


Update of /cvs-repository/Zope3/src/zope/tal
In directory cvs.zope.org:/tmp/cvs-serv25593

Modified Files:
	talinterpreter.py 
Log Message:
Fixed a bug in handling of attribute translations when no translation
is available.


=== Zope3/src/zope/tal/talinterpreter.py 1.5 => 1.6 ===
--- Zope3/src/zope/tal/talinterpreter.py:1.5	Tue Mar 25 15:21:29 2003
+++ Zope3/src/zope/tal/talinterpreter.py	Fri Mar 28 11:57:34 2003
@@ -336,7 +336,9 @@
                     value = evalue
         if ok:
             if msgid:
-                value = self.i18n_attribute(value)
+                translated = self.i18n_attribute(value)
+                if translated is not None:
+                    value = translated
             if value is None:
                 value = name
             value = "%s=%s" % (name, quote(value))