From 2610b630a9bb1708801ae4bd4f8bb79ec67c2426 Mon Sep 17 00:00:00 2001 From: Glandos Date: Sun, 11 Jul 2021 13:12:52 +0200 Subject: [PATCH] extract comments for translators Comments must be prefixed with "I18N:" --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2e8c18ff..ec19e163 100644 --- a/Makefile +++ b/Makefile @@ -71,7 +71,7 @@ build-translations: ## Build the translations .PHONY: update-translations update-translations: ## Extract new translations from source code - $(VENV)/bin/pybabel extract --strip-comments --omit-header --no-location --mapping-file ihatemoney/babel.cfg -o ihatemoney/messages.pot ihatemoney + $(VENV)/bin/pybabel extract --add-comments "I18N:" --strip-comments --omit-header --no-location --mapping-file ihatemoney/babel.cfg -o ihatemoney/messages.pot ihatemoney $(VENV)/bin/pybabel update -i ihatemoney/messages.pot -d ihatemoney/translations/ .PHONY: create-database-revision