summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLex Neva <lexelby@users.noreply.github.com>2018-08-21 16:45:13 -0400
committerGitHub <noreply@github.com>2018-08-21 16:45:13 -0400
commitafb886cbe04d19c6b7d1886dfc2c6052646a2dbf (patch)
tree2d0a6fe95a26d5b934fe893f3d2b3e94b2aadcc8 /Makefile
parent8116f32068a4fe55e7f30ca2a369b2443d89b560 (diff)
parent8f700007fc7d3b7866d4e4a3dac6a36bb3e1be2a (diff)
Merge pull request #286 from inkstitch/lexelby/i18n-revamp
localize INX files
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 14 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 4c31f17e..030ddd67 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@ VERSION:=$(subst /,-,$(TRAVIS_BRANCH))
OS:=$(TRAVIS_OS_NAME)
ARCH:=$(shell uname -m)
-dist: distclean locales
+dist: distclean locales inx
bin/build-dist $(EXTENSIONS)
cp inx/*.inx dist
cp -a images/examples dist/inkstitch
@@ -23,11 +23,22 @@ dist: distclean locales
distclean:
rm -rf build dist *.spec *.tar.gz
+.PHONY: inx
+inx: locales
+ mkdir -p inx
+ if [ "$$BUILD" = "windows" ]; then \
+ wine c:\\Python\\python.exe bin/generate-inx-files; \
+ else \
+ bin/generate-inx-files; \
+ fi
+
+.PHONY: messages.po
messages.po:
rm -f messages.po
- pybabel extract -o messages.po -F babel.conf --add-location=full --add-comments=l10n,L10n,L10N --sort-by-file --strip-comments .
+ bin/pyembroidery-gettext > pyembroidery-format-descriptions.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
-.PHONY: messages.po
.PHONY: locales
locales:
# message files will look like this: