aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-07-23 12:24:50 -0400
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-07-23 12:33:39 -0400
commit45a2c6543c00646569ba5a4ad0baf47f05b62571 (patch)
tree78223704f7fd1cad0534d7f2aabdae1f96018418
parent1ed5abfe888b364e372ac280fb2ebf971f4fce23 (diff)
downloadrneovim-45a2c6543c00646569ba5a4ad0baf47f05b62571.tar.gz
rneovim-45a2c6543c00646569ba5a4ad0baf47f05b62571.tar.bz2
rneovim-45a2c6543c00646569ba5a4ad0baf47f05b62571.zip
vim-patch:8.0.0830: translating messages is not ideal
Problem: Translating messages is not ideal. Solution: Add a remark about obsolete messages. Use msgfmt in the check script. (Christian Brabandt) https://github.com/vim/vim/commit/aaef1bae3cc331e7a7bb9c698e707c90cd4ded15
-rw-r--r--src/nvim/po/check.vim10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/nvim/po/check.vim b/src/nvim/po/check.vim
index ba5cad6c3e..2350e00e9a 100644
--- a/src/nvim/po/check.vim
+++ b/src/nvim/po/check.vim
@@ -146,6 +146,16 @@ while 1
endif
endwhile
+" Check that the file is well formed according to msgfmts understanding
+if executable("msgfmt")
+ let filename = expand("%")
+ let a = system("msgfmt --statistics OLD_PO_FILE_INPUT=yes" . filename)
+ if v:shell_error != 0
+ let error = matchstr(a, filename.':\zs\d\+\ze:')+0
+ for line in split(a, '\n') | echomsg line | endfor
+ endif
+endif
+
if error == 0
" If all was OK restore the view.
call winrestview(wsv)