Skip to content

Provide explicit, translatable verbose names for all models #13352

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

Closed
jeremystretch opened this issue Aug 2, 2023 · 0 comments
Closed

Provide explicit, translatable verbose names for all models #13352

jeremystretch opened this issue Aug 2, 2023 · 0 comments
Assignees
Labels
status: accepted This issue has been accepted for implementation topic: Internationalization type: housekeeping Changes to the application which do not directly impact the end user

Comments

@jeremystretch
Copy link
Member

jeremystretch commented Aug 2, 2023

Proposed Changes

Define the verbose_name and verbose_name_plural Meta attributes for each model, wrapping them with gettext_lazy() to support translation.

Justification

Enables automatic translation of model names per Django best practices.

@jeremystretch jeremystretch added status: accepted This issue has been accepted for implementation type: housekeeping Changes to the application which do not directly impact the end user topic: Internationalization labels Aug 2, 2023
@jeremystretch jeremystretch self-assigned this Aug 2, 2023
jeremystretch added a commit that referenced this issue Aug 3, 2023
* Update verbose_name & verbose_name_plural Meta attributes on all models

* Alter makemigrations to ignore verbose_name & verbose_name_plural changes
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: accepted This issue has been accepted for implementation topic: Internationalization type: housekeeping Changes to the application which do not directly impact the end user
Projects
None yet
Development

No branches or pull requests

1 participant