X-Git-Url: http://git.claws-mail.org/?p=clawsker.git;a=blobdiff_plain;f=po%2FMakefile;h=c65630c4bff30a2f64216864f9d2140ac88016eb;hp=b7bed953cc32b3a89be43a57b4bf6f37a7a9d180;hb=45e6c1b60254878b3faf0a54709cb3c7d2d587ec;hpb=765b3e15f9b341704fde21a49902e28fdcbeaa23 diff --git a/po/Makefile b/po/Makefile index b7bed95..c65630c 100644 --- a/po/Makefile +++ b/po/Makefile @@ -10,25 +10,31 @@ DATADIR = ${PREFIX}/share LOCALEDIR = ${DATADIR}/locale 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 +LINGUAS = es sr sr@latin fr it id pt_BR sv all: build -update-pot: - xgettext ${XG_ARGS} -f ./POTFILES -d ${NAME} -o ./${NAME}.pot +${NAME}.pot.0: + xgettext ${XG_ARGS} -f ./POTFILES -d ${NAME} -o ./${NAME}.pot.0 + +# remove bogus entry win_title +update-pot: ${NAME}.pot.0 + head -17 ./${NAME}.pot.0 > ./${NAME}.pot + tail -$(shell expr $(shell wc -l < ./${NAME}.pot.0) - 22 ) ./${NAME}.pot.0 >> ./${NAME}.pot + rm -f ./${NAME}.pot.0 %.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; \ + do msgfmt -v --statistics -c -o t-$${po} $${po}.po && mv -f t-$${po} $${po}.mo; \ done install: all install-dirs for po in ${LINGUAS}; \ - do install -m 0755 $${po}.mo ${DESTDIR}${LOCALEDIR}/$${po}/LC_MESSAGES/${NAME}.mo; \ + do install -m 0644 $${po}.mo ${DESTDIR}${LOCALEDIR}/$${po}/LC_MESSAGES/${NAME}.mo; \ done install-dirs: