Skip to content
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

Accept-Language is not used if country code is not provided #18

Open
chusopr opened this issue Dec 2, 2014 · 0 comments
Open

Accept-Language is not used if country code is not provided #18

chusopr opened this issue Dec 2, 2014 · 0 comments
Assignees
Labels

Comments

@chusopr
Copy link
Owner

chusopr commented Dec 2, 2014

Since setlocale($category, $locale) only works if $locale has country code (xx_XX), an Accept-Language without contry code won't load expected language.

For example, an Accept-Language header like this:

Accept-Language es,de-DE

Will load German when Spanish is expected.

@chusopr chusopr added the Bug label Oct 14, 2020
@chusopr chusopr self-assigned this Oct 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant