|
Posted by No_One on 03/19/06 05:05
On 2006-03-18, J.O. Aho <user@example.net> wrote:
> No_One wrote:
>>
>> OK, now it gets strange...this only happens in Opera for Linux ver 8.52
>
> Not all browsers do use this variable and I think you can even turn it off in
> Mozilla. You should check that the variable has been set, if so then take the
> value from global or else set a default value, think this code works (PHP4.1+)
>
> if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
> $opts['language']=$_SERVER['HTTP_ACCEPT_LANGUAGE'];
> } else {
> $opts['language']="en";
> }
>
> When it comes to Opera 8.52 for Linux x86 and Sparc (not tested on PPC as
> don't have it installed on that machine), the language header is set, so it's
> more likely your Opera settings where this is disabled somehow.
Thanks for the info and the code...the help is appreciated.
ken
[Back to original message]
|