Multi Language support
| From: | Michael J. Pawlowsky | Date: | Mon, 30 Dec 2002 13:41:56 +0000 |
| Subject: | Multi Language support | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-129656@lists.php.net to get a copy of this message | ||
Hello,
I have a multi-lingual site and was wondering if anyone knew of a PHP function to detetct a
browser's preferred laguages.
I know I can parse it in the _SEREVR var [HTTP_ACCEPT_LANGUAGE] => fr, fr-ca;q=0.75,
en-us;q=0.50, en;q=0.25
But I was just wondering if somewhere PHP already had a function. Something like:
var array get_lang();
where array would be:
"fr"=>0.75
"fr-ca"=>0.75
"en-us"=>0.50
"en"=>0.25
Also I'm guessing that q=? is a score of some sort. With highest score being the preferred one?
Mike