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

apps/votes/views: use gettext_lazy instead of gettext to fix tests #4689

Merged
merged 2 commits into from
Nov 18, 2022

Conversation

Rineee
Copy link
Contributor

@Rineee Rineee commented Nov 15, 2022

Without the laziness :), the translation.override does not work.. https://docs.djangoproject.com/en/4.1/topics/i18n/translation/#lazy-translation

@goapunk
Copy link
Contributor

goapunk commented Nov 15, 2022

@Rineee tests are still failing

@Rineee
Copy link
Contributor Author

Rineee commented Nov 16, 2022

@Rineee tests are still failing

Wtf, before they were only failing locally and now they are only failing in the ci?

@Rineee
Copy link
Contributor Author

Rineee commented Nov 16, 2022

@Rineee tests are still failing

Wtf, before they were only failing locally and now they are only failing in the ci?

Ok, so in the export we need to use gettext, so I moved it to its own file now 🤷‍♀️

Copy link
Contributor

@fuzzylogic2000 fuzzylogic2000 left a comment

Choose a reason for hiding this comment

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

Cool!
You could also only import one of these as _ and use the other one just with it's name. But this is also fine!

@fuzzylogic2000 fuzzylogic2000 merged commit 0914441 into main Nov 18, 2022
@fuzzylogic2000 fuzzylogic2000 deleted the ks-2022-11-fix-local-tests branch November 18, 2022 09:19
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.

3 participants