summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authortg(x) <*@tg-x.net>2017-01-19 18:49:30 +0100
committertg(x) <*@tg-x.net>2017-01-19 18:49:30 +0100
commitbade9dae384032a974dedc496ad44595072d99d9 (patch)
tree13a5defaafc872c8e620d6fcbbfcc262c598fd8b /Makefile
parentf6d6fdbb01b0ee90b2dafb615c1814588bd14d93 (diff)
downloadwww-bade9dae384032a974dedc496ad44595072d99d9.tar.gz
www-bade9dae384032a974dedc496ad44595072d99d9.tar.bz2
www-bade9dae384032a974dedc496ad44595072d99d9.zip
i18n: extract strings, update PO files, generate MO files
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 20 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 2d65b44..b9a72a9 100644
--- a/Makefile
+++ b/Makefile
@@ -1,2 +1,21 @@
-all:
+all: locale
cd web-common && tsc taler-wallet-lib.ts && cd ..
+
+locale/messages.pot: *.j2 common/*.j2
+ pybabel extract -F locale/babel.map -o locale/messages.pot .
+
+locale-update: locale/messages.pot
+ pybabel update -i locale/messages.pot -d locale -l en --previous
+ pybabel update -i locale/messages.pot -d locale -l de --previous
+ pybabel update -i locale/messages.pot -d locale -l fr --previous
+ pybabel update -i locale/messages.pot -d locale -l it --previous
+ pybabel update -i locale/messages.pot -d locale -l es --previous
+
+locale-compile: locale-update
+ pybabel compile -d locale -l en --use-fuzzy
+ pybabel compile -d locale -l de --use-fuzzy
+ pybabel compile -d locale -l fr --use-fuzzy
+ pybabel compile -d locale -l it --use-fuzzy
+ pybabel compile -d locale -l es --use-fuzzy
+
+locale: locale-compile