summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTimo Graham <timograham@gmail.com>2010-12-29 14:23:10 +0000
committerTimo Graham <timograham@gmail.com>2010-12-29 14:23:10 +0000
commit235f29fa374d5b1aa6eaa4aa48a30f40bfbe5957 (patch)
tree974f21cce059621031673e321c4aaec1dc29d380 /docs
parent6ace3a931303565debb6a02702a7faede503964d (diff)
[1.2.X] Fixed #13961 - note that reverse URL lookups can't be done within 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: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15101 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/i18n/internationalization.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/topics/i18n/internationalization.txt b/docs/topics/i18n/internationalization.txt
index b6847ea241..6f3b48b687 100644
--- a/docs/topics/i18n/internationalization.txt
+++ b/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>`
apply.
+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