Skip to content

Commit e53ec39

Browse files
committed
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.
1 parent db3a205 commit e53ec39

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

src/po/check.vim

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,17 @@ let wsv = winsaveview()
4444
let error = 0
4545

4646
while 1
47+
let lnum = line('.')
48+
if getline(lnum) =~ 'msgid "Text;.*;"'
49+
if getline(lnum + 1) !~ '^msgstr "\([^;]\+;\)\+"'
50+
echomsg 'Mismatching ; in line ' . (lnum + 1)
51+
echomsg 'Did you forget the trailing semicolon?'
52+
if error == 0
53+
let error = lnum + 1
54+
endif
55+
endif
56+
endif
57+
4758
if getline(line('.') - 1) !~ "no-c-format"
4859
" go over the "msgid" and "msgid_plural" lines
4960
let prevfromline = 'foobar'

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,8 @@ static char *(features[]) =
741741

742742
static int included_patches[] =
743743
{ /* Add new patch number below this line */
744+
/**/
745+
2305,
744746
/**/
745747
2304,
746748
/**/

0 commit comments

Comments
 (0)