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