summaryrefslogtreecommitdiff
path: root/src/po
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-11-16 18:49:50 +0100
committerBram Moolenaar <Bram@vim.org>2019-11-16 18:49:50 +0100
commite53ec39270c805a95e405812e4c463c87a150eda (patch)
tree82dc81132d1911bc1265cef0d997b1ab1a8832b9 /src/po
parentdb3a205147ce2c335d5c2181c1f789277f8775b0 (diff)
downloadvim-git-e53ec39270c805a95e405812e4c463c87a150eda.tar.gz
patch 8.1.2305: no warning for wrong entry in translationsv8.1.2305
Problem: No warning for wrong entry in translations. Solution: Check semicolons in keywords entry of desktop file.
Diffstat (limited to 'src/po')
-rw-r--r--src/po/check.vim11
1 files changed, 11 insertions, 0 deletions
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'