Code

Ticket #13961: 13961.diff

File 13961.diff, 647 bytes (added by richardb, 4 years ago)

Patch for i18n documentation.

Line 
1Index: docs/topics/i18n/internationalization.txt
2===================================================================
3--- docs/topics/i18n/internationalization.txt   (revision 13444)
4+++ docs/topics/i18n/internationalization.txt   (working copy)
5@@ -421,6 +421,14 @@
6 same :ref:`notes regarding ungettext variables <pluralization-var-notes>`
7 apply.
8 
9+Reverse url lookups cannot be carried out within the ``blocktrans`` and should
10+be retrieved (and stored) beforehand::
11+
12+    {% url path.to.view arg arg2 as the_url %}
13+    {% blocktrans %}
14+    This is a url: {{ the_url }}
15+    {% endblocktrans %}
16+       
17 .. _template-translation-vars:
18 
19 Other tags