annotate src/po/fixfilenames.vim @ 29417:1d47d224a1cc v9.0.0050

patch 9.0.0050: split else-of is confusing Commit: https://github.com/vim/vim/commit/b26592a84c8f578c8fbe83cf02ebb47453de1683 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jul 12 17:34:31 2022 +0100 patch 9.0.0050: split else-of is confusing Problem: Split else-of is confusing. Solution: Join the lines. (closes https://github.com/vim/vim/issues/10696)
author Bram Moolenaar <Bram@vim.org>
date Tue, 12 Jul 2022 18:45:04 +0200
parents aa91480771fe
children 04563887d70e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
21989
52e970719f4b patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
1 " Invoked with the name "vim.pot" and a list of Vim script names.
52e970719f4b patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
2 " Converts them to a .js file, stripping comments, so that xgettext works.
52e970719f4b patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
3
52e970719f4b patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
4 set shortmess+=A
52e970719f4b patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
5
52e970719f4b patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
6 for name in argv()[1:]
52e970719f4b patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
7 let jsname = fnamemodify(name, ":t:r") .. ".js"
22071
aa91480771fe patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents: 21989
diff changeset
8 exe "%s+" .. jsname .. "+" .. substitute(name, '\\', '/', 'g') .. "+"
21989
52e970719f4b patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
9 endfor
52e970719f4b patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
10
52e970719f4b patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
11 write
52e970719f4b patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
12 last
52e970719f4b patch 8.2.1544: cannot translate messages in a Vim script
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
13 quit