[Zope] Re: Keep track of language.

Tino Wildenhain tino@wildenhain.de
Fri, 09 Mar 2001 20:20:57 +0100


Hi Pattreeya,

Pattreeya Tanisaro wrote:
> 
> Hallo all,
>         i would like to create a homepage which have two languages. If I put the
> language flags in the menu, how can I keep track the language and check which
> language is selected?
> 
consider using the browsers preferences for this. The browser sends
a accept-language: header which should be used with proper checking.
This way a user is not forced to switch it on every page.

You can learn more about this technic on http://www.apache.org
(mod_negotiation)
And of cource if you read http://www.faqs.org  - rfc2616.

If like to try, I've written a simple (not most elegant for all
solutions but perfectly fitting for small pages and tests) 
vary-tag  ( http://www.zope.org/Members/tino/VaryTag_release )

HTH
Tino Wildenhain