vim-patch:8.0.0726: translations cleanup script is too conservative

Problem:    Translations cleanup script is too conservative.
Solution:   Also delete untranslated messages.
4d2ba822fd
This commit is contained in:
Jan Edmund Lazo 2018-07-23 10:29:25 -04:00
parent c8e7a447c5
commit ddc243f32a

View File

@ -8,12 +8,18 @@
let s:was_diff = &diff
setl nodiff
silent g/^#: /d
" untranslated message preceded by c-format or comment
silent g/^#, c-format\n#/.d
silent g/^#\..*\n#/.d
silent g/^#[:~] /d
silent g/^#, fuzzy\(, .*\)\=\nmsgid ""\@!/.+1,/^$/-1s/^/#\~ /
silent g/^msgstr"/s//msgstr "/
silent g/^msgid"/s//msgid "/
silent g/^msgstr ""\(\n"\)\@!/?^msgid?,.s/^/#\~ /
silent g/^\n\n\n/.d
if s:was_diff
setl diff
endif