Ticket #2347: i18n.txt.diff

File i18n.txt.diff, 652 bytes (added by Gary Wilson <gary.wilson@…>, 18 years ago)
  • docs/i18n.txt

     
    224224    This will have {{ myvar }} inside.
    225225    {% endblocktrans %}
    226226
     227To translate multiple template expressions, separate them with the word ``and``::
     228
     229    {% blocktrans with book_name|title as book and author_name|title as author %}
     230    This is {{ book }} by {{ author }}.
     231    {% endblocktrans %}
     232
    227233To pluralize, specify both the singular and plural forms with the
    228234``{% plural %}`` tag, which appears within ``{% blocktrans %}`` and
    229235``{% endblocktrans %}``. Example::
Back to Top