diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-07-23 10:29:25 -0400 |
---|---|---|
committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-07-23 10:29:41 -0400 |
commit | ddc243f32a8c9817ea52647cab1d9752c36385b0 (patch) | |
tree | 1b7f8d19b2de63d7aa64ecb80971471a5461da82 | |
parent | c8e7a447c5694e7e2a58f2b112530d896efa30ba (diff) | |
download | rneovim-ddc243f32a8c9817ea52647cab1d9752c36385b0.tar.gz rneovim-ddc243f32a8c9817ea52647cab1d9752c36385b0.tar.bz2 rneovim-ddc243f32a8c9817ea52647cab1d9752c36385b0.zip |
vim-patch:8.0.0726: translations cleanup script is too conservative
Problem: Translations cleanup script is too conservative.
Solution: Also delete untranslated messages.
https://github.com/vim/vim/commit/4d2ba822fd80f5b5ff6d9195a5f0fd802aabf304
-rw-r--r-- | src/nvim/po/cleanup.vim | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/nvim/po/cleanup.vim b/src/nvim/po/cleanup.vim index 24ae74ed38..b27d88092f 100644 --- a/src/nvim/po/cleanup.vim +++ b/src/nvim/po/cleanup.vim @@ -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 |