[Templates] Getting the language of the browser

[prev] [thread] [next] [Date index for 2004/12/24]

From: Octavian Rasnita
Subject: [Templates] Getting the language of the browser
Date: 13:08 on 24 Dec 2004
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

Re: [Templates] Getting the language of the browser
David Hodgkinson 15:53 on 26 Dec 2004

Re: [Templates] Getting the language of the browser
Octavian Rasnita 16:14 on 26 Dec 2004

Re: [Templates] Getting the language of the browser
David Hodgkinson 16:17 on 26 Dec 2004

Re: [Templates] Getting the language of the browser
Octavian Rasnita 18:24 on 26 Dec 2004

Generated at 08:55 on 15 Mar 2005 by mariachi v0.52