verbose_name and verbose_name_plural is untranslated on autogenerated m2m models
|Reported by:||Russell Keith-Magee||Owned by:||Ramiro Morales|
|Component:||Database layer (models, ORM)||Version:||master|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
When Django adds an autogenerated m2m model, it uses the literal string "A-B relationship" for the verbose_name. This verbose name is then used by the admin if the m2m model is used in an inline. Because the string isn't marked for translation, the title "A-B relationships" on the inline block and the "Add another A-B relationship" button are not translatable.
r13029 included translation, but for some reason, having a ugettext_lazy() with string interpolated arguments caused the fixtures modeltest to fail.
Change History (6)
comment:4 Changed 5 years ago by
|Owner:||changed from nobody to Ramiro Morales|