blob: 323aebab049ba39b6380b305acb2852a5cd700e6 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001" Vim script to cleanup a .po file: comment-out fuzzy and empty messages.
2" Make sure there is a space before the string (required for Solaris).
Bram Moolenaarb0158592005-07-22 21:54:43 +00003" Requires Vim 6.0 or later (because of multi-line search patterns).
Bram Moolenaar071d4272004-06-13 20:20:40 +00004g/^#, fuzzy\(, .*\)\=\nmsgid ""\@!/.+1,/^$/-1s/^/#\~ /
5g/^msgstr"/s//msgstr "/
6g/^msgid"/s//msgid "/
7g/^msgstr ""\(\n"\)\@!/?^msgid?,.s/^/#\~ /