Error with {% trans%} in django template

0

I have a django template that I want to translate a value that is variable, because it is inside a for.

The line is as follows: {{item.title}} I want to translate what is inside that variable of the template.

What I did was {{{% trans 'item.title'%}}} and then in the django.po file the following:

#: templates/tittle.html:10 (línea en la que se encuentra la variable a traducir)
msgid "Titulo"
msgstr "Tittle"

#: templates/tittle.html:10
msgid "Titulo2"
msgstr "Tittle2"

And so for all the case of for. This does not work for me So I ask what I'm doing wrong, or if there is some other way to do it.

Thank you very much in advance.

    
asked by Esther 22.08.2018 в 10:12
source

0 answers