From 22487a9e642657c27b5c8f3a8ce8e6ab6f27efd9 Mon Sep 17 00:00:00 2001 From: Maciej Lenartowicz Date: Fri, 31 Jan 2020 17:16:52 +0100 Subject: [PATCH] Fixed update messages command. --- .gitlab-ci.yml | 6 ++++++ Makefile | 3 +++ reforis-{{cookiecutter.plugin_name_kebab}}/Makefile | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 14dd73c..28873cd 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 bb4cd91..87f23c7 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 c376d04..932ae67 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 -- GitLab