From 0e7eccc7b71949cc80b3190b238d4ec4d01f8532 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Sch=C3=A4fer?= Date: Sat, 23 Jan 2021 14:32:53 +0100 Subject: [PATCH] Update Makefile for Weblate usage - Disable the update_translations target as it causes conflicts - Add an extract_translations target to update the pot file --- Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index c23d83d..d2aac40 100644 --- a/Makefile +++ b/Makefile @@ -19,12 +19,19 @@ $(generated_css_files): snikket_web/static/css/%.css: snikket_web/scss/%.scss $( clean: rm -f $(generated_css_files) -update_translations: +extract_translations: pybabel extract -F babel.cfg -k _l -o $(pot_file) . + +update_translations: extract_translations + @echo "This has been deprecated as translations are now managed by weblate." + @echo "Use extract_translations only." + @false + +force_update_translations: extract_translations pybabel update -i $(pot_file) -d $(translation_basepath) compile_translations: pybabel compile -d $(translation_basepath) -.PHONY: build_css clean update_translations compile_translations +.PHONY: build_css clean update_translations compile_translations extract_translations force_update_translations