* 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
1 changed files with 7 additions and 1 deletions

View File

@ -52,7 +52,13 @@ $(MOFILES): %.mo: %.po
$(POFILES): %: $(POT)
@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 $@
$(POT): $(XSRCFILES) $(XJSFILES) po/pot.sed