home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 7.1 / 7.1.312 < prev    next >
Encoding:
Internet Message Format  |  2008-06-08  |  2.3 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 7.1.312
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.1.312
  11. Problem:    The .po files have mistakes in error numbers.
  12. Solution:   Search for these mistakes in the check script. (Dominique Pelle)
  13. Files:        src/po/check.vim
  14.  
  15.  
  16. *** ../vim-7.1.311/src/po/check.vim    Wed Nov 23 22:10:37 2005
  17. --- src/po/check.vim    Sun May 25 13:47:59 2008
  18. ***************
  19. *** 1,7 ****
  20.   " Vim script for checking .po files.
  21.   "
  22. ! " Go through the file and verify that all %...s items in "msgid" are identical
  23. ! " to the ones in "msgstr".
  24.   
  25.   if 1    " Only execute this if the eval feature is available.
  26.   
  27. --- 1,8 ----
  28.   " Vim script for checking .po files.
  29.   "
  30. ! " Go through the file and verify that:
  31. ! " - All %...s items in "msgid" are identical to the ones in "msgstr".
  32. ! " - An error or warning code in "msgid" matches the one in "msgstr".
  33.   
  34.   if 1    " Only execute this if the eval feature is available.
  35.   
  36. ***************
  37. *** 56,61 ****
  38. --- 57,76 ----
  39.     endif
  40.   endwhile
  41.   
  42. + " Check that error code in msgid matches the one in msgstr.
  43. + "
  44. + " Examples of mismatches found with msgid "E123: ..."
  45. + " - msgstr "E321: ..."    error code mismatch
  46. + " - msgstr "W123: ..."    warning instead of error
  47. + " - msgstr "E123 ..."     missing colon
  48. + " - msgstr "..."          missing error code
  49. + "
  50. + 1
  51. + if search('msgid "\("\n"\)\?\([EW][0-9]\+:\).*\nmsgstr "\("\n"\)\?[^"]\@=\2\@!') > 0
  52. +   echo 'Mismatching error/warning code in line ' . line('.')
  53. +   let error = 1
  54. + endif
  55.   if error == 0
  56.     echo "OK"
  57.   endif
  58. *** ../vim-7.1.311/src/version.c    Wed Jun  4 21:34:51 2008
  59. --- src/version.c    Mon Jun  9 14:43:59 2008
  60. ***************
  61. *** 668,669 ****
  62. --- 673,676 ----
  63.   {   /* Add new patch number below this line */
  64. + /**/
  65. +     312,
  66.   /**/
  67.  
  68. -- 
  69. hundred-and-one symptoms of being an internet addict:
  70. 24. You realize there is not a sound in the house and you have no idea where
  71.     your children are.
  72.  
  73.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  74. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  75. \\\        download, build and distribute -- http://www.A-A-P.org        ///
  76.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  77.