0

I have the following in my template:

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

When I run pybabel extract -F babel.cfg -o messages.pot .

I am only seeing:

#: templates/hello.html:91 msgid "Language" msgstr "" 

but not "Career" or "Language". I can't figure out why babel is not interpreting _ or gettext in jinja. Help?

1 Answer 1

1

ah turns out I need "" even in jinja. n00b!

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.