Mercurial > vim
annotate src/po/fixfilenames.vim @ 31798:5948cc887603 v9.0.1231
patch 9.0.1231: completion of :runtime does not handle {where} argument
Commit: https://github.com/vim/vim/commit/3770f4c9cde7b5fcd10b6fa2e665cd0b69450fb2
Author: zeertzjq <zeertzjq@outlook.com>
Date: Sun Jan 22 18:38:51 2023 +0000
patch 9.0.1231: completion of :runtime does not handle {where} argument
Problem: Completion of :runtime does not handle {where} argument.
Solution: Parse the {where} argument. (closes https://github.com/vim/vim/issues/11863)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 22 Jan 2023 19:45:04 +0100 |
parents | aa91480771fe |
children | 04563887d70e |
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 |