forked from getpelican/pelican-themes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
19 lines (15 loc) · 879 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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