[Templates] Getting the language of the browser
[prev]
[thread]
[next]
[Date index for 2004/12/24]
Hi,
Does Template-Toolkit have a method of getting the list of languages
preffered by the browser in order to be able to serve the content in one of
those languages?
I would like to check if the first prefered language is available on my site
and if it is not, try the second and so on, until I find the prefered
language for which I have a content translation, or if I don't have for any
of those languages, use a default language.
I have done a script that does something like this, but I would like to know
if there is a better done way.
Thank you.
Teddy
_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates
 |
[Templates] Getting the language of the browser
Octavian Rasnita 13:08 on 24 Dec 2004
|