Mercurial > vim
changeset 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 | f2b29b42312b |
children | 44ddfa8731ae |
files | src/po/check.vim src/version.c |
diffstat | 2 files changed, 13 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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'