I have the following code:
<ul>
{% for item in array %}
<li>{{ item }}</li>
{% endfor %}
</ul>
I want to translate the item
variable, I've tried using the trans
tag like this:
<ul>
{% for item in array %}
<li>{% trans item %}</li>
{% endfor %}
</ul>
But Django complains with a syntax error stating that it was expecting an empty
or an endfor