Mercurial > vim
comparison src/po/check.vim @ 18625:57927799c27e v8.1.2305
patch 8.1.2305: no warning for wrong entry in translations
Commit: https://github.com/vim/vim/commit/e53ec39270c805a95e405812e4c463c87a150eda
Author: Bram Moolenaar <Bram@vim.org>
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 16 Nov 2019 19:00:04 +0100 |
parents | b79453d0d01c |
children | 4d5081260d5a |
comparison
equal
deleted
inserted
replaced
18624:f2b29b42312b | 18625:57927799c27e |
---|---|
42 " When an error is detected this is set to the line number. | 42 " When an error is detected this is set to the line number. |
43 " Note: this is used in the Makefile. | 43 " Note: this is used in the Makefile. |
44 let error = 0 | 44 let error = 0 |
45 | 45 |
46 while 1 | 46 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 | |
47 if getline(line('.') - 1) !~ "no-c-format" | 58 if getline(line('.') - 1) !~ "no-c-format" |
48 " go over the "msgid" and "msgid_plural" lines | 59 " go over the "msgid" and "msgid_plural" lines |
49 let prevfromline = 'foobar' | 60 let prevfromline = 'foobar' |
50 while 1 | 61 while 1 |
51 let fromline = GetMline() | 62 let fromline = GetMline() |