Updating Vim translations

36 views
Skip to first unread message

Bram Moolenaar

unread,
Jul 11, 2017, 4:40:56 PM7/11/17
to Danie Roux, Ernest Adrogué, Jiøí Pavlovský, Georg Dahn, Mike Williams, Dominique Pelle, Omar Campagne, Flammie A Pirinen, Kevin Patrick Scannell, Irish, Antonio Colombo, MURAOKA Taro, SungHyun Nam, GTP Korean, Oyvind A. Holm, Norwegian, Dutch, Mikolaj Machowski, Eduardo S. Dobay, Brazilian Portuguese, Sergey Alyoshin, Lubomir Host, Slovak, Johan Svedberg, Swedish, sak...@gmail.com, Bohdan Vlasyuk, Phan Vinh Thinh, Yuheng Xie, Simplified Chinese, Hung-Te Lin, vim...@vim.org

Not too long ago the text that shows when pressing CTRL-C was updated
from:

"Type :quit<Enter> to exit Vim"

to:

"Type :qa! and press <Enter> to abandon all changes and exit Vim"

Please update the translation to include this change.
It is especially useful for users that are not familiar with Vim, and
possibly don't understand the English message.

Please also update the translations for any other changes since the last
time the translations were updated.

--
I wish there was a knob on the TV to turn up the intelligence.
There's a knob called "brightness", but it doesn't seem to work.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

Christian Brabandt

unread,
Jul 16, 2017, 5:27:21 AM7/16/17
to vim...@vim.org

Bram,
since you mentioned in the last todo list, that there is not maintainer
for the German language available anymore, I did update the de.po file.

Please find it attached here as patch and as complete file. Hopefully I
did everything correct.

Best,
Christian

On Di, 11 Jul 2017, Bram Moolenaar wrote:

>
> Not too long ago the text that shows when pressing CTRL-C was updated
> from:
>
> "Type :quit<Enter> to exit Vim"
>
> to:
>
> "Type :qa! and press <Enter> to abandon all changes and exit Vim"
>
> Please update the translation to include this change.
> It is especially useful for users that are not familiar with Vim, and
> possibly don't understand the English message.
>
> Please also update the translations for any other changes since the last
> time the translations were updated.
>

Mit freundlichen Grüßen
Christian
--
Es gibt Dinge, die muß man tun, sonst ist man kein Mensch, sondern nur
ein Häuflein Dreck.
-- Astrid Lindgren
de.po.gz
de.po.patch.gz

Bram Moolenaar

unread,
Jul 16, 2017, 9:31:43 AM7/16/17
to vim...@googlegroups.com, Christian Brabandt, vim...@vim.org

Christian Brabandt wrote:

> since you mentioned in the last todo list, that there is not maintainer
> for the German language available anymore, I did update the de.po file.
>
> Please find it attached here as patch and as complete file. Hopefully I
> did everything correct.

Thanks!

One correction:

msgid "netbeans is not supported with this GUI\n"
msgstr "netbeans wird in dieser GUI nicht unterstützt\n"

msgstr was missing the "\n".

--
Microsoft says that MS-Windows is much better for you than Linux.
That's like the Pope saying that catholicism is much better for
you than protestantism.

Christian Brabandt

unread,
Jul 16, 2017, 3:44:52 PM7/16/17
to vim...@googlegroups.com, vim...@vim.org

On So, 16 Jul 2017, Bram Moolenaar wrote:

> One correction:
>
> msgid "netbeans is not supported with this GUI\n"
> msgstr "netbeans wird in dieser GUI nicht unterstützt\n"
>
> msgstr was missing the "\n".

You have good eyes :)

Thanks and sorry for that.

How about the following change to check.vim:
This will also check for a missing \n at the end of msgstr lines (but
only for single message lines). Also, use winsaveview to remember the
cursor position and do not jump to the beginning of the file in case no
error was found.

diff --git a/src/po/check.vim b/src/po/check.vim
index 256c5387d..545d2548e 100644
--- a/src/po/check.vim
+++ b/src/po/check.vim
@@ -32,6 +32,7 @@ endfunc

" This only works when 'wrapscan' is not set.
let s:save_wrapscan = &wrapscan
+let wsv = winsaveview()
set nowrapscan

" Start at the first "msgid" line.
@@ -110,6 +111,14 @@ if search('msgid "\("\n"\)\?\([EW][0-9]\+:\).*\nmsgstr "\("\n"\)\?[^"]\@=\2\@!')
endif
endif

+" Check that the \n at the end of the msid line is also present in the msgstr
+" line.
+1
+if error == 0 && search('msgid ".*\\n"\nmsgstr ".*\(\\n\)\@<!"\n\n') > 0
+ echomsg 'Missing "\\n" in line ' . (line('.')+1)
+ let error = (line('.')+1)
+endif
+
if error == 0
echomsg "OK"
else
@@ -117,6 +126,9 @@ else
endif

let &wrapscan = s:save_wrapscan
+if !error
+ call winrestview(wsv)
+endif
unlet s:save_wrapscan

endif



Best,
Christian
--
Das Lesen im Bett zeugt von völliger Hingabe an die Kunst: Man
überläßt es dem Dichter, wann man einschläft.
-- Ernst R. Hauschka
Reply all
Reply to author
Forward
0 new messages