diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt index 3b650f1f69..2216b6efef 100644 --- a/docs/ref/templates/builtins.txt +++ b/docs/ref/templates/builtins.txt @@ -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 diff --git a/docs/topics/i18n/internationalization.txt b/docs/topics/i18n/internationalization.txt index 559f60fcc5..4850f7e7bc 100644 --- a/docs/topics/i18n/internationalization.txt +++ b/docs/topics/i18n/internationalization.txt @@ -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 ---------------------------