Monday, 15 March 2010

.htaccess - Http Accept Language Wrong Output From Chrome, German Language (de) -


I have a multilingual website using Htaccess

  # other languages ​​#revritecond% {HTTP: Accept-language} ^ n [nc] #reveritium ^ $ / n [r = 301, l] # germain # rewate conduit% {http: accept-language} ^ d [nc] # royal royal ^ $  

Problem:

I use the German version The latest Chrome browser, by default, sends the following language header :

  Chrome / d = string (71) "en-US, en; q = 0.8, id; q = 0.6, ms; q = 0.4, fr; q = 0.2, de; q = 0.2, es; q = 0.2, D-AT; q = 0.2 "chrome / n = string (71)" n-US, n; q = 0.8, id; q = 0.6, ms; q = 0.4, fr; q = 0.2, de; q = 0.2 Firefox and IE:  
  firefox / d = string (53) ";  

D, N; q = 0.8, N-US; q = 0.7, es; q = 0.5, fr; q = 0.3, d-AT; q = 0.2 "firefox / n = string (53)" n, n-US ; Q = 0.8, D; Q = 0.7, SA; Q = 0.5, FR; Q = 0.3, D-AT; Q = 0.2 "IE / D = string (74)" D, N-GB; Q = 0.9, D-AT; Q = 0.7, D-Day; Q = 0.6, D-Lai; Q = 0.4, D-Lu; Q = 0.3, D-CH; Q = 0.1 "IE / N = string (74)" N-GB, D; Q = 0.9, D-AT; Q = 0.7, D-Day; Q = 0.6, Day-Lai; Q = 0.4, de-LU; Q = 0.3, de-CH; Q = 0.1 "

As you can see, there is a high priority in English, then has anyone got this problem in German?

Try entering "preferences", "languages ​​and input settings" in

Adding German as one of chrome and browser languages.

Different browsers use different algorithms to detect users' favorite language, and then with them For example, English and German locale may be installed in the computer, but users go to Chrome's English interface and on most English websites. - Chrome can give English a high priority even if the user is German or computer is in Germany.

Detecting the language of users There is no 100% accurate method, but one might assume that if acceptable-language header lists English as one of the top languages ​​- this user knows a level well on the language so that it switches Be able to later be able to language. In essence, Chrome is the reason for the belief that you understand N-US.


No comments:

Post a Comment