Author: timo Date: 2010-12-29 08:19:38 -0600 (Wed, 29 Dec 2010) New Revision: 15100
Modified: django/trunk/docs/topics/i18n/internationalization.txt Log: 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. Modified: django/trunk/docs/topics/i18n/internationalization.txt =================================================================== --- django/trunk/docs/topics/i18n/internationalization.txt 2010-12-29 13:59:51 UTC (rev 15099) +++ django/trunk/docs/topics/i18n/internationalization.txt 2010-12-29 14:19:38 UTC (rev 15100) @@ -500,6 +500,14 @@ .. 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 -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.