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 translated form labels using current language #108

Merged
merged 2 commits into from
Apr 9, 2024

Conversation

julianwachholz
Copy link
Contributor

Now forms will correctly use the current language's translation for a form label (or verbose name, etc.)

Fixes #87

@RobKuipers
Copy link

RobKuipers commented Mar 13, 2024

Tested; works like a charm. Hope this can be merged and released soon.

Copy link
Member

@jieter jieter left a comment

Choose a reason for hiding this comment

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

Looks good, can you add a test to check behaviour?

@julianwachholz
Copy link
Contributor Author

Thank you for the review @jieter - I've added a thorough test case that shows the proper translated labels being used in a model form.

@jieter jieter merged commit ed61917 into zostera:master Apr 9, 2024
16 checks passed
@jieter
Copy link
Member

jieter commented Apr 9, 2024

Thanks @julianwachholz

@julianwachholz julianwachholz deleted the fix-form-labels branch April 17, 2024 06:33
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.

Translation of form labels in admin is not correct
3 participants