{% trans bar=foo %} Foo {{ bar }} {% endtrans %} {{ _(v_index) }} {{ table_sort('date_start', _('Year')) }}

{% trans %}1 Hello {{ user }}!{% endtrans %}

{% trans user=user.username %}2 Hello {{ user }}!{% endtrans %}

{% trans notrimmed book_title=book.title, author=author.name %} 3 This is {{ book_title }} by {{ author }} {% endtrans %}

{% trans count=list|length %} 4 There is {{ count }} {{ name }} object. {% pluralize %} 4 There are {{ count }} {{ name }} objects. {% endtrans %}

{{ _('5 Hello World!') }}

{# couldnt get this one to work..#}

{# _('6 Hello, %(user)s!6)|format(user=user.username) #}

{% trans %} #{{ invoice_count }} invoice {% pluralize %} #{{ invoice_count }} invoices {% endtrans %}

{% trans trimmed %} #{{ trimmed_invoice_count }} trimmed invoice {% pluralize %} #{{ trimmed_invoice_count }} trimmed invoices {% endtrans %}