Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #15908 -- Mention blocktrans in the pluralize filter documentat…

…ion section. Thanks, Julien Phalip.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16414 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 44b03484ec0ec8843d34becbce1d4f0649066627 1 parent aad6f21
Jannis Leidel jezdez authored
2  docs/ref/templates/builtins.txt
View
@@ -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
2  docs/topics/i18n/internationalization.txt
View
@@ -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
---------------------------
Please sign in to comment.
Something went wrong with that request. Please try again.