[Zope] Re: Internationalization

beno zope@thewebsons.com
Sun, 05 Jan 2003 07:27:45 -0400


At 12:12 PM 1/5/2003 +0100, you wrote:
>beno wrote:
>>Hi;
>>I would like to get the language code from the client's header. I presume 
>>this is done with a REQUEST to get_header, but I've been searching 
>>without luck for the syntax. Got it?
>
>You can get it with something like:
>
>REQUEST.get('HTTP_ACCEPT_LANGUAGE')

Okay, so I've got this:

<dtml-call expr="REQUEST.get('HTTP_ACCEPT_LANGUAGE')">

How do I return the value of the expression to my script? If my language is 
*en*, how do I return this to use it in redirecting the client?
TIA,
beno