[Zope] Re: [Zope-dev] Re: [ZIP] dtml-var syntax revisited

Stephan Richter srichter@cbu.edu
Fri, 24 Mar 2000 02:54:53 -0600


I think a translator should implemented using a flag in dtml-var:

syntax: <dtml-var VARIABLE translate> and <dtml-var VARIABLE 
translate="de"> for example.
Short form: &dtml.translate-VARIABLE;

By default it chooses the root folder's (or even Zope's?) language setting, 
but the programmer can also choose the language. This syntax is very 
similar to the "missing" flag. This way you do not a separate phrasebook 
and word translator. All that is in the background....

Then there is a generic translate product which handles all the translation 
stuff and administrates the languages. One can easily drop languages into 
the product, by installing simply the dictionary for this language into 
some standard location and specifying some admin info.
I think that would be the cleanest way to implement ZIP.

What do you guys think? Comments?

Regards,
Stephan
--
Stephan Richter - (901) 573-3308 - srichter@cbu.edu
CBU - Physics & Chemistry; Framework Web - Web Design & Development
PGP Key: 735E C61E 5C64 F430 4F9C 798E DCA2 07E3 E42B 5391