On Sat, 31 May 2008 17:45:35 +0200, <plenty900@yahoo.comwrote:
Quote:
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.
(dropped alt.html, newsserver doesn't carry it).
--
Rik Wasmus
....spamrun finished