Fixed #16717 -- Added ability to store result of trans template tag in context variable.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16712 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jannis Leidel 2011-08-30 12:09:45 +00:00
parent 5ed2cf03bb
commit 3256862f5f
4 changed files with 57 additions and 10 deletions

View file

@ -283,6 +283,10 @@ Django 1.4 also includes several smaller improvements worth noting:
about :ref:`the 403 (HTTP Forbidden) view<http_forbidden_view>` for more
information.
* The :ttag:`trans` template tag now takes an optional ``as`` argument to
be able to retrieve a translation string without displaying it but setting
a template context variable instead.
.. _backwards-incompatible-changes-1.4:
Backwards incompatible changes in 1.4