[haiku-bugs] [Haiku] #8970: WebPositive doesn't set http_accept_language header

  • From: "xray7224" <trac@xxxxxxxxxxxx>
  • Date: Mon, 10 Sep 2012 07:19:55 -0000

#8970: WebPositive doesn't set http_accept_language header
--------------------------------------+------------------------------
 Reporter:  xray7224                  |        Owner:  leavengood
     Type:  bug                       |       Status:  new
 Priority:  normal                    |    Milestone:  R1
Component:  Applications/WebPositive  |      Version:  R1/Development
 Keywords:                            |   Blocked By:
 Blocking:                            |  Has a Patch:  0
 Platform:  All                       |
--------------------------------------+------------------------------
 Hey,

 I have noticed that when I changed my locale sites which I know respond to
 this such as google, bbc, (I think wikipedia automatically does it too)
 don't with WebPositive on Haiku. I started playing with PHP to see what
 the browser is sending and while you include the set locale in the user-
 agent the HTTP_ACCEPT_LANGUAGE which lists languages (ranks them in
 priority so you can fall back if you don't have translations for x
 language). The PHP code I used to check this is:

 {{{
 <?php
 var_dump($_SERVER["HTTP_ACCEPT_LANGUAGE"]);
 ?>
 }}}

 You can see when you test it with other browsers it lists the languages
 and I believe most web developers use this to decide what language to
 provide the website in, something important to those who set their locale
 to something other than the default language the website provides.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/8970>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: