Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #13961 - note that reverse URL lookups can't be done within a b…

…locktrans tag. Thanks garrison for the report and richardb and zerok for work on the patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15100 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit aa1b537b118fbc0417b990f61bff2850ca6cad1c 1 parent ca292f1
@timgraham timgraham authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 docs/topics/i18n/internationalization.txt
View
8 docs/topics/i18n/internationalization.txt
@@ -500,6 +500,14 @@ apply.
.. note:: The previous more verbose format is still supported:
``{% blocktrans with book|title as book_t and author|title as author_t %}``
+Reverse URL lookups cannot be carried out within the ``blocktrans`` and should
+be retrieved (and stored) beforehand::
+
+ {% url path.to.view arg arg2 as the_url %}
+ {% blocktrans %}
+ This is a URL: {{ the_url }}
+ {% endblocktrans %}
+
.. _template-translation-vars:
Other tags
Please sign in to comment.
Something went wrong with that request. Please try again.