Mercurial > vim
view src/po/cleanup.vim @ 23907:c8aa6d26e6e1 v8.2.2496
patch 8.2.2496: insufficien testing for text jumping fix
Commit: https://github.com/vim/vim/commit/5202929dab58402a5f3cd9c231e09abb5c451c56
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Feb 10 21:20:30 2021 +0100
patch 8.2.2496: insufficien testing for text jumping fix
Problem: Insufficien testing for text jumping fix.
Solution: Add another test case.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 10 Feb 2021 21:30:04 +0100 |
parents | 325a1dbf662d |
children | 5d26e9a7f8f2 |
line wrap: on
line source
" Vim script to cleanup a .po file: " - Remove line numbers (avoids that diffs are messy). " - Comment-out fuzzy and empty messages. " - Make sure there is a space before the string (required for Solaris). " Requires Vim 6.0 or later (because of multi-line search patterns). " Disable diff mode, because it makes this very slow let s:was_diff = &diff setl nodiff " 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