Django

Code

Ticket #2347 (closed: fixed)

Opened 2 years ago

Last modified 2 years ago

[patch] document the use of multiple template expressions for the {% blocktrans %} tag

Reported by: Gary Wilson <gary.wilson@gmail.com> Assigned to: jacob
Milestone: Component: Documentation
Version: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

To translate multiple template expressions, separate them with the word ``and``::

    {% blocktrans with book_name|title as book and author_name|title as author %}
    This is {{ book }} by {{ author }}.
    {% endblocktrans %}

Attachments

i18n.txt.diff (0.6 kB) - added by Gary Wilson <gary.wilson@gmail.com> on 07/13/06 11:21:19.

Change History

07/13/06 11:21:19 changed by Gary Wilson <gary.wilson@gmail.com>

  • attachment i18n.txt.diff added.

07/13/06 21:57:10 changed by mtredinnick

  • status changed from new to closed.
  • resolution set to fixed.

(In [3345]) Fixed #2347 -- documented the use of "and" in the blocktrans template tag.


Add/Change #2347 ([patch] document the use of multiple template expressions for the {% blocktrans %} tag)




Change Properties
Action