diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2012-10-18 14:53:27 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2012-10-18 14:53:27 -0700 |
commit | 049f4aa8acd7018005798ca2a580528e6d0a2246 (patch) | |
tree | f66fde7d26ae824e730e600cdfd62b09b7342f61 /Makefile | |
parent | 17191f17ce16521a98fb739a4d65eb69f4669c6e (diff) | |
download | subsurface-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-- | Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |