summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2012-10-18 14:53:27 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-10-18 14:53:27 -0700
commit049f4aa8acd7018005798ca2a580528e6d0a2246 (patch)
treef66fde7d26ae824e730e600cdfd62b09b7342f61 /Makefile
parent17191f17ce16521a98fb739a4d65eb69f4669c6e (diff)
downloadsubsurface-049f4aa8acd7018005798ca2a580528e6d0a2246.tar.gz
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 <dirk@hohndel.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
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