只有"trans"的选项是"noop","上下文"xxx""和"as VAR"



在我的模板中包含{% i18n %}我收到这个错误:

Only options for 'trans' are 'noop', 'context "xxx"', and 'as VAR'.

我的模板的这一行:

title="{% trans site_title = settings.APP_SHORT_NAME %}RSS feed from {{ site_title }}{% endtrans %}"

可能应该是:

title="{% blocktrans with site_title = settings.APP_SHORT_NAME %}RSS feed from {{ site_title }}{% endblocktrans %}"

相关内容

最新更新