Specifically:
1) When I give the command "pybabel extract . -F babel.ini -o messages.pot -k trans"
the text identified by {{ trans 'my text here' }} does not show up in the messages.pot file. Surprisingly, the text identified by {% trans 'my text here' %} instead shows up in messages.pot (which I can then edit).
2) When I give the command "pybabel compile -i messages.pot -d _locale -l it -f" the file messages.mo gets created in the project root folder _locale/it/LC_MESSAGES/and it is not empty. However, even if I set LANGUAGE_CODE="it" in settings.py and restart the server, the translation does not show.
In the process, I do not get any error messages.
Several of my "old" apps are multilanguage and I am struggling to convert them into oTree5. Any help is very much appreciated.
Thank you,
Matteo