Skip to content

Commit 2844765

Browse files
committed
translation: do not add message location as comments into vim.pot
Let's add the --no-location to the xgettext command line call, so that the generated vim.pot file does not contain the message location. Those will get out of date soon and we don't want to update vim.pot just because the location in a comment changes. Signed-off-by: Christian Brabandt <[email protected]>
1 parent 8b00408 commit 2844765

2 files changed

Lines changed: 3 additions & 3062 deletions

File tree

src/po/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,8 @@ $(PACKAGE).pot: $(PO_INPUTLIST) $(PO_VIM_INPUTLIST)
268268
@ cat ./vim_to_js >> ./allfiles
269269
# Create vim.pot.
270270
$(XGETTEXT) --default-domain=$(PACKAGE) --output=$(PACKAGE).pot \
271-
--add-comments $(XGETTEXT_KEYWORDS) --files-from=./allfiles
271+
--add-comments $(XGETTEXT_KEYWORDS) --files-from=./allfiles \
272+
--no-location
272273
# Fix Vim scripts names, so that "gf" works.
273274
$(VIMPROG) -u NONE --not-a-term -S fixfilenames.vim $(PACKAGE).pot \
274275
$(PO_VIM_INPUTLIST)

0 commit comments

Comments
 (0)