mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -07:00
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:
parent
c8e7a447c5
commit
ddc243f32a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user