#15908: Mention proper i18n approach in documentation for "pluralize" filter ---------------------------+------------------------------- Reporter: wbolster | Owner: nobody Type: Uncategorized | Status: new Milestone: | Component: Documentation Version: 1.3 | Severity: Normal Keywords: | Triage Stage: Unreviewed Has patch: 0 | Easy pickings: 0 ---------------------------+------------------------------- The {{{|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? -- Ticket URL: <http://code.djangoproject.com/ticket/15908> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.