From 049f4aa8acd7018005798ca2a580528e6d0a2246 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 18 Oct 2012 14:53:27 -0700 Subject: Add Makefile target to update po files This is a bit of a hack to make my life easier. make update-po-files will extract the translation strings and merge them with the existing translations - for all existing translations. For good measure this commit includes the latest update of the po files (but no new translations should be needed). Signed-off-by: Dirk Hohndel --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 9275561b7..e4e9655a5 100644 --- a/Makefile +++ b/Makefile @@ -194,6 +194,12 @@ install-cross-windows: $(NAME) $(INSTALL) $$LOC/subsurface.mo $(WINDOWSSTAGING)/$$LOC/subsurface.mo; \ done +update-po-files: + xgettext -o subsurface-new.pot -s -k_ -kN_ --keyword=C_:1c,2 --add-comments="++GETTEXT" *.c + for i in po/*.po; do \ + msgmerge -s -U $$i subsurface-new.pot ; \ + done + file.o: file.c dive.h file.h $(CC) $(CFLAGS) $(GLIB2CFLAGS) $(XML2CFLAGS) $(XSLT) $(ZIP) -c file.c -- cgit v1.2.3-70-g09d2