aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index fdd2c37b..3fae1b63 100644
--- a/Makefile
+++ b/Makefile
@@ -3,17 +3,17 @@
3# All: build HTML pages in all languages and compile the 3# All: build HTML pages in all languages and compile the
4# TypeScript logic in web-common. 4# TypeScript logic in web-common.
5 5
6PYTHONPATH="$PYTHONPATH:$(pwd)" 6include config.mk
7 7
8all: locale template 8all: locale template
9 9
10# Extract translateable strings from jinga2 templates. 10# Extract translateable strings from jinja2 templates.
11locale/messages.pot: *.j2 common/*.j2.inc 11locale/messages.pot: *.j2 common/*.j2.inc
12 pybabel extract -F locale/babel.map -o locale/messages.pot . 12 pybabel extract -F locale/babel.map -o locale/messages.pot .
13 13
14# Update translation (.po) files with new strings. 14# Update translation (.po) files with new strings.
15locale-update: locale/messages.pot 15locale-update: locale/messages.pot
16 msgmerge -U -m --previous locale/en/LC_MESSAGES/messages.po locale/messages.pot 16 msgmerge -U -m --previous locale/en/LC_MESSAGES/messages.po locale/messages.pot
17 msgmerge -U -m --previous locale/de/LC_MESSAGES/messages.po locale/messages.pot 17 msgmerge -U -m --previous locale/de/LC_MESSAGES/messages.po locale/messages.pot
18 msgmerge -U -m --previous locale/fr/LC_MESSAGES/messages.po locale/messages.pot 18 msgmerge -U -m --previous locale/fr/LC_MESSAGES/messages.po locale/messages.pot
19 msgmerge -U -m --previous locale/es/LC_MESSAGES/messages.po locale/messages.pot 19 msgmerge -U -m --previous locale/es/LC_MESSAGES/messages.po locale/messages.pot
@@ -32,9 +32,9 @@ locale-compile:
32# Process everything related to gettext translations. 32# Process everything related to gettext translations.
33locale: locale-update locale-compile 33locale: locale-update locale-compile
34 34
35# Run the jinga2 templating engine to expand templates to HTML 35# Run the jinja2 templating engine to expand templates to HTML
36# incorporating translations. 36# incorporating translations.
37template: locale-compile 37template: locale-compile
38 ./template.py 38 $(PYTHON) ./template.py
39 39
40it: template 40it: template