0
0
mirror of https://github.com/vim/vim.git synced 2025-08-26 20:03:41 -04:00

translation: mark vim.pot as linguist-generated, ignore msg locations in vim.pot

Update the textconv filter to filter out changes in the comments
pointing to the location of the message.

Also remove the comments in vim.pot that mention the message location.
Since those will be ignored using vims textconv filter, it does not make
sense to keep them, they would get out of sync anyhow.

closes: #17782

Co-authored-by: Illia Bobyr <illia.bobyr@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Christian Brabandt 2025-07-18 20:04:00 +02:00
parent 824286c9a7
commit be863b2633
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
2 changed files with 12 additions and 3063 deletions

14
.gitattributes vendored
View File

@ -3,7 +3,15 @@ src/testdir/test42.in diff
# vim.pot may change just by incrementing a patch number # vim.pot may change just by incrementing a patch number
# so ignore the following differences: # so ignore the following differences:
# - POT-Creation Date # - POT-Creation Date
# - comments in version.c for line numbers: # - comments pointing to the message source location in
# *.c/*.h/*.vim/*.cpp/*.in/*.xs files followed by line numbers
# set this up using: # set this up using:
# git config diff.ignore_pot_date.textconv 'grep -Ev "^.(POT-Creation-Date:|.*version\.c).*"' # git config diff.ignore_vim_pot.textconv "grep -Ev '^.(POT-Creation-Date:|.*\\.([ch]|vim|in|xs|cpp):).*$'"
src/po/vim.pot diff=ignore_pot_date src/po/vim.pot diff=ignore_vim_pot
# GitHub reacts to the `linguist-generated` attribute, by ignoring marked files
# for the repository's language statistics and hiddning changes in these files
# by default in diffs.
#
# https://docs.github.com/en/repositories/working-with-files/managing-files/customizing-how-changed-files-appear-on-github
src/po/vim.pot linguist-generated=true

3061
src/po/vim.pot generated

File diff suppressed because it is too large Load Diff