Patch 8.1.2305

7 views
Skip to first unread message

Bram Moolenaar

unread,
Nov 16, 2019, 12:50:23 PM11/16/19
to vim...@googlegroups.com

Patch 8.1.2305
Problem: No warning for wrong entry in translations.
Solution: Check semicolons in keywords entry of desktop file.
Files: src/po/check.vim


*** ../vim-8.1.2304/src/po/check.vim 2018-06-24 18:04:45.440091103 +0200
--- src/po/check.vim 2019-11-16 18:46:17.848850789 +0100
***************
*** 44,49 ****
--- 44,60 ----
let error = 0

while 1
+ let lnum = line('.')
+ if getline(lnum) =~ 'msgid "Text;.*;"'
+ if getline(lnum + 1) !~ '^msgstr "\([^;]\+;\)\+"'
+ echomsg 'Mismatching ; in line ' . (lnum + 1)
+ echomsg 'Did you forget the trailing semicolon?'
+ if error == 0
+ let error = lnum + 1
+ endif
+ endif
+ endif
+
if getline(line('.') - 1) !~ "no-c-format"
" go over the "msgid" and "msgid_plural" lines
let prevfromline = 'foobar'
*** ../vim-8.1.2304/src/version.c 2019-11-16 18:21:57.990848019 +0100
--- src/version.c 2019-11-16 18:48:57.205152946 +0100
***************
*** 743,744 ****
--- 743,746 ----
{ /* Add new patch number below this line */
+ /**/
+ 2305,
/**/

--
Where do you want to crash today?

/// Bram Moolenaar -- Br...@Moolenaar.net -- 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 ///
Reply all
Reply to author
Forward
0 new messages