New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accepted browser language cannot be correctly detected #5301
Comments
look m* u might think you know everything but when it comes to open source and having the language system working on as many system as possible it does not work so well! the current system is fine and has been working fine for many years! now stop trying to post changes that will cause issues for many users! when u post these suggestion you have done zero testing! and expect me just to implement it!~ u make a suggestion i want to see tests and videos of it working across multiple browsers! |
i dont why u even posted this crap as an issue! wasting my time |
I have done tests, the I have already posted. Just check out these: https://forum.opencart.com/viewtopic.php?f=161&t=113954 |
it IS and WILL work only for the first language in if you want to serve and use one and the only language for the site, or use as the only "primary" language, as most of the Opencart users - then it's not a problem and the site will work well. Just read my code, read the forum, and read the wiki. As I told - you will not have problems, if your site "default" language is set to |
Hello. |
Modern browsers uses additional priority weight value in a header.
In a result,
startup.php
will not detect browser language correctly:e.g.
https://github.com/opencart/opencart/blob/master/upload/catalog/controller/startup/startup.php#L57
will return:
in a result,
in_array
will not return true for any strings withq
parameter.http://stackoverflow.com/questions/6157485/content-language-and-accept-language
https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.4
The text was updated successfully, but these errors were encountered: