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 an issue related to the translation of country names #6121

Merged
merged 1 commit into from
Jan 28, 2024

Conversation

javiereguiluz
Copy link
Collaborator

@psihius reported this problem to me. When using a CountryField, you get hundreds of "missing translation" errors. We already pass the country names translated to the form, so there's no need to try to translate them again.

@javiereguiluz javiereguiluz added this to the 4.x milestone Jan 27, 2024
@javiereguiluz javiereguiluz merged commit b736249 into EasyCorp:4.x Jan 28, 2024
11 checks passed
@javiereguiluz javiereguiluz deleted the fix_country_translation branch January 28, 2024 09:32
javiereguiluz added a commit that referenced this pull request Feb 2, 2024
…viereguiluz)

This PR was merged into the 4.x branch.

Discussion
----------

Don't translate form values that are already translated

In #6121 we fixed this problem for countries ... but other form types also pass their values translated to the template, so let's not translate any of them.

Commits
-------

584a7e6 Don't translate form values that are already translated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant