From dbc4800dda2b0dc3290dc79955f857256e0694e2 Mon Sep 17 00:00:00 2001 From: Eisuke Kawashima Date: Tue, 31 Mar 2026 08:59:57 +0900 Subject: [PATCH] vim-patch:2844765: translation: do not add message location as comments into vim.pot (#38587) 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. https://github.com/vim/vim/commit/2844765e903214490e1494ec55d118b30fa45567 Co-authored-by: Eisuke Kawashima Co-authored-by: Christian Brabandt --- src/nvim/po/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/nvim/po/CMakeLists.txt b/src/nvim/po/CMakeLists.txt index e9e9832b42..030ad325f0 100644 --- a/src/nvim/po/CMakeLists.txt +++ b/src/nvim/po/CMakeLists.txt @@ -57,6 +57,7 @@ if(HAVE_WORKING_LIBINTL AND GETTEXT_FOUND AND XGETTEXT_PRG AND ICONV_PRG) OUTPUT ${NVIM_POT} COMMAND ${XGETTEXT_PRG} -o ${NVIM_POT} --default-domain=nvim --add-comments --keyword=_ --keyword=N_ --keyword=NGETTEXT:1,2 + --no-location -D ${CMAKE_CURRENT_SOURCE_DIR} -D ${CMAKE_CURRENT_BINARY_DIR} ${NVIM_RELATIVE_SOURCES} ${PROJECT_SOURCE_DIR}/runtime/scripts/optwin.lua VERBATIM