# HG changeset patch # User Bram Moolenaar # Date 1573927204 -3600 # Node ID 57927799c27e62de494a68867b854f19355aec0f # Parent f2b29b42312ba3631a9e5d88d98d5e672ec02c87 patch 8.1.2305: no warning for wrong entry in translations Commit: https://github.com/vim/vim/commit/e53ec39270c805a95e405812e4c463c87a150eda Author: Bram Moolenaar Date: Sat Nov 16 18:49:50 2019 +0100 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. diff --git a/src/po/check.vim b/src/po/check.vim --- a/src/po/check.vim +++ b/src/po/check.vim @@ -44,6 +44,17 @@ 1 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 --- a/src/version.c +++ b/src/version.c @@ -742,6 +742,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2305, +/**/ 2304, /**/ 2303,