[Zope] Re: InternationalObjects-0.4

Tim McLaughlin tim@iterationzero.com
Fri, 12 Oct 2001 07:14:56 -0400

B=FClent Aldemir wrote:
> hi tim,
> do you have a small example for your
> product?
> thank you
> buelent

Make a DTML Document with the following DTML:

<dtml-var standard_html_header>
<dtml-var content>
<dtml-var standard_html_footer>

and add properties:

en__content: text    =3D  This is some English content.
fr__content: text    =3D  C'est le content francais.

Now view the document with your browser set to english and then set to
french.  Pretty neat, eh?  You can also set a cookie called 'language'
to the appropriate code.

This assumes that 'fr' and 'en' are in the available languages list in
__init__.py (which they are by default).


Tim McLaughlin
iterationZERO - www.iterationzero.com