{% blocktranslate %}This string will have {{ value }} inside.{% endblocktranslate %} {% blocktranslate with amount=article.price %} That will cost $ {{ amount }}. {% endblocktranslate %} {% blocktranslate with book_t=book|title author_t=author|title %} This is {{ book_t }} by {{ author_t }} {% endblocktranslate %} {% blocktranslate count counter=list|length %} There is {{ counter }} {{ name }} object. {% plural %} There are {{ counter }} {{ name }} objects. {% endblocktranslate %} {% blocktranslate with amount=article.price count years=i.length %} That will cost $ {{ amount }} per year. {% plural %} That will cost $ {{ amount }} per {{ years }} years. {% endblocktranslate %} {% blocktranslate asvar the_title %}The title is {{ title }}.{% endblocktranslate %} {% blocktranslate with name=user.username context "greeting" %}Hi {{ name }}{% endblocktranslate %} {% blocktranslate context "month name" %}May{% endblocktranslate %} {% blocktranslate context message_context %}May{% endblocktranslate %} {% blocktranslate count number=1 context "super search" %} {{ number }} super result {% plural %} {{ number }} super results {% endblocktranslate %} {% blocktranslate count number as counter %} {{ counter }} result {% plural %} {{ counter }} results {% endblocktranslate %} {% blocktranslate with anton as a and berta as b %}{{ a }} + {{ b }}{% endblocktranslate %} {% blocktrans %}Some text{% endblocktrans %} {%- blocktranslate %}Some text{% endblocktranslate %} {% if show %} {% blocktranslate %}Nested text{% endblocktranslate %} {% endif %}
{% blocktranslate %} With leading and trailing whitespace. {% endblocktranslate %}
{% blocktranslate %} Nested indentation problem. {% endblocktranslate %}