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

Let zope.i18n do language negotiation for our translate function #382

Merged
merged 1 commit into from
Aug 20, 2017

Conversation

mauritsvanrees
Copy link
Sponsor Member

Our get_current_translation does not always give the correct one, especially with combined languages:
nl-be (Belgian/Flemish) should fall back to nl (Dutch). zope.i18n does that correctly.

The correct negotiated language can also differ per translation domain, which we do not account for.

I tried adding tests, but I could not get them to work and test anything useful.

Fixes #379.

…unction.

Our ``get_current_translation`` does not always give the correct one, especially with combined languages:
``nl-be`` (Belgian/Flemish) should fall back to ``nl`` (Dutch).
The correct negotiated language can also differ per translation domain, which we do not account for.
``zope.i18n`` does that better.

Fixes #379.
@gforcada gforcada merged commit 88cc536 into master Aug 20, 2017
@gforcada gforcada deleted the issue-379-translate-negotiate branch August 20, 2017 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants