I'm using $_SERVER["HTTP_ACCEPT_LANGUAGE"]
to detect the browser language, which works fine for Firefox and IE:
Firefox:
de,en-us;q=0.9,en;q=0.7,ru;q=0.6,ro;q=0.4,hu;q=0.3,zh;q=0.1
Internet Explorer:
de
Unfortunately, it doesn't work for the following browsers:
Opera:
en,en-US;q=0.9,ja;q=0.8,fr;q=0.7,de;q=0.6,es;q=0.5,it;q=0.4,pt;q=0.3,pt-PT;q=0.2,nl;q=0.1,sv;q=0.1,nb;q=0.1,da;q=0.1,fi;q=0.1,ru;q=0.1,pl;q=0.1,zh-CN;q=0.1,zh-TW;q=0.1,ko;q=0.1
Safari:
en-us
Chrome:
en-US,en;q=0.8
I don't see any fields in the phpinfo
output which would be helpful. Please let me know if you have any suggestions. Many thanks!