Bug #72118 [Com]: Not respecting accept language header
| From: | james dot antrim at nm dot thm dot de | Date: | Wed, 24 Aug 2016 09:15:19 +0000 |
| Subject: | Bug #72118 [Com]: Not respecting accept language header | ||
| References: | 1 | Groups: | php.webmaster |
| Request: | Send a blank email to php-webmaster+get-25080@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=72118&edit=1
ID: 72118
Comment by: james dot antrim at nm dot thm dot de
Reported by: php at alper dot nl
Summary: Not respecting accept language header
Status: Open
Type: Bug
Package: Website problem
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
This is actually two issues mirrored by the author's two bullet points.
The first is the more important and would, for most users, preempt the second issue. My
Accept-Language header looks like this.
Accept-Language:en-US,en;q=0.8,de-DE;q=0.6,de;q=0.4
Yes, I can read German. No, I would rather not. Please just automatically give me the request
language with the highest ranking.
The second issue, which would almost be superfluous if you would fix the first, is the extremely
short lifespan of your last_lang cookie, only a day. This lifespan only helps those that are
actively developing on or for the site, since most users only use the site as the reference work it
is intended to be and are much more infrequently here.
Previous Comments:
------------------------------------------------------------------------
[2016-04-28 10:18:12] php at alper dot nl
Description:
------------
I regularly come to php.net for documentation. More often than not I get the German language version
of the pages.
This is incorrect because:
- In my preferences English is the first language for webpage content.
- I change the language to English but the next time I receive German documentation again.
This is a significant usability error and it is weird that something as fundamental as the
Accept-Language header could be broken here.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=72118&edit=1