path: root/Makefile
diff options
authorChristian Grothoff <>2020-10-10 22:55:31 +0200
committerChristian Grothoff <>2020-10-10 22:55:31 +0200
commit2e665813a44988bfd906c0fab773f82652047841 (patch)
treeabb09bb226ec904d23592edbc8372634f5b7a31b /Makefile
parentad45c1d0d6152d6eddde39881461a3472f799ab7 (diff)
parent58af97724593e6d9cf423035f46da8f88c29526c (diff)
merge torsten-redesign branch, implement i18n support
Diffstat (limited to 'Makefile')
1 files changed, 40 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d40e2f4..0cea1c3 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@ install_global=false
.PHONY: all
- @echo "This is a python project, no compilation required"
+ @echo "This is a python project, no compilation required\nSCSS/SASS Initial Setup: make sass-setup\nSCSS/SASS Build (for static files): make sass-build"
.PHONY: install
@@ -38,3 +38,42 @@ dist:
.PHONY: pretty
yapf -r -i talerblog/
+# i18n
+# Note: Flask-BabelEx expects 'translations/' for the dirname,
+# even though GNU gettext typically uses 'locale/'
+ mkdir -p translations/
+ pybabel extract -F babel.cfg -o translations/messages.pot .
+# Add new language as follows:
+# pybabel init -i locale/messages.pot -d locale/ -l de
+ pybabel compile -d translations/
+update: extract
+ pybabel update -i translations/messages.pot -d translations/
+ @echo "This is the initial sass-installation/setup script."
+ @echo "This setup must run as root, on a machine that has NPM installed!"
+ @echo "If your password is requested (for escalation), please enter it."
+ sudo npm install -g sass
+scss-setup: sass-setup
+ @echo "Warning: If Sass/Scss is not installed, please run \`make sass-setup\` first!"
+ @echo "This script will only convert files inside /static"
+ sass talermerchantdemos/static:talermerchantdemos/static
+scss-build: sass-build
+ @echo "Warning: If Sass/Scss is not installed, please run \`make sass-setup\` first!"
+ @echo "This script will automatically build sass/scss files in the static directory!"
+ sass --watch talermerchantdemos/static:talermerchantdemos/static
+scss-autobuild: sass-autobuild