fix pot file and update it translator address
[clawsker.git] / po / Makefile
index 57086f9b316bdbf0574ab72b8b238ec587e4a675..e3da5c717ff4663a9d04024cd736c38de3d197d4 100644 (file)
@@ -14,8 +14,14 @@ LINGUAS = es sr sr@latin fr it
 
 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) - 21 ) ./${NAME}.pot.0 >> ./${NAME}.pot
+       rm -f ./${NAME}.pot.0
 
 %.pox: %.po
        msgmerge -o $@ --previous $< ${NAME}.pot