Makefile generates translation and builds package

This commit is contained in:
Stéphane Blondon 2022-05-06 12:32:00 +02:00
parent fc4130a38b
commit 36042f132e
2 changed files with 8 additions and 3 deletions

8
Makefile Normal file
View file

@ -0,0 +1,8 @@
build:
python3 setup.py compile_catalog
python3 setup.py sdist bdist_wheel
init_i18n:
python3 setup.py extract_messages
python3 setup.py init_catalog --locale fr
python3 setup.py compile_catalog

View file

@ -115,17 +115,14 @@ output_file = canaille/translations/messages.pot
[init_catalog]
input_file = canaille/translations/messages.pot
output_dir = canaille/translations/
domain = canaille
[update_catalog]
input_file = canaille/translations/messages.pot
output_dir = canaille/translations/
domain = canaille
update-header-comment = true
no-fuzzy-matching = true
ignore-obsolete = true
[compile_catalog]
directory = canaille/translations/
domain = canaille
statistics = true