From cb2b4e3522cb7f426ba5ad3e68deb9e6ccc581ec Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Tue, 28 Apr 2020 12:34:05 -0400 Subject: electron simulator (#531) --- Makefile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 7dbf5378..bc152382 100644 --- a/Makefile +++ b/Makefile @@ -17,8 +17,17 @@ messages.po: rm -f messages.po bin/pyembroidery-gettext > pyembroidery-format-descriptions.py bin/inkstitch-fonts-gettext > inkstitch-fonts-metadata.py - pybabel extract -o messages.po -F babel.conf --add-location=full --add-comments=l10n,L10n,L10N --sort-by-file --strip-comments -k N_ . - rm pyembroidery-format-descriptions.py + pybabel extract -o messages-babel.po -F babel.conf --add-location=full --add-comments=l10n,L10n,L10N --sort-by-file --strip-comments -k N_ -k '$$gettext' . + rm pyembroidery-format-descriptions.py inkstitch-fonts-metadata.py + find electron/src -name '*.html' -o -name '*.js' -o -name '*.vue' | xargs electron/node_modules/.bin/gettext-extract --quiet --attribute v-translate --output messages-vue.po + msgcat -o messages.po messages-babel.po messages-vue.po + +electron/src/renderer/assets/translations.json: $(addsuffix /LC_MESSAGES/inkstitch.po,$(wildcard locales/*)) + find locales -name '*.po' -a ! -empty | \ + xargs electron/node_modules/.bin/gettext-compile --output electron/src/renderer/assets/translations.json + +%.po: %.mo + msgunfmt -o $@ $< .PHONY: clean clean: -- cgit v1.3.1