Python babel无法识别或获取文本
我的模板中包含以下内容:Python babel无法识别或获取文本,python,flask,python-babel,flask-babel,Python,Flask,Python Babel,Flask Babel,我的模板中包含以下内容: <a class="page-scroll" href="#career">{{ _(Career) }}</a> <a class="page-scroll" href="{{ url_for("comment_new") }}">{{ gettext(Contact) }}</a> <a href="#" data-toggle="dropdown" aria-haspopup="true" aria-expan
<a class="page-scroll" href="#career">{{ _(Career) }}</a>
<a class="page-scroll" href="{{ url_for("comment_new") }}">{{ gettext(Contact) }}</a>
<a href="#" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">{% trans %}Language{% endtrans %}</a>
但不是“职业”或“语言”。我不明白为什么巴贝尔不在jinja中解释\uu
或gettext
。帮忙 啊,事实证明,即使在金贾,我也需要“”。n00b
#: templates/hello.html:91
msgid "Language"
msgstr ""