aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-02-17 18:23:55 +0000
committerng0 <ng0@n0.is>2019-02-17 18:23:55 +0000
commitb3c454d85baf12471313e34bc908081f84dd2f4b (patch)
treebea9e41a076b1b2ad4e7d1314eddea712f0c0995
parent1ae6b79294e197e5d2360d707c0953b779058bdb (diff)
downloadwww-b3c454d85baf12471313e34bc908081f84dd2f4b.tar.gz
www-b3c454d85baf12471313e34bc908081f84dd2f4b.zip
Fix pybabel invocation and make output more verbose
-rw-r--r--Makefile14
-rw-r--r--config.mk3
2 files changed, 8 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 1b345e9c..ed3ab587 100644
--- a/Makefile
+++ b/Makefile
@@ -14,8 +14,10 @@ include config.mk
14all: locale template 14all: locale template
15 15
16# Extract translateable strings from jinja2 templates. 16# Extract translateable strings from jinja2 templates.
17# Because of the local i18nfix extractor module we need
18# to set the pythonpath before invoking pybabel.
17locale/messages.pot: *.j2 common/*.j2.inc 19locale/messages.pot: *.j2 common/*.j2.inc
18 $(BABEL) extract -F locale/babel.map -o locale/messages.pot . 20 PYTHONPATH=. $(BABEL) -v extract -F locale/babel.map -o locale/messages.pot .
19 21
20# Update translation (.po) files with new strings. 22# Update translation (.po) files with new strings.
21locale-update: locale/messages.pot 23locale-update: locale/messages.pot
@@ -29,11 +31,11 @@ locale-update: locale/messages.pot
29 31
30# Compile translation files for use. 32# Compile translation files for use.
31locale-compile: 33locale-compile:
32 $(BABEL) compile -d locale -l en --use-fuzzy 34 $(BABEL) -v compile -d locale -l en --use-fuzzy
33 $(BABEL) compile -d locale -l de --use-fuzzy 35 $(BABEL) -v compile -d locale -l de --use-fuzzy
34 $(BABEL) compile -d locale -l fr --use-fuzzy 36 $(BABEL) -v compile -d locale -l fr --use-fuzzy
35 $(BABEL) compile -d locale -l it --use-fuzzy 37 $(BABEL) -v compile -d locale -l it --use-fuzzy
36 $(BABEL) compile -d locale -l es --use-fuzzy 38 $(BABEL) -v compile -d locale -l es --use-fuzzy
37 39
38# Process everything related to gettext translations. 40# Process everything related to gettext translations.
39locale: locale-update locale-compile 41locale: locale-update locale-compile
diff --git a/config.mk b/config.mk
index 026cacb0..8491416b 100644
--- a/config.mk
+++ b/config.mk
@@ -1,6 +1,3 @@
1GUIX_PYTHONPATH:=$(PYTHONPATH)
2PYTHONPATH=$(PWD):$(GUIX_PYTHONPATH)
3
4DEBUG=0 1DEBUG=0
5 2
6PYTHON=python3 3PYTHON=python3