Skip to content

Commit

Permalink
patch 8.0.0726: translations cleanup script is too conservative
Browse files Browse the repository at this point in the history
Problem:    Translations cleanup script is too conservative.
Solution:   Also delete untranslated messages.
  • Loading branch information
brammool committed Jul 16, 2017
1 parent 938783d commit 4d2ba82
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/po/cleanup.vim
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,18 @@
let s:was_diff = &diff
setl nodiff

silent g/^#: /d
" untranslated message preceded by c-format or comment
silent g/^#, c-format\n#/.d
silent g/^#\..*\n#/.d

silent g/^#[:~] /d
silent g/^#, fuzzy\(, .*\)\=\nmsgid ""\@!/.+1,/^$/-1s/^/#\~ /
silent g/^msgstr"/s//msgstr "/
silent g/^msgid"/s//msgid "/
silent g/^msgstr ""\(\n"\)\@!/?^msgid?,.s/^/#\~ /

silent g/^\n\n\n/.d

if s:was_diff
setl diff
endif
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -769,6 +769,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
726,
/**/
725,
/**/
Expand Down

0 comments on commit 4d2ba82

Please sign in to comment.