Code

Ticket #2347: i18n.txt.diff

File i18n.txt.diff, 652 bytes (added by Gary Wilson <gary.wilson@…>, 8 years ago)
Line 
1Index: docs/i18n.txt
2===================================================================
3--- docs/i18n.txt       (revision 3337)
4+++ docs/i18n.txt       (working copy)
5@@ -224,6 +224,12 @@
6     This will have {{ myvar }} inside.
7     {% endblocktrans %}
8 
9+To translate multiple template expressions, separate them with the word ``and``::
10+
11+    {% blocktrans with book_name|title as book and author_name|title as author %}
12+    This is {{ book }} by {{ author }}.
13+    {% endblocktrans %}
14+
15 To pluralize, specify both the singular and plural forms with the
16 ``{% plural %}`` tag, which appears within ``{% blocktrans %}`` and
17 ``{% endblocktrans %}``. Example::