Add details to the i18n documentation for translation of model classes (relations and methods)
|Reported by:||maxime.petazzoni@…||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
While working on the internationalization of a Django application recently, I had a hard time finding how to translate a few things used in model classes : relations and model methods, when used for columns or fields in the Django admin site.
I finally found the solutions from some random code snippet on the web, but I think this really belongs to Django's excellent documentation, so you'll find attached a patch to add a few details on how this is done.
I know there's an i18n documentation refactoring going on in #10260. If my patch needs to be reworked on top of that refactoring once it's checked in, please let me know.
Change History (7)
Changed 5 years ago by maxime.petazzoni@…
comment:1 Changed 5 years ago by maxime.petazzoni@…
- Summary changed from Add details to the 18n documentation for translation of model classes to Add details to the i18n documentation for translation of model classes (relations and methods)
comment:2 Changed 5 years ago by russellm
- milestone set to 1.2
- Patch needs improvement set
- Triage Stage changed from Unreviewed to Accepted