1
0
forked from aniani/vim

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.
This commit is contained in:
Bram Moolenaar
2019-11-16 18:49:50 +01:00
parent db3a205147
commit e53ec39270
2 changed files with 13 additions and 0 deletions

View File

@@ -44,6 +44,17 @@ let wsv = winsaveview()
let error = 0 let error = 0
while 1 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" if getline(line('.') - 1) !~ "no-c-format"
" go over the "msgid" and "msgid_plural" lines " go over the "msgid" and "msgid_plural" lines
let prevfromline = 'foobar' let prevfromline = 'foobar'

View File

@@ -741,6 +741,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
2305,
/**/ /**/
2304, 2304,
/**/ /**/