blob: 313f1595cd5ed5070d3ed36a0856c83ded542efd [file] [log] [blame]
Bram Moolenaar4be06f92005-07-29 22:36:03 +00001" Vim script to cleanup a .po file:
2" - Remove line numbers (avoids that diffs are messy).
3" - Comment-out fuzzy and empty messages.
4" - Make sure there is a space before the string (required for Solaris).
Bram Moolenaarb0158592005-07-22 21:54:43 +00005" Requires Vim 6.0 or later (because of multi-line search patterns).
Bram Moolenaar4be06f92005-07-29 22:36:03 +00006g/^#: /d
Bram Moolenaar071d4272004-06-13 20:20:40 +00007g/^#, fuzzy\(, .*\)\=\nmsgid ""\@!/.+1,/^$/-1s/^/#\~ /
8g/^msgstr"/s//msgstr "/
9g/^msgid"/s//msgid "/
10g/^msgstr ""\(\n"\)\@!/?^msgid?,.s/^/#\~ /