#16298 closed New feature (wontfix)
Gettext by default on generated labels
Reported by: | Vlastimil Zíma | Owned by: | nobody |
---|---|---|---|
Component: | Translations | Version: | 1.3 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
For model and form fields it would be nice to have default labels derived from its names translated.
It is much easier to make extra translations and add them to LOCALE_PATHS or merge them with generated translation than mess up code with extra parameter for every model field and form field.
Change History (3)
follow-up: 3 comment:1 by , 14 years ago
comment:2 by , 14 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Nope, sorry, this is a bad idea.
comment:3 by , 14 years ago
Replying to aaugustin:
If I understand correctly, the idea is to make this definition of
Meta
unnecessary:
One problem is that, if "stuff" and "stuffs" don't appear inMeta
, they will no longer be discovered bymakemessages
.
No only that, mostly I have this problem with form fields such as
class SomeForm(forms.Form): name = forms.CharField(_('Name')) address = forms.CharField(_('Address')) country = forms.CharField(_('Country'))
For me this looks much worse than problem of discovery. Especially when adding extra translations could be done easily in LOCALE_PATHS. Create files with translations for such labels can be easily done by hand and does not have to be generated.
If I understand correctly, the idea is to make this definition of
Meta
unnecessary:One problem is that, if "stuff" and "stuffs" don't appear in
Meta
, they will no longer be discovered bymakemessages
.