[mod_python] Language selection

Wouter van Marle wouter at squirrel-systems.com
Mon May 22 09:07:34 EDT 2006


Hi all,

I know it's possible through the http request for browsers to indicate
preference for a language.
Can anyone explain how that works? Or are there code snippets available
for mod_python?

My website now supports four languages (English, Dutch, Chinese
Simplified, Chinese Traditional), defaulting to English. If the user
wants another language, they have to select it manually. It'd be nice if
I can detect there preference and default to that.

Wouter.



More information about the Mod_python mailing list