Bug #72118 [Fbk->NoF]: Not respecting accept language header
| From: | php-bugs at lists dot php dot net | Date: | Sun, 04 Sep 2016 04:22:25 +0000 |
| Subject: | Bug #72118 [Fbk->NoF]: Not respecting accept language header | ||
| References: | 1 | Groups: | php.webmaster |
| Request: | Send a blank email to php-webmaster+get-25109@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
Updated by: php-bugs@lists.php.net
Reported by: php at alper dot nl
Summary: Not respecting accept language header
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: Website problem
PHP Version: Irrelevant
Assigned To: cmb
Private report: N
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2016-08-26 18:29:14] cmb@php.net
> Please just automatically give me the request language with the
> highest ranking.
That is what happens on your first visit. Just delete the php.net
cookies and go to <http://php.net/manual/function.fgets.php>,
for
instance. You will immediately be redirected to
<http://php.net/manual/en/function.fgets.php>
and this page sets
the LAST_LANG cookie.
Of course, if you request
<http://php.net/manual/de/function.fgets.php>,
you get the German
page, because you have explicitly requested that.
Note that there is also <http://php.net/my.php>, where you
can
explicitly override the Accept-Language detection.
> [â¦] is the extremely short lifespan of your last_lang cookie,
> only a day.
Well, for me it has an experation date one _year_ in the future.
Please post the relevant Set-Cookie header field value that you
receive.
------------------------------------------------------------------------
[2016-08-24 09:15:13] james dot antrim at nm dot thm dot de
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.
------------------------------------------------------------------------
[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