Skip to content

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

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

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 <[email protected]>, 2001
# Edited: Jean Jordaan (njj) <[email protected]>, 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 <[email protected]>, 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

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.

1 participant