Patch 8.0.1778
Problem: Script to check translations does not always work.
Solution: Go to first line before searching for MIME.
Files: src/po/check.vim
*** ../vim-8.0.1777/src/po/check.vim 2017-08-01 18:52:50.729522700 +0200
--- src/po/check.vim 2018-04-30 13:52:45.108820472 +0200
***************
*** 121,126 ****
--- 121,127 ----
" Check that the \n at the end of the msgid line is also present in the msgstr
" line. Skip over the header.
+ 1
/^"MIME-Version:
while 1
let lnum = search('^msgid\>')
***************
*** 146,152 ****
" 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
--- 147,156 ----
" Check that the file is well formed according to msgfmts understanding
if executable("msgfmt")
let filename = expand("%")
! " Newer msgfmt does not take OLD_PO_FILE_INPUT argument, must be in
! " environment.
! let $OLD_PO_FILE_INPUT = 'yes'
! let a = system("msgfmt --statistics " . filename)
if v:shell_error != 0
let error = matchstr(a, filename.':\zs\d\+\ze:')+0
for line in split(a, '\n') | echomsg line | endfor
*** ../vim-8.0.1777/src/version.c 2018-04-30 15:40:39.485735708 +0200
--- src/version.c 2018-04-30 15:43:52.364487180 +0200
***************
*** 763,764 ****
--- 763,766 ----
{ /* Add new patch number below this line */
+ /**/
+ 1778,
/**/
--
Yah, well, we had to carve our electrons out of driftwood we'd
find. In the winter. Uphill. Both ways.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.