added french translation
[clawsker.git] / po / Makefile
index ab9a31e1e5028eec56280d408654f2e04df39847..b7bed953cc32b3a89be43a57b4bf6f37a7a9d180 100644 (file)
@@ -4,18 +4,22 @@
 #
 
 NAME = clawsker
+VERSION = $(shell cat ../VERSION)
 PREFIX ?= /usr/local
 DATADIR = ${PREFIX}/share
 LOCALEDIR = ${DATADIR}/locale
 
-XG_ARGS = "--keyword=_ --flag=_:1:pass-java-format -L Perl -w 80"
-LINGUAS = "es"
+XG_ARGS = --keyword=_ --flag=_:1:pass-java-format -L Perl -w 80 --package-name=${NAME} --package-version=${VERSION} --msgid-bugs-address=ricardo@mones.org
+LINGUAS = es sr sr@latin fr
 
 all: build
 
 update-pot:
        xgettext ${XG_ARGS} -f ./POTFILES -d ${NAME} -o ./${NAME}.pot
 
+%.pox: %.po
+       msgmerge -o $@ --previous $< ${NAME}.pot 
+
 build:
        for po in ${LINGUAS}; \
        do msgfmt -c -o t-$${po} $${po}.po && mv -f t-$${po} $${po}.mo; \
@@ -38,9 +42,13 @@ uninstall:
        done
 
 clean-build:
+       rm -f *.mo
+
+clean-pox:
+       rm -f *.pox
 
-clean:
-       rm -f *.mo *~
+clean: clean-build
+       rm -f *~
 
-.PHONY: all build install install-dirs uninstall clean clean-build update-pot
+.PHONY: all build install install-dirs uninstall clean clean-pox clean-build update-pot