I need to create translations for a Flask application using Babel or Babelex.
Run:
pybabel extract -F babel.cfg -o messages.pot .
...succeeds, creating messages.pot.
In the file messages.pot there are changes:
#: service/menu/Menu.py:53
msgid "A new menu has been successfully saved!"
msgstr "Nové menu bylo úspěšně uloženo!"
Then I create a .po file.
pybabel init -i messages.pot -d translations -l cs
The *.po file content is:
#: service/menu/Menu.py:53
msgid "A new menu has been successfully saved!"
msgstr "Nové menu bylo úspěšně uloženo!"
The translated files are broken, all files are in UTF-8. When I compile *.po file as *.mo file, it's the same.