[Zope] Re: Internationalization

Passin, Tom tpassin@mitretek.org
Mon, 6 Jan 2003 13:26:19 -0500


[ beno]

> Okay, so I've got this:
>=20
> <dtml-call expr=3D"REQUEST.get('HTTP_ACCEPT_LANGUAGE')">
>=20
> How do I return the value of the expression to my script?=20

You do not have to call it, REQUEST['HTTP_ACCEPT_LANGUAGE'] IS the
value.  You can pass it like you would any other parameter, or have your
script ask for it directly.  It will be a string like this:

en-us,en;q=3D0.5

> If my language is=20
> *en*, how do I return this to use it in redirecting the=20
> client?=20

Just look up how to do redirects.

Cheers,

Tom P