Edit report at https://bugs.php.net/bug.php?id=72118&edit=1
ID: 72118 Updated by: c...@php.net Reported by: php at alper dot nl Summary: Not respecting accept language header -Status: Open +Status: Feedback Type: Bug Package: Website problem PHP Version: Irrelevant -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: > 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. Previous Comments: ------------------------------------------------------------------------ [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 -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php