From 36042f132e7e59734742005574b5e88e64465d9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Blondon?= Date: Fri, 6 May 2022 12:32:00 +0200 Subject: [PATCH] Makefile generates translation and builds package --- Makefile | 8 ++++++++ setup.cfg | 3 --- 2 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..35f9c0a1 --- /dev/null +++ b/Makefile @@ -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 \ No newline at end of file diff --git a/setup.cfg b/setup.cfg index bfb5aa89..7556eaf4 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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