Mention proper i18n approach in documentation for "pluralize" filter
|Reported by:||wbolster||Owned by:||gandalfar|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
|pluralize template filter cannot be used to pluralize words in projects using the i18n system, but this is not mentioned in the docs for that filter, i.e. on http://docs.djangoproject.com/en/1.3/ref/templates/builtins/.
The proper way to pluralize strings is to use
django.utils.translation.ungettext() and friends. The docs at http://docs.djangoproject.com/en/dev/topics/i18n/internationalization/#pluralization explain this very well already, so may I suggest to refer to this part of the documentation from the
|pluralize template filter documentation?
Change History (8)
comment:1 Changed 6 years ago by
|Triage Stage:||Unreviewed → Accepted|
|Type:||Uncategorized → Cleanup/optimization|
comment:2 Changed 6 years ago by
|Owner:||changed from nobody to anonymous|
|Status:||new → assigned|