diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-08-01 17:40:23 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-08-01 17:40:23 +0200 |
commit | aaef1bae3cc331e7a7bb9c698e707c90cd4ded15 (patch) | |
tree | 8b8d8939a638a84b3f305086a5ab13626b376535 | |
parent | 7da346035bf5837e6f5b734c5469477d981730f8 (diff) | |
download | vim-git-aaef1bae3cc331e7a7bb9c698e707c90cd4ded15.tar.gz |
patch 8.0.0830: translating messages is not idealv8.0.0830
Problem: Translating messages is not ideal.
Solution: Add a remark about obsolete messages. Use msgfmt in the check
script. (Christian Brabandt)
-rw-r--r-- | src/po/README.txt | 8 | ||||
-rw-r--r-- | src/po/check.vim | 10 | ||||
-rw-r--r-- | src/version.c | 2 |
3 files changed, 19 insertions, 1 deletions
diff --git a/src/po/README.txt b/src/po/README.txt index a403a2f23..8efed9651 100644 --- a/src/po/README.txt +++ b/src/po/README.txt @@ -84,7 +84,13 @@ language. You should include your name and E-mail address instead, for example: msgstr "Berichten übersetzt bei: John Doe <john@doe.org>" -(3) Clean up +(3) Remove unused messages (optional) + Remove messages that have been marked as obsolete. + Such messages start with "#~". + + The cleanup script will also do that (see next step). + +(4) Clean up This is very important to make sure the translation works on all systems. Comment-out all non-translated strings. There are two types: - items marked with "#, fuzzy" diff --git a/src/po/check.vim b/src/po/check.vim index 3bcbef395..41df8f88a 100644 --- a/src/po/check.vim +++ b/src/po/check.vim @@ -143,6 +143,16 @@ while 1 endif endwhile +" Check that the file is well formed according to msgfmts understanding +if executable("msgfmt") + let filename = expand("%") + let a = system("msgfmt --statistics OLD_PO_FILE_INPUT=yes" . filename) + if v:shell_error != 0 + let error = matchstr(a, filename.':\zs\d\+\ze:')+0 + for line in split(a, '\n') | echomsg line | endfor + endif +endif + if error == 0 " If all was OK restore the view. call winrestview(wsv) diff --git a/src/version.c b/src/version.c index cd8a4cfa1..02d43b6c8 100644 --- a/src/version.c +++ b/src/version.c @@ -770,6 +770,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 830, +/**/ 829, /**/ 828, |