mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 13:38:34 +00:00
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)
aaef1bae3c
This commit is contained in:
@@ -146,6 +146,16 @@ while 1
|
|||||||
endif
|
endif
|
||||||
endwhile
|
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 error == 0
|
||||||
" If all was OK restore the view.
|
" If all was OK restore the view.
|
||||||
call winrestview(wsv)
|
call winrestview(wsv)
|
||||||
|
Reference in New Issue
Block a user