# Makefile to help with the maintenance of the German localisation
#
# The files are usually managed with some setup.py commands
# (extract_messages, etc.) but the way mpuls uses the files is a bit
# unusual. The mpulsweb.po file in particular is not managed by setup.py
# and needs some special handling occasionally. That's the purpose of
# this Makefile.

all:
	@echo "Run make upate-mpulweb-po to update mpulsweb.po from base"

MASTERDIR := ../../../../..

.PHONY: all upate-mpulweb-po

upate-mpulweb-po:
	msgmerge --no-fuzzy-matching mpulsweb.po \
	    $(MASTERDIR)/base/mpulsweb/i18n/mpulsweb.pot \
	| msgattrib --translated --no-obsolete -o mpulsweb.po
