extract comments for translators

Comments must be prefixed with "I18N:"
This commit is contained in:
Glandos 2021-07-11 13:12:52 +02:00
parent 4fcce0ecb2
commit 2610b630a9

View file

@ -71,7 +71,7 @@ build-translations: ## Build the translations
.PHONY: update-translations .PHONY: update-translations
update-translations: ## Extract new translations from source code 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/ $(VENV)/bin/pybabel update -i ihatemoney/messages.pot -d ihatemoney/translations/
.PHONY: create-database-revision .PHONY: create-database-revision