[Zope-CMF] How to translate CMF, first summary

Juan David Ibáñez Palomar palomar@sg.uji.es
Tue, 3 Jul 2001 09:50:02 +0200 (METDST)


> 
> We even put the ZBabel translation engine into the var tag. The only problem
> with that was that virtually everything was translated, sometimes a couple
> of times, as <dtml-var> might call methods that call methods etc. ZBabel
> even started translating its variables, which leads to recursion problems.
> But the code is there, and the only thing needed to make it really cool
> would be adding some additional attribute like this:
> 
> <dtml-var variablename translate>
> 
> But such a syntax is not any better than using ZBabel's own tags as long as
> the syntax is not officially accepted. It would break all existing code when
> it is used with a Zope instance that does not have ZBabel installed.
> 
> Joachim
> 

Most Zope solutions that provide i18n support to Zope are DTML centric,
usually with their own tags.
 
This is one advantage of the Localizer, it allows to translate DTML, ZPT,
Python and probably everything able to live in Zope.


jdavid
gettext advocate :)