Skip to content

translation(cleanup): squeeze successive empty lines and stray comments#19860

Closed
e-kwsm wants to merge 1 commit intovim:masterfrom
e-kwsm:update-po
Closed

translation(cleanup): squeeze successive empty lines and stray comments#19860
e-kwsm wants to merge 1 commit intovim:masterfrom
e-kwsm:update-po

Conversation

@e-kwsm
Copy link
Copy Markdown
Contributor

@e-kwsm e-kwsm commented Mar 29, 2026

No description provided.

@e-kwsm
Copy link
Copy Markdown
Contributor Author

e-kwsm commented Mar 30, 2026

note:

silent g/^#, fuzzy\(, .*\)\=\nmsgid ""\@!/.+1,/^$/-1s/^/#\~ /

does not remove a fuzzy entry like

#, fuzzy
msgid ""
"foo"
msgstr "bar"

msgmerge --for-msgfmt does a better job: it removes untranslated messages, fuzzy messages (except the header entry), and obsolete messages from the output.
But it means headers are gone as well.

vim/src/po/af.po

Lines 1 to 25 in 3c0f800

# Afrikaans translation for Vim
# Do ":help uganda" in Vim to read copying and usage conditions.
# Do ":help credits" in Vim to see a list of people who contributed.
# Danie Roux <droux@tuks.co.za>, 2001
# Edited: Jean Jordaan (njj) <jean@upfrontsystems.co.za>, 10/01/2001
# Edited by Danie on the 31st of October 2001
# Edited by Danie on the 30th of July 2005
# Edited by Doug Kearns <dougkearns@gmail.com>, 2022 May 11
#
# njj: Save == Stoor. Write == Skryf.
# njj: "deleted" == "geskrap"; "remove" == "verwyder"
# njj: "source" == "uitvoer", want "sourced" lêers word uitgevoer
# njj: "abort" == "staak"
# close == sluit
# Onseker:
# X Display - vertoonskerm? (njj: ek dink dis reg.)
# open vim in another GTK Widget - het vertaal as element (njj: OK, maar
# 'n element is algemener as 'n widget: mens kry byvoorbeeld HTML
# en XML elemente. Maar ek kan nie nou aan 'n spesifieker woord dink
# nie.)
# Printing aborted - drukkery gestaak? (njj: ek dink dis reg.)
#
# exception - uitsondering
# abandon - weg gegooi
# socket - WEET NIE

… comments

Signed-off-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
@chrisbra
Copy link
Copy Markdown
Member

thanks

@chrisbra chrisbra closed this in 52169db Mar 31, 2026
@e-kwsm e-kwsm deleted the update-po branch March 31, 2026 19:20
zeertzjq added a commit to zeertzjq/neovim that referenced this pull request Mar 31, 2026
…es and remove stray comments

closes: vim/vim#19860

vim/vim@52169db

Co-authored-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
zeertzjq added a commit to neovim/neovim that referenced this pull request Mar 31, 2026
…es and remove stray comments

closes: vim/vim#19860

vim/vim@52169db

Co-authored-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants