bcd06b3
To: vim-dev@vim.org
bcd06b3
Subject: Patch 7.2.249
bcd06b3
Fcc: outbox
bcd06b3
From: Bram Moolenaar <Bram@moolenaar.net>
bcd06b3
Mime-Version: 1.0
bcd06b3
Content-Type: text/plain; charset=UTF-8
bcd06b3
Content-Transfer-Encoding: 8bit
bcd06b3
------------
bcd06b3
bcd06b3
Patch 7.2.249
bcd06b3
Problem:    The script to check .po files can't handle '%' in plural forms.
bcd06b3
Solution:   Remove "Plural-Forms:" from the checked string.
bcd06b3
Files:	    src/po/check.vim
bcd06b3
bcd06b3
bcd06b3
*** ../vim-7.2.248/src/po/check.vim	2008-06-09 14:45:38.000000000 +0200
bcd06b3
--- src/po/check.vim	2009-09-11 12:37:56.000000000 +0200
bcd06b3
***************
bcd06b3
*** 23,28 ****
bcd06b3
--- 23,31 ----
bcd06b3
    " remove '%', not used for formatting.
bcd06b3
    let idline = substitute(idline, "'%'", '', 'g')
bcd06b3
  
bcd06b3
+   " remove '%' used for plural forms.
bcd06b3
+   let idline = substitute(idline, '\\nPlural-Forms: .\+;\\n', '', '')
bcd06b3
+ 
bcd06b3
    " remove everything but % items.
bcd06b3
    return substitute(idline, '[^%]*\(%[-+ #''.0-9*]*l\=[dsuxXpoc%]\)\=', '\1', 'g')
bcd06b3
  endfunc
bcd06b3
*** ../vim-7.2.248/src/version.c	2009-09-11 12:48:56.000000000 +0200
bcd06b3
--- src/version.c	2009-09-11 12:59:18.000000000 +0200
bcd06b3
***************
bcd06b3
*** 678,679 ****
bcd06b3
--- 678,681 ----
bcd06b3
  {   /* Add new patch number below this line */
bcd06b3
+ /**/
bcd06b3
+     249,
bcd06b3
  /**/
bcd06b3
bcd06b3
-- 
bcd06b3
If evolution theories are correct, humans will soon grow a third
bcd06b3
hand for operating the mouse.
bcd06b3
bcd06b3
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
bcd06b3
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
bcd06b3
\\\        download, build and distribute -- http://www.A-A-P.org        ///
bcd06b3
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///