summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2018-01-01 19:04:25 +0000
committerng0 <ng0@n0.is>2018-01-01 19:04:25 +0000
commit417282851998f292b2c17e3a18ba0525efd077b2 (patch)
tree42f03b06c2af4b670da60f2494879e32e504cfb5
parent23ffffb51ce54b9f2e55da4f097be82d32a614c5 (diff)
Makefile
-rw-r--r--Makefile9
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/*.j2.inc
+# Extract translateable strings from jinga2 templates.
+locale/messages.pot: *.j2 common/*.j2.inc
env PYTHONPATH="." pybabel extract -F locale/babel.map -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
./template.py