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:
parent
aad6f21b29
commit
44b03484ec
|
@ -1794,6 +1794,8 @@ Example::
|
||||||
|
|
||||||
You have {{ num_cherries }} cherr{{ num_cherries|pluralize:"y,ies" }}.
|
You have {{ num_cherries }} cherr{{ num_cherries|pluralize:"y,ies" }}.
|
||||||
|
|
||||||
|
.. note:: Use :ttag:`blocktrans` to pluralize translated strings.
|
||||||
|
|
||||||
.. templatefilter:: pprint
|
.. templatefilter:: pprint
|
||||||
|
|
||||||
pprint
|
pprint
|
||||||
|
|
|
@ -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
|
%}``. If your translations require strings with variables (placeholders), use
|
||||||
``{% blocktrans %}`` instead.
|
``{% blocktrans %}`` instead.
|
||||||
|
|
||||||
|
.. templatetag:: blocktrans
|
||||||
|
|
||||||
``blocktrans`` template tag
|
``blocktrans`` template tag
|
||||||
---------------------------
|
---------------------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue