diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 14dd73c0e9f9fc800a82e1b84ee44aa16ea5b68f..28873cdd0c6383fdb1d5d34a8b3a8741b220b879 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -23,6 +23,12 @@ init-langs: script: - make init-langs +update-messages: + stage: test + script: + - make init-langs + - make update-messages + test-build: stage: test script: diff --git a/Makefile b/Makefile index bb4cd915ac2552b40e68eeb66dd30a1654033577..87f23c7cb67e5c8b6461439dd24f196451b6e640 100644 --- a/Makefile +++ b/Makefile @@ -16,3 +16,6 @@ lint: prepare_template init-langs: prepare_template make -C reforis-example-plugin init-langs + +update-messages: prepare_template + make -C reforis-example-plugin update-messages diff --git a/reforis-{{cookiecutter.plugin_name_kebab}}/Makefile b/reforis-{{cookiecutter.plugin_name_kebab}}/Makefile index c376d045a3f6e9cd9c0f1621deb449d20d693c29..932ae67556c9261c1b59eff2022456e36d813fb1 100644 --- a/reforis-{{cookiecutter.plugin_name_kebab}}/Makefile +++ b/reforis-{{cookiecutter.plugin_name_kebab}}/Makefile @@ -95,7 +95,7 @@ init-langs: create-messages -d reforis_{{cookiecutter.plugin_name_snake}}/translations/ -l $$lang \ ; done update-messages: - $(VENV_BIN)/pybabel update -i ./reforis_{{cookiecutter.plugin_name_snake}}/translations/messages.pot -d ./reforis/translations + $(VENV_BIN)/pybabel update -i ./reforis_{{cookiecutter.plugin_name_snake}}/translations/messages.pot -d ./reforis_{{cookiecutter.plugin_name_snake}}/translations compile-messages: $(VENV_BIN)/pybabel compile -f -d ./reforis_{{cookiecutter.plugin_name_snake}}/translations