aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 904cf2cf..8dc4bae6 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@
5all: locale template 5all: locale template
6 cd web-common && tsc 6 cd web-common && tsc
7 7
8# Extract translateable strings from jinga2 templates. 8# Extract translateable strings from jinja2 templates.
9locale/messages.pot: *.j2 common/*.j2 common/*.j2.inc 9locale/messages.pot: *.j2 common/*.j2 common/*.j2.inc
10 env PYTHONPATH="." pybabel extract -F locale/babel.map -o locale/messages.pot . 10 env PYTHONPATH="." pybabel extract -F locale/babel.map -o locale/messages.pot .
11 11
@@ -16,6 +16,7 @@ locale-update: locale/messages.pot
16 msgmerge -U -m --previous locale/fr/LC_MESSAGES/messages.po locale/messages.pot 16 msgmerge -U -m --previous locale/fr/LC_MESSAGES/messages.po locale/messages.pot
17 msgmerge -U -m --previous locale/es/LC_MESSAGES/messages.po locale/messages.pot 17 msgmerge -U -m --previous locale/es/LC_MESSAGES/messages.po locale/messages.pot
18 msgmerge -U -m --previous locale/it/LC_MESSAGES/messages.po locale/messages.pot 18 msgmerge -U -m --previous locale/it/LC_MESSAGES/messages.po locale/messages.pot
19 msgmerge -U -m --previous locale/ru/LC_MESSAGES/messages.po locale/messages.pot
19 20
20 if grep -nA1 '#-#-#-#-#' locale/*/LC_MESSAGES/messages.po; then echo -e "\nERROR: Conflicts encountered in PO files.\n"; exit 1; fi 21 if grep -nA1 '#-#-#-#-#' locale/*/LC_MESSAGES/messages.po; then echo -e "\nERROR: Conflicts encountered in PO files.\n"; exit 1; fi
21 22
@@ -26,11 +27,12 @@ locale-compile:
26 pybabel compile -d locale -l fr --use-fuzzy 27 pybabel compile -d locale -l fr --use-fuzzy
27 pybabel compile -d locale -l it --use-fuzzy 28 pybabel compile -d locale -l it --use-fuzzy
28 pybabel compile -d locale -l es --use-fuzzy 29 pybabel compile -d locale -l es --use-fuzzy
30 pybabel compile -d locale -l ru --use-fuzzy
29 31
30# Process everything related to gettext translations. 32# Process everything related to gettext translations.
31locale: locale-update locale-compile 33locale: locale-update locale-compile
32 34
33# Run the jinga2 templating engine to expand templates to HTML 35# Run the jinja2 templating engine to expand templates to HTML
34# incorporating translations. 36# incorporating translations.
35template: locale-compile 37template: locale-compile
36 ./template.py 38 ./template.py