[Zope] Re: InternationalObjects-0.4

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


B=FClent Aldemir wrote:
>=20
> hi tim,
>=20
> do you have a small example for your
>=20
> product?
>=20
> thank you
>=20
> 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).

Cheers,
Tim

--=20
Tim McLaughlin
iterationZERO - www.iterationzero.com
703.481.2233