Debian Codegraph @

testing/testapp/templates/i18n_test.jinja

raw
1 {% trans bar=foo %}
2 Foo {{ bar }}
3 {% endtrans %}
4
5 {{ _(v_index) }}
6 <th>{{ table_sort('date_start', _('Year')) }}</th>
7
8 <p>{% trans %}1 Hello {{ user }}!{% endtrans %}</p>
9
10 <p>{% trans user=user.username %}2 Hello {{ user }}!{% endtrans %}</p>
11
12 <p>
13 {% trans notrimmed book_title=book.title, author=author.name %}
14 3 This is {{ book_title }} by {{ author }}
15 {% endtrans %}
16 </p>
17
18 <p>
19 {% trans count=list|length %}
20 4 There is {{ count }} {{ name }} object.
21 {% pluralize %}
22 4 There are {{ count }} {{ name }} objects.
23 {% endtrans %}
24 </p>
25
26 <p>{{ _('5 Hello World!') }}</p>
27
28 {# couldnt get this one to work..#}
29 <p>{# _('6 Hello, %(user)s!6)|format(user=user.username) #}</p>
30
31 <p>
32 {% trans %}
33 #{{ invoice_count }} invoice
34 {% pluralize %}
35 #{{ invoice_count }} invoices
36 {% endtrans %}
37 </p>
38
39 </p>
40 {% trans trimmed %}
41 #{{ trimmed_invoice_count }} trimmed invoice
42 {% pluralize %}
43 #{{ trimmed_invoice_count }} trimmed invoices
44 {% endtrans %}
45 </p>