annotate src/po/fixfilenames.vim @ 29235:fbcbc953c2ec

Added tag v8.2.5136 for changeset 96ff6c230a66c0b91cb6b1aebbb3869cb5fb0414
author Bram Moolenaar <Bram@vim.org>
date Sun, 19 Jun 2022 21:15:03 +0200
parents aa91480771fe
children
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