Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/284.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python babel无法识别或获取文本_Python_Flask_Python Babel_Flask Babel - Fatal编程技术网

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 ""