Mercurial > vim
comparison src/po/check.vim @ 21998:4d5081260d5a v8.2.1548
patch 8.2.1548: cannot move position of "%%" in message translations
Commit: https://github.com/vim/vim/commit/0b8cf278eca45241033033f9bf389e54669a8654
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Aug 30 19:42:06 2020 +0200
patch 8.2.1548: cannot move position of "%%" in message translations
Problem: Cannot move position of "%%" in message translations. (Emir Sar?)
Solution: Improve the check script.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 30 Aug 2020 19:45:03 +0200 |
parents | 57927799c27e |
children | 7fb63ad3a9ab |
comparison
equal
deleted
inserted
replaced
21997:b67dc7207a8e | 21998:4d5081260d5a |
---|---|
20 let idline .= substitute(line, '"\(.*\)"$', '\1', '') | 20 let idline .= substitute(line, '"\(.*\)"$', '\1', '') |
21 endwhile | 21 endwhile |
22 | 22 |
23 " remove '%', not used for formatting. | 23 " remove '%', not used for formatting. |
24 let idline = substitute(idline, "'%'", '', 'g') | 24 let idline = substitute(idline, "'%'", '', 'g') |
25 let idline = substitute(idline, "%%", '', 'g') | |
25 | 26 |
26 " remove '%' used for plural forms. | 27 " remove '%' used for plural forms. |
27 let idline = substitute(idline, '\\nPlural-Forms: .\+;\\n', '', '') | 28 let idline = substitute(idline, '\\nPlural-Forms: .\+;\\n', '', '') |
28 | 29 |
29 " remove everything but % items. | 30 " remove everything but % items. |