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

  • From: "xray7224" <trac@xxxxxxxxxxxx>
  • Date: Mon, 10 Sep 2012 09:45:06 -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
 Resolution:                            |   Keywords:
 Blocked By:                            |   Blocking:
Has a Patch:  0                         |   Platform:  All
----------------------------------------+----------------------------

Comment (by xray7224):

 Erm it is there but I don't think many websites (such as google) work from
 that they typically go off the http-accept-language header most browsers
 have something like (output from
 var_dump($_SERVER["HTTP_ACCEPT_LANGUAGE"]) (PHP)):

 from elinks
 {{{
 String(11) "en, *;q=0.1"
 }}}

 from BeZillaBrowser
 {{{
 string(14) "en-us,en;q=0.5"
 }}}

 from Firefox 15.0 on linux
 {{{
 string(14) "en-us,en;q=0.5"
 }}}

 from Chromium 18.0.1025.151
 {{{
 string(26) "en-GB,en-US;q=0.8,en;q=0.6"
 }}}

 And finally from WebPositive 1.1 running on haiku hrev44584
 {{{
 NULL
 }}}
 (NULL in PHP means it's not set, so websites typically are not picking up
 on it as I believe most and the sites i've implemented use this to tell it
 what language to use)

 Erm I think i forgot to remove the while (re-worded what I was trying to
 say) sorry. Basically it'd be nice if when you change your locale settings
 in haiku this header changed so websites are translated into the language
 of choice.

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

Other related posts: