![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||||
| |||||
|
|
I've altered the PHP underlying a website to support a few languages other than English, |
|
but the Firefox version that I'm using is of course the English-language one. |
|
When I set the language in the preferences e.g. to French, |
|
the website still thinks the browser is English. |
|
Is there a way to properly change the browser language? |
#3
| |||
| |||
|
|
the website still thinks the browser is English |
#4
| |||
| |||
|
|
Hi folks, I've altered the PHP underlying a website to support a few languages other than English, but the Firefox version that I'm using is of course the English-language one. When I set the language in the preferences e.g. to French, the website still thinks the browser is English. Is there a way to properly change the browser language? Thanks. |
#5
| |||
| |||
|
|
I've altered the PHP underlying a website to support a few languages other than English, but the Firefox version that I'm using is of course the English-language one. When I set the language in the preferences e.g. to French, the website still thinks the browser is English. Is there a way to properly change the browser language? |
#6
| |||
| |||
|
|
On Sat, 31 May 2008 17:45:35 +0200, <plenty900 (AT) yahoo (DOT) com> wrote: I've altered the PHP underlying a website to support a few languages other than English, but the Firefox version that I'm using is of course the English-language one. When I set the language in the preferences e.g. to French, the website still thinks the browser is English. Is there a way to properly change the browser language? Euhm, I never had any trouble checking the Accept-Language header in PHP & altering my preferences with FireFox...? Another language to the top / as prefered was perfectly reflected in that header. If yours doesn't, search for, and possibly file, a bug report. Unless you are mistakingly trying to parse the User-Agent string for language-indications. In which case: don't. Test: 1) English on top, Dutch as second: Accept-Language: en-gb,en;q=0.7,nl;q=0.3 2) German on top, French as second Accept-Language: de,fr;q=0.5 No problems here. I do seem to have an old version (2.0.0.14), can't imagine they broke in further releases though, will check tomorrow with FF3. |
#7
| |||
| |||
|
|
.oO(Rik Wasmus) On Sat, 31 May 2008 17:45:35 +0200, <plenty... (AT) yahoo (DOT) com> wrote: I've altered the PHP underlying a website to support a few languages other than English, but the Firefox version that I'm using is of course the English-language one. When I set the language in the preferences e.g. to French, the website still thinks the browser is English. Is there a way to properly change the browser language? Euhm, I never had any trouble checking the Accept-Language header in PHP& * altering my preferences with FireFox...? Another language to the top / as * prefered was perfectly reflected in that header. If yours doesn't, search * for, and possibly file, a bug report. Unless you are mistakingly trying to * parse the User-Agent string for language-indications. In which case: don't. Test: 1) English on top, Dutch as second: * *Accept-Language: en-gb,en;q=0.7,nl;q=0.3 2) German on top, French as second * *Accept-Language: de,fr;q=0.5 No problems here. I do seem to have an old version (2.0.0.14), can't * imagine they broke in further releases though, will check tomorrow with * FF3. It could also be a bug in his script. If you parse the Accept-Language header, you should also take the quality parameters into account or you might get unexpected results. Micha |
![]() |
| Thread Tools | |
| Display Modes | |
| |