标签: django
我的信息中心应用{% with sector|idx:1 as variable %} {% trans variable %} {% endwith %}中的django变量中的翻译有效!
{% with sector|idx:1 as variable %} {% trans variable %} {% endwith %}
这次我尝试使用{% with sector|idxPlus1:forloop.counter as variable %} {% trans variable %} {% endwith %},但它不起作用!
{% with sector|idxPlus1:forloop.counter as variable %} {% trans variable %} {% endwith %}
是否有人知道如何使用此类特定变量forloop.counter来解决翻译?
forloop.counter