diff options
Diffstat (limited to 'pelican-bootstrap3/Makefile')
-rw-r--r-- | pelican-bootstrap3/Makefile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/pelican-bootstrap3/Makefile b/pelican-bootstrap3/Makefile new file mode 100644 index 0000000..aa45c0d --- /dev/null +++ b/pelican-bootstrap3/Makefile @@ -0,0 +1,19 @@ +help: + @echo 'Makefile for translation ' + @echo ' ' + @echo 'Usage: ' + @echo ' make extract Extract message strings ' + @echo ' make update Extract strings and update po files ' + @echo ' make compile Compile po files to mo files ' + @echo ' ' + +extract: + pybabel extract --mapping babel.cfg --output messages.pot ./ + +update: extract + pybabel update --input-file messages.pot --output-dir translations/ --domain messages + +compile: + pybabel compile --directory translations/ --domain messages + +.PHONY: help extract update compile |