mirror of
https://github.com/vim/vim.git
synced 2025-10-02 05:04:20 -04:00
updated for version 7.1-312
This commit is contained in:
@@ -1,7 +1,8 @@
|
|||||||
" Vim script for checking .po files.
|
" Vim script for checking .po files.
|
||||||
"
|
"
|
||||||
" Go through the file and verify that all %...s items in "msgid" are identical
|
" Go through the file and verify that:
|
||||||
" to the ones in "msgstr".
|
" - All %...s items in "msgid" are identical to the ones in "msgstr".
|
||||||
|
" - An error or warning code in "msgid" matches the one in "msgstr".
|
||||||
|
|
||||||
if 1 " Only execute this if the eval feature is available.
|
if 1 " Only execute this if the eval feature is available.
|
||||||
|
|
||||||
@@ -56,6 +57,20 @@ while 1
|
|||||||
endif
|
endif
|
||||||
endwhile
|
endwhile
|
||||||
|
|
||||||
|
" Check that error code in msgid matches the one in msgstr.
|
||||||
|
"
|
||||||
|
" Examples of mismatches found with msgid "E123: ..."
|
||||||
|
" - msgstr "E321: ..." error code mismatch
|
||||||
|
" - msgstr "W123: ..." warning instead of error
|
||||||
|
" - msgstr "E123 ..." missing colon
|
||||||
|
" - msgstr "..." missing error code
|
||||||
|
"
|
||||||
|
1
|
||||||
|
if search('msgid "\("\n"\)\?\([EW][0-9]\+:\).*\nmsgstr "\("\n"\)\?[^"]\@=\2\@!') > 0
|
||||||
|
echo 'Mismatching error/warning code in line ' . line('.')
|
||||||
|
let error = 1
|
||||||
|
endif
|
||||||
|
|
||||||
if error == 0
|
if error == 0
|
||||||
echo "OK"
|
echo "OK"
|
||||||
endif
|
endif
|
||||||
|
@@ -666,6 +666,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
312,
|
||||||
/**/
|
/**/
|
||||||
311,
|
311,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user