diff options
author | ng0 <ng0@n0.is> | 2018-01-01 19:04:25 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2018-01-01 19:04:25 +0000 |
commit | 417282851998f292b2c17e3a18ba0525efd077b2 (patch) | |
tree | 42f03b06c2af4b670da60f2494879e32e504cfb5 | |
parent | 23ffffb51ce54b9f2e55da4f097be82d32a614c5 (diff) |
Makefile
-rw-r--r-- | Makefile | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -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 |