summaryrefslogtreecommitdiff
path: root/doc/makefile
diff options
context:
space:
mode:
authorMichael Vogt <mvo@ubuntu.com>2015-09-22 16:56:34 +0200
committerMichael Vogt <mvo@ubuntu.com>2015-09-22 16:56:34 +0200
commit9a2902305b75a6bc5a288fd1b12323c77df09b8c (patch)
treec2bea1b536793a02e558a0c222542f9aa23736bc /doc/makefile
parent61e927785a8b79141cb5aac622cb00b547b78b9b (diff)
Use --add-location=file for po/ and doc/po
This avoids churn in the po/pot files when just the location line number in the source code changes. Git-Dch: ignore
Diffstat (limited to 'doc/makefile')
-rw-r--r--doc/makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/makefile b/doc/makefile
index 1c076d5be..1f009b0f5 100644
--- a/doc/makefile
+++ b/doc/makefile
@@ -61,12 +61,15 @@ po4a: manpages/subdirs docbook/subdirs
update-po:
po4a --previous --no-backups --force --no-translations \
+ --msgmerge-opt --add-location=file \
+ --porefs noline,wrap \
--package-name='$(PACKAGE)-doc' --package-version='$(PACKAGE_VERSION)' \
--msgid-bugs-address='$(PACKAGE_MAIL)' po4a.conf
manpages/subdirs: $(MANPAGEPOLIST)
$(MANPAGEPOLIST) :: manpages-translation-% : %/makefile po4a.conf
po4a --previous --no-backups --translate-only $(dir $<)apt.ent \
+ --msgmerge-opt --add-location=file \
$(patsubst %,--translate-only $(dir $<)%,$(patsubst %.1.xml,%.$(subst /,,$(dir $<)).1.xml,$(wildcard *.1.xml))) \
$(patsubst %,--translate-only $(dir $<)%,$(patsubst %.2.xml,%.$(subst /,,$(dir $<)).2.xml,$(wildcard *.2.xml))) \
$(patsubst %,--translate-only $(dir $<)%,$(patsubst %.3.xml,%.$(subst /,,$(dir $<)).3.xml,$(wildcard *.3.xml))) \
@@ -81,6 +84,7 @@ $(MANPAGEPOLIST) :: manpages-translation-% : %/makefile po4a.conf
docbook/subdirs: $(DOCBOOKPOLIST)
$(DOCBOOKPOLIST) :: docbook-translation-% : %/makefile po4a.conf
po4a --previous --no-backups --translate-only $(dir $<)apt.ent \
+ --msgmerge-opt --add-location=file \
$(patsubst %,--translate-only $(dir $<)%,$(patsubst %.dbk,%.$(subst /,,$(dir $<)).dbk,$(wildcard *.dbk))) \
--package-name='$(PACKAGE)-doc' --package-version='$(PACKAGE_VERSION)' \
--msgid-bugs-address='$(PACKAGE_MAIL)' po4a.conf