Bram,
I noticed another error in the German translation. The translation 
"Abkürzung" for abbreviation is a bit too literal, I think better would 
be "Kurzform". So I attach an updated de.po file. Sorry...

On Mo, 30 Apr 2018, Christian Brabandt wrote:

> BTW: I noticed that gettext now makes use of plural forms. I am not 
> sure, if this is supported everywhere, but the check script might need 
> to check for some line like this in the header:
> "Plural-Forms:
> and the corresponding msgid_plural checks. I might be able to have a 
> look at this later this week.

How about this check:
diff --git a/src/po/check.vim b/src/po/check.vim
index a1ec6237e..0c734af68 100644
--- a/src/po/check.vim
+++ b/src/po/check.vim
@@ -156,6 +156,19 @@ if executable("msgfmt")
   endif
 endif

+" Check that the plural form is properly initialized
+1
+let plural = search('^msgid_plural ', 'n')
+if (plural && search('^"Plural-Forms: ', 'n') == 0) ||
+      \ (plural && search('^msgstr\[0\] ".\+"', 'n') != plural + 1)
+  if search('^"Plural-Forms: ', 'n') == 0
+    echomsg "Missing Plural header"
+    let error = search('\(^"[A-Za-z-_]\+: .*\\n"\n\)\+\zs', 'n') - 1
+  else
+    let error = plural
+  endif
+endif
+
 if error == 0
   " If all was OK restore the view.
   call winrestview(wsv)


Best,
Christian
-- 
Sich selber Wort halten schwerer als andern.
                -- Jean Paul

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Attachment: de.po.gz
Description: application/gzip

Raspunde prin e-mail lui