From e53ec39270c805a95e405812e4c463c87a150eda Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 16 Nov 2019 18:49:50 +0100 Subject: [PATCH] patch 8.1.2305: no warning for wrong entry in translations Problem: No warning for wrong entry in translations. Solution: Check semicolons in keywords entry of desktop file. --- src/po/check.vim | 11 +++++++++++ src/version.c | 2 ++ 2 files changed, 13 insertions(+) diff --git a/src/po/check.vim b/src/po/check.vim index 672b4f37d..454a05369 100644 --- a/src/po/check.vim +++ b/src/po/check.vim @@ -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' diff --git a/src/version.c b/src/version.c index b08106c01..8e2479ee8 100644 --- a/src/version.c +++ b/src/version.c @@ -741,6 +741,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2305, /**/ 2304, /**/