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

Better language detection and validation #58

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

johannes85
Copy link

Correct me if i'm wrong but shouldn't the hl parameter in the cookie and request be validatet against the available locales ?

And i also extended the browser language detechtion by splitting the language from the country if both are set.

Extended browser language detection by separating the language from the country.
@schmittjoh
Copy link
Owner

Sounds good.

Could you please add tests, and also check the CS of your patch?

@johannes85
Copy link
Author

At the moment i haven't the time i try to squeeze this in sometime.

@ajohnstone
Copy link

This should really be merged... Its very broken otherwise. I've started to fix a couple of the other unit tests, however a number more need to be fixed up.

@ASKozienko
Copy link

+1 but patch looks not so good :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants