Posted by Rik on 07/25/07 12:54
On Wed, 25 Jul 2007 14:51:29 +0200, Sergei Riaguzov <hello@world.com>
wrote:
> On Wed, 25 Jul 2007 10:59:21 +0000, Sjoerd wrote:
>
>>> How can I get language of the system where PHP is installed in RFC1766
>>> convention from PHP?
>> setlocale()
> Hmm it appears that I've asked the wrong question. Now I realize that
> what I really want is a client's browser locale. For example
> general.useragent.locale setting in Firefox. Can I get this RFC1766 from
> user's browser in PHP somehow without using Javascript?
The only thing I know about that hat makes sense to use is the
HTTP_ACCEPT_LANGUAGE header in the request, which may or may not be sent.
--
Rik Wasmus
[Back to original message]
|