path: root/Makefile
diff options
Diffstat (limited to 'Makefile')
1 files changed, 3 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 8dc4bae6..c7e61447 100644
--- a/Makefile
+++ b/Makefile
@@ -3,10 +3,9 @@
# All: build HTML pages in all languages and compile the
# TypeScript logic in web-common.
all: locale template
- cd web-common && tsc
-# Extract translateable strings from jinja2 templates.
-locale/messages.pot: *.j2 common/*.j2 common/*
+# Extract translateable strings from jinga2 templates.
+locale/messages.pot: *.j2 common/*
env PYTHONPATH="." pybabel extract -F locale/ -o locale/messages.pot .
# Update translation (.po) files with new strings.
@@ -16,7 +15,6 @@ locale-update: locale/messages.pot
msgmerge -U -m --previous locale/fr/LC_MESSAGES/messages.po locale/messages.pot
msgmerge -U -m --previous locale/es/LC_MESSAGES/messages.po locale/messages.pot
msgmerge -U -m --previous locale/it/LC_MESSAGES/messages.po locale/messages.pot
- msgmerge -U -m --previous locale/ru/LC_MESSAGES/messages.po locale/messages.pot
if grep -nA1 '#-#-#-#-#' locale/*/LC_MESSAGES/messages.po; then echo -e "\nERROR: Conflicts encountered in PO files.\n"; exit 1; fi
@@ -27,12 +25,11 @@ locale-compile:
pybabel compile -d locale -l fr --use-fuzzy
pybabel compile -d locale -l it --use-fuzzy
pybabel compile -d locale -l es --use-fuzzy
- pybabel compile -d locale -l ru --use-fuzzy
# Process everything related to gettext translations.
locale: locale-update locale-compile
-# Run the jinja2 templating engine to expand templates to HTML
+# Run the jinga2 templating engine to expand templates to HTML
# incorporating translations.
template: locale-compile