Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP - How to test $_SERVER['HTTP_ACCEPT_LANGUAGE']

Tags:

php

I have a function that can be used to redirect the user to different web pages based on the settings of $_SERVER['HTTP_ACCEPT_LANGUAGE'].

However, I cannot find a method with Firefox to test this code.

Firefox 3.6.8
Tools/Options/Advanced/Fonts
Fonts for // changed this part
Default Character Encoding // changed this part

However, the return results from $_SERVER['HTTP_ACCEPT_LANGUAGE'] is always as follows:

HTTP_ACCEPT_LANGUAGE: en-us,en;q=0.5

Anyone here knows what I should do?

Thank you

like image 397
q0987 Avatar asked Dec 13 '25 19:12

q0987


1 Answers

Tools -> Options -> Content -> Languages.
You will see a list of languages. The higher the language is in the list, the higher priority it has.

like image 53
rhino Avatar answered Dec 15 '25 08:12

rhino



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!