Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

[1.2.X] Fixed #13961 - note that reverse URL lookups can't be done wi…

…thin a blocktrans tag. Thanks garrison for the report and richardb and zerok for work on the patch.

Backport of r15100 from trunk.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 6ace3a9 commit 235f29fa374d5b1aa6eaa4aa48a30f40bfbe5957 @timgraham timgraham committed
Showing with 8 additions and 0 deletions.
  1. +8 −0 docs/topics/i18n/internationalization.txt
8 docs/topics/i18n/internationalization.txt
@@ -417,6 +417,14 @@ construct is internally converted to an ``ungettext`` call. This means the
same :ref:`notes regarding ungettext variables <pluralization-var-notes>`
+Reverse URL lookups cannot be carried out within the ``blocktrans`` and should
+be retrieved (and stored) beforehand::
+ {% url arg arg2 as the_url %}
+ {% blocktrans %}
+ This is a URL: {{ the_url }}
+ {% endblocktrans %}
.. _template-translation-vars:
Other tags

0 comments on commit 235f29f

Please sign in to comment.
Something went wrong with that request. Please try again.