5 Jan
2003
5 Jan
'03
11:27 a.m.
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