]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.1.2305: no warning for wrong entry in translations v8.1.2305
authorBram Moolenaar <Bram@vim.org>
Sat, 16 Nov 2019 17:49:50 +0000 (18:49 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 16 Nov 2019 17:49:50 +0000 (18:49 +0100)
Problem:    No warning for wrong entry in translations.
Solution:   Check semicolons in keywords entry of desktop file.

src/po/check.vim
src/version.c

index 672b4f37d29779f801c2a23e52cd62678ef22bc0..454a0536925380e4c50a235241058f1707a75532 100644 (file)
@@ -44,6 +44,17 @@ let wsv = winsaveview()
 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'
index b08106c014a02f441ea95d937eb5ad084fe61280..8e2479ee842155a59efec96b8c3d7301dc98b879 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2305,
 /**/
     2304,
 /**/