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 <cb@256bit.org>
This commit is contained in:
Christian Brabandt
2025-07-20 16:31:46 +02:00
parent 8b004081c4
commit 2844765e90
2 changed files with 3 additions and 3062 deletions

View File

@ -268,7 +268,8 @@ $(PACKAGE).pot: $(PO_INPUTLIST) $(PO_VIM_INPUTLIST)
@ cat ./vim_to_js >> ./allfiles
# Create vim.pot.
$(XGETTEXT) --default-domain=$(PACKAGE) --output=$(PACKAGE).pot \
--add-comments $(XGETTEXT_KEYWORDS) --files-from=./allfiles
--add-comments $(XGETTEXT_KEYWORDS) --files-from=./allfiles \
--no-location
# Fix Vim scripts names, so that "gf" works.
$(VIMPROG) -u NONE --not-a-term -S fixfilenames.vim $(PACKAGE).pot \
$(PO_VIM_INPUTLIST)

3062
src/po/vim.pot generated

File diff suppressed because it is too large Load Diff