3
ALL_LINGUAS = en_GB en_CA de pl ru fr fi nl he bg gl it es pt ko lt nb \
4
sk sv zh_CN hu ja zh_TW ro
6
PO_DIR ?= $(PREFIX)/share/locale
10
po: $(addsuffix .mo, $(ALL_LINGUAS))
12
quodlibet.pot: POTFILES.in ../*.py ../formats/*.py ../browsers/*.py ../qltk/*.py ../plugins/*.py tag-names.py ../util/*.py ../library/*.py ../devices/*.py
13
intltool-update --pot --gettext-package=$(NAME)
16
intltool-update --dist --gettext-package=$(NAME) $*
21
check: $(addprefix check-, $(ALL_LINGUAS))
27
rm -f untitled.pot messages.mo quodlibet.gmo notexist missing
34
for F in $(ALL_LINGUAS); do mkdir -p $(DESTDIR)$(PO_DIR)/$$F/LC_MESSAGES && install -m 644 $$F.mo $(DESTDIR)$(PO_DIR)/$$F/LC_MESSAGES/$(NAME).mo; done
36
.PHONY: po check check-% clean mo-clean distclean install-po