Karsten Hopp 972b75
To: vim-dev@vim.org
Karsten Hopp 972b75
Subject: Patch 7.1.312
Karsten Hopp 972b75
Fcc: outbox
Karsten Hopp 972b75
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 972b75
Mime-Version: 1.0
Karsten Hopp 972b75
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp 972b75
Content-Transfer-Encoding: 8bit
Karsten Hopp 972b75
------------
Karsten Hopp 972b75
Karsten Hopp 972b75
Patch 7.1.312
Karsten Hopp 972b75
Problem:    The .po files have mistakes in error numbers.
Karsten Hopp 972b75
Solution:   Search for these mistakes in the check script. (Dominique Pelle)
Karsten Hopp 972b75
Files:	    src/po/check.vim
Karsten Hopp 972b75
Karsten Hopp 972b75
Karsten Hopp 972b75
*** ../vim-7.1.311/src/po/check.vim	Wed Nov 23 22:10:37 2005
Karsten Hopp 972b75
--- src/po/check.vim	Sun May 25 13:47:59 2008
Karsten Hopp 972b75
***************
Karsten Hopp 972b75
*** 1,7 ****
Karsten Hopp 972b75
  " Vim script for checking .po files.
Karsten Hopp 972b75
  "
Karsten Hopp 972b75
! " Go through the file and verify that all %...s items in "msgid" are identical
Karsten Hopp 972b75
! " to the ones in "msgstr".
Karsten Hopp 972b75
  
Karsten Hopp 972b75
  if 1	" Only execute this if the eval feature is available.
Karsten Hopp 972b75
  
Karsten Hopp 972b75
--- 1,8 ----
Karsten Hopp 972b75
  " Vim script for checking .po files.
Karsten Hopp 972b75
  "
Karsten Hopp 972b75
! " Go through the file and verify that:
Karsten Hopp 972b75
! " - All %...s items in "msgid" are identical to the ones in "msgstr".
Karsten Hopp 972b75
! " - An error or warning code in "msgid" matches the one in "msgstr".
Karsten Hopp 972b75
  
Karsten Hopp 972b75
  if 1	" Only execute this if the eval feature is available.
Karsten Hopp 972b75
  
Karsten Hopp 972b75
***************
Karsten Hopp 972b75
*** 56,61 ****
Karsten Hopp 972b75
--- 57,76 ----
Karsten Hopp 972b75
    endif
Karsten Hopp 972b75
  endwhile
Karsten Hopp 972b75
  
Karsten Hopp 972b75
+ " Check that error code in msgid matches the one in msgstr.
Karsten Hopp 972b75
+ "
Karsten Hopp 972b75
+ " Examples of mismatches found with msgid "E123: ..."
Karsten Hopp 972b75
+ " - msgstr "E321: ..."    error code mismatch
Karsten Hopp 972b75
+ " - msgstr "W123: ..."    warning instead of error
Karsten Hopp 972b75
+ " - msgstr "E123 ..."     missing colon
Karsten Hopp 972b75
+ " - msgstr "..."          missing error code
Karsten Hopp 972b75
+ "
Karsten Hopp 972b75
+ 1
Karsten Hopp 972b75
+ if search('msgid "\("\n"\)\?\([EW][0-9]\+:\).*\nmsgstr "\("\n"\)\?[^"]\@=\2\@!') > 0
Karsten Hopp 972b75
+   echo 'Mismatching error/warning code in line ' . line('.')
Karsten Hopp 972b75
+   let error = 1
Karsten Hopp 972b75
+ endif
Karsten Hopp 972b75
+ 
Karsten Hopp 972b75
  if error == 0
Karsten Hopp 972b75
    echo "OK"
Karsten Hopp 972b75
  endif
Karsten Hopp 972b75
*** ../vim-7.1.311/src/version.c	Wed Jun  4 21:34:51 2008
Karsten Hopp 972b75
--- src/version.c	Mon Jun  9 14:43:59 2008
Karsten Hopp 972b75
***************
Karsten Hopp 972b75
*** 668,669 ****
Karsten Hopp 972b75
--- 673,676 ----
Karsten Hopp 972b75
  {   /* Add new patch number below this line */
Karsten Hopp 972b75
+ /**/
Karsten Hopp 972b75
+     312,
Karsten Hopp 972b75
  /**/
Karsten Hopp 972b75
Karsten Hopp 972b75
-- 
Karsten Hopp 972b75
hundred-and-one symptoms of being an internet addict:
Karsten Hopp 972b75
24. You realize there is not a sound in the house and you have no idea where
Karsten Hopp 972b75
    your children are.
Karsten Hopp 972b75
Karsten Hopp 972b75
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 972b75
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 972b75
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 972b75
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///