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

Fix like/dislike inline popup text translations for composed language… #22

Merged
merged 1 commit into from
Jul 10, 2018

Conversation

fredvd
Copy link
Member

@fredvd fredvd commented Jun 15, 2018

… domains like nl-be.

Don't try to figure out the preferred_language, but pass the request as the translation context to the translate function.

@@ -96,16 +96,14 @@ def __call__(self, REQUEST, RESPONSE):

# Create handy translate function
translate = self._get_translator()
ltool = getToolByName(self, 'portal_languages')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you forgot to remove the import of getToolByName at the top of this file.

… domains like nl-be.

Don't try to figure out the preferred_language, but pass the request as the translation context to the translate function.
@fredvd fredvd force-pushed the fix_popup_translation_function branch from dc21220 to 740f298 Compare June 15, 2018 14:29
@coveralls
Copy link

coveralls commented Jun 15, 2018

Coverage Status

Coverage remained the same at ?% when pulling 740f298 on fix_popup_translation_function into ea994c3 on master.

@fredvd fredvd merged commit 2179e20 into master Jul 10, 2018
@hvelarde hvelarde deleted the fix_popup_translation_function branch July 11, 2018 14:43
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.

None yet

3 participants