0

我拼命想让它工作,但我没有运气。我检查了这个主题,但似乎他没有正确填写 msgstr,我做到了!

{% trans "string" %} 不适用于模板,但 {% trans variable %} 可以

我在做 - django-admin makemessages -l en-us - django-admin compilemessages

#: templates/dashboard.html:8 templates/dashboard.html.py:10
msgid "test"
msgstr "test test"

#: templates/dashboard.html:11
msgid "customers"
msgstr "xxxxxxxxxx"

提前致谢

4

0 回答 0