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.