IMO, if a template an element with both i18n:translate and tal:content
and the value inserted is not a message id, the template's domain will
be used.  This seems like a bad idea.  It can hide failures to provide
message ids because everything ultimately gets a domain.  I'm working on
tools to help people see when text hasn't been internationalized and the
implicit use of of the template's domain makes these tools less useful.

Basically, the domain given in the template source applies to the source
only and shouldn't be used for data coming from elsewhere.

I propose that we should never use the templates domain when inserting data
via tal:content.  Note however, if the tal expression results in the use of the
template's example text, the templates domain should be used.

Thoughts?

Jim

--
Jim Fulton           mailto:[EMAIL PROTECTED]       Python Powered!
CTO                  (540) 361-1714            http://www.python.org
Zope Corporation     http://www.zope.com       http://www.zope.org
_______________________________________________
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )

Reply via email to