Fixed #15908 -- Mention blocktrans in the pluralize filter documentation section. Thanks, Julien Phalip.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16414 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jannis Leidel 2011-06-16 16:34:20 +00:00
parent aad6f21b29
commit 44b03484ec
2 changed files with 4 additions and 0 deletions

View File

@ -1794,6 +1794,8 @@ Example::
You have {{ num_cherries }} cherr{{ num_cherries|pluralize:"y,ies" }}.
.. note:: Use :ttag:`blocktrans` to pluralize translated strings.
.. templatefilter:: pprint
pprint

View File

@ -451,6 +451,8 @@ It's not possible to mix a template variable inside a string within ``{% trans
%}``. If your translations require strings with variables (placeholders), use
``{% blocktrans %}`` instead.
.. templatetag:: blocktrans
``blocktrans`` template tag
---------------------------