diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-01-13 15:00:11 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-01-13 15:00:11 +0100 |
commit | 144056a8bc2cd9725de371b42c40d6be5c359926 (patch) | |
tree | f098b66482c2e166e2655017846006ed7541ad91 /Makefile | |
parent | 1bae164dd03e023e2ee180defbc236fd89b595ba (diff) | |
parent | 430407abbaedfdbf08bc5523a6bd750997837c07 (diff) | |
download | www-144056a8bc2cd9725de371b42c40d6be5c359926.tar.gz www-144056a8bc2cd9725de371b42c40d6be5c359926.tar.bz2 www-144056a8bc2cd9725de371b42c40d6be5c359926.zip |
2018
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -5,7 +5,7 @@ all: locale template cd web-common && tsc -# Extract translateable strings from jinga2 templates. +# Extract translateable strings from jinja2 templates. locale/messages.pot: *.j2 common/*.j2 common/*.j2.inc env PYTHONPATH="." pybabel extract -F locale/babel.map -o locale/messages.pot . @@ -16,6 +16,7 @@ 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 @@ -26,11 +27,12 @@ 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 jinga2 templating engine to expand templates to HTML +# Run the jinja2 templating engine to expand templates to HTML # incorporating translations. template: locale-compile ./template.py |