[Zope3-checkins] CVS: Zope3/src/zope/tal - talgenerator.py:1.9.4.2

Stephan Richter srichter at cosmos.phy.tufts.edu
Fri Aug 8 15:54:57 EDT 2003


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

Modified Files:
      Tag: srichter-i18n-macro-interaction-branch
	talgenerator.py 
Log Message:
Checkpoint for Fred.


=== Zope3/src/zope/tal/talgenerator.py 1.9.4.1 => 1.9.4.2 ===
--- Zope3/src/zope/tal/talgenerator.py:1.9.4.1	Fri Aug  8 12:56:09 2003
+++ Zope3/src/zope/tal/talgenerator.py	Fri Aug  8 14:54:22 2003
@@ -519,6 +519,11 @@
         varname = i18ndict.get('name')
         i18ndata = i18ndict.get('data')
 
+
+        if msgid == "" and varname and not (content or replace):
+            raise I18NError("it does not make sense to use i18n:translate "
+                            "and i18n:name in the same tag.", position)
+
         if i18ndata and not msgid:
             raise I18NError("i18n:data must be accompanied by i18n:translate",
                             position)




More information about the Zope3-Checkins mailing list