6

Is it possible to put some HTML tag inside this Django block: {% blocktrans %}{% endblocktrans %}?

For example:

{% blocktrans %}Django<br>framework needed{% endblocktrans %} 
Balázs Szántó
  • 1,440
  • 3
  • 15
  • 29

2 Answers2

10

Certainly, sometimes you even have to use blocktrans template tag actually.

Check:

Community
  • 1
  • 1
Hieu Nguyen
  • 8,563
  • 2
  • 36
  • 43
7

From the docs:

HTML markup, however, is common enough that it's probably ok to use in translatable strings. But please bear in mind that the GNU gettext tools don't verify that the translations are well-formed HTML.

dan-klasson
  • 13,734
  • 14
  • 63
  • 101