This commit is contained in:
2019-04-19 21:30:55 +03:00
commit 840267b63e
97 changed files with 12204 additions and 0 deletions

19
Makefile Normal file
View File

@ -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