i12e/htmx
Peter J. Holzer ea2a984d24 Confirm email addresses 2022-03-28 00:33:37 +02:00
..
static Add htmx version 2022-03-21 00:08:20 +01:00
templates Confirm email addresses 2022-03-28 00:33:37 +02:00
translations/de/LC_MESSAGES Confirm email addresses 2022-03-28 00:33:37 +02:00
README.md Add htmx version 2022-03-21 00:08:20 +01:00
app.py Confirm email addresses 2022-03-28 00:33:37 +02:00
babel.cfg Add htmx version 2022-03-21 00:08:20 +01:00
messages.pot Confirm email addresses 2022-03-28 00:33:37 +02:00
requirements.txt Add psycopg2-binary to requirements 2022-03-27 20:59:27 +02:00
wsgi.py Add wsgi.py for Apache 2022-03-27 20:59:51 +02:00

README.md

This is a demo project for htmx, flask and babel, so this readme contains mostly random notes about its construction and maintenance.

Localization

I followed the tutorial at https://phrase.com/blog/posts/python-localization-flask-applications/

To extract messages, use

pybabel extract -F babel.cfg -o messages.pot .

The following creates a new translation file and may be a bad idea if you already have one:

pybabel init -i messages.pot -d translations -l de

Compile the translation file(s):

pybabel compile -d translations