gaphor/po/Makefile
Dan Yeaw 4c7add7b08
Add Hungarian and Finnish [skip ci]
Signed-off-by: Dan Yeaw <dan@yeaw.me>
2021-08-27 14:53:03 -07:00

19 lines
471 B
Makefile

LANGS=ca es fr hr it nl pt_BR ru sv hu fi
SRCS=$(shell find ../gaphor -path ../gaphor/locale -prune -o -print)
MO_FILES=$(patsubst %,../gaphor/locale/%/LC_MESSAGES/gaphor.mo,$(LANGS))
all: $(MO_FILES)
gaphor.pot: $(SRCS)
pybabel extract -o gaphor.pot -F babel.ini ../gaphor
%.po: gaphor.pot
pybabel update -i $< -o $@ -l $* -D gaphor
../gaphor/locale/%/LC_MESSAGES/gaphor.mo: %.po
mkdir -p $$(dirname $@)
pybabel compile -i $< -o $@ -l $* -D gaphor
.PHONY: all