summaryrefslogtreecommitdiff
path: root/po/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 /po/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 'po/makefile')
-rw-r--r--po/makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/po/makefile b/po/makefile
index 58fd3c2ce..f42d476a3 100644
--- a/po/makefile
+++ b/po/makefile
@@ -40,7 +40,7 @@ $(POTFILES) : $(PO)/%.pot :
cat $(PO)/domains/$*/*.srclist | sort > $(PO)/POTFILES_$*.in
$(XGETTEXT) --default-domain=$* --directory=$(BASE) \
--add-comments --foreign --keyword=_ --keyword=N_ \
- --no-location \
+ --add-location=file \
--keyword=P_:1,2 \
--files-from=$(PO)/POTFILES_$*.in -o $(PO)/domains/$*/c.pot.tmp
cmp --silent $(PO)/domains/$*/c.pot.tmp $(PO)/domains/$*/c.pot || \
@@ -59,7 +59,7 @@ $(POTFILES) : $(PO)/%.pot :
$(LANG_POFILES) : $(PO_DOMAINS)/%.po : $(POTFILES)
printf "%s " "Generating $@"
echo $@ : $(notdir $@) $(PO)/$(call GETDOMAIN,$*).pot > $(PO)/$(call GETDOMAIN,$*)_$(notdir $@).d
- $(MSGMERGE) --no-location $(notdir $@) $(PO)/$(call GETDOMAIN,$*).pot -o $@
+ $(MSGMERGE) --add-location=file $(notdir $@) $(PO)/$(call GETDOMAIN,$*).pot -o $@
$(MOFILES) : $(PO_DOMAINS)/%.mo : $(PO_DOMAINS)/%.po
printf "%s: " "Generating $(LOCALE)/$(notdir $*)/LC_MESSAGES/$(call GETDOMAIN,$*).mo"