mirror of
https://github.com/vim/vim
synced 2025-04-02 16:06:45 +02:00
Problem: translation of vim scripts can be improved (after v9.1.0509) Solution: improve documentation, add tests, include missing libraries for the Windows CI (RestorerZ) closes: #15100 Signed-off-by: RestorerZ <restorer@mail2k.ru> Signed-off-by: Christian Brabandt <cb@256bit.org>
15 lines
392 B
VimL
15 lines
392 B
VimL
" Invoked with the name "vim.pot" and a list of Vim script names.
|
|
" Converts them to a .js file, stripping comments, so that xgettext works.
|
|
|
|
set shortmess+=A
|
|
|
|
let s:namenum = 0
|
|
for s:name in argv()[1:]
|
|
let s:jsname = fnamemodify(s:name, ":t:r") .. s:namenum .. ".js"
|
|
exe "%s+" .. s:jsname .. "+" .. substitute(s:name, '\\', '/', 'g') .. "+ge"
|
|
let s:namenum +=1
|
|
endfor
|
|
|
|
write
|
|
last
|
|
quit
|