views:

91

answers:

2

Hello everyone,

I have a string that I want passed via the "linebreaks" filter.

{% trans "my string"|linebreaks %}

Doesn't work.

Is there another way ?

+1  A: 

filter

Ignacio Vazquez-Abrams
+3  A: 

If you need to filter before translation, you can also use:

{% blocktrans with value|filter as myvar %}
This will have {{ myvar }} inside.
{% endblocktrans %}
Dmitry Shevchenko
The above does not translate "value". It only appears to translate the full string inside the {% blocktrans %}.What I need is a filter applied to the translation's result
Murkin
well so i said, "filter before" :)
Dmitry Shevchenko