[Zope3-dev] We need a way to define a i18n domain globally

Stephan Richter srichter@cbu.edu
Thu, 13 Jun 2002 07:05:24 -0400


Howdy ya'll, <-- I was too long in the south :-)

I just started playing with the i18n stuff a little. To specify a domain in=
=20
every single translation is plain nuts. Therefore I propose that if someone=
=20
specifies a domain in a tag, then all tags that are contained by the=20
corresponding element are also of this domain.

Examples:

<html i18n:domain=3D"Zope-I18n">
  <body>
      <h1 i18n:translate=3D"">Uses Zope-I18n Domain</h1>
  </body>
</html>

<html i18n:domain=3D"Zope-I18n">
  <body>
      <h1 i18n:translate=3D"">Uses Zope-I18n Domain</h1>

      <p i18n:translate=3D"" i18n:domain=3D"Zope-General">Now it uses the=20
Zope-General domain. So we probably should have a domain stack...</p>
  </body>
</html>

Regards,
Stephan
=2D-=20
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training