To: vim_dev@googlegroups.com Subject: Patch 8.1.2305 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ 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 -- Bram@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 ///