aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-02-09 10:52:01 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-02-09 10:52:01 -0800
commit16dda3ec12d97b13af6877d905743d8ba9d8d2ea (patch)
tree0230f3a3c7f5f431e23d1c18b43aba1fc11dfd1c /Makefile
parente7389874fbcae5c27f37463fe3b06a03e6b13b8d (diff)
downloadsubsurface-16dda3ec12d97b13af6877d905743d8ba9d8d2ea.tar.gz
New Makefile target to create smaller diffs for translations
Simply run make prepare-po-files and msgcat will be run over all po files to create consistent location references. That plus the change I made earlier to how we update the po files should create much smaller and easier to read diffs for translators. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 93996e372..0f476f9ab 100644
--- a/Makefile
+++ b/Makefile
@@ -240,6 +240,11 @@ update-po-files:
msgmerge --no-wrap -s -U $$i po/subsurface-new.pot ; \
done
+prepare-po-files:
+ for i in po/*.po; do \
+ msgcat --no-wrap $$i -o $$i ; \
+ done
+
EXTRA_FLAGS = $(GTKCFLAGS) $(GLIB2CFLAGS) $(XML2CFLAGS) \
$(XSLT) $(ZIP) $(LIBDIVECOMPUTERCFLAGS) \
$(LIBSOUPCFLAGS) $(OSMGPSMAPFLAGS) $(GCONF2CFLAGS) \