* add support for adding new languages
This commit is contained in:
Jan Dittberner 2007-12-03 15:28:00 +00:00
parent 00e1cccb5e
commit 120577d003

View file

@ -52,7 +52,13 @@ $(MOFILES): %.mo: %.po
$(POFILES): %: $(POT) $(POFILES): %: $(POT)
@echo "msgmerge: $@" @echo "msgmerge: $@"
msgmerge -U $@ $(POT) podir=`dirname $@` ; \
if test ! -d $$podir; then mkdir -p $$podir; fi
if test -f $@; then \
msgmerge -U $@ $(POT); \
else \
cp $(POT) $@; \
fi
touch $@ touch $@
$(POT): $(XSRCFILES) $(XJSFILES) po/pot.sed $(POT): $(XSRCFILES) $(XJSFILES) po/pot.sed