mirror of
https://github.com/neovim/neovim.git
synced 2026-04-26 01:04:10 +00:00
Problem: Messages in globals.h not translated, xgettext on MS-Windows not
fully supported.
Solution: Add globals.h to list of input files. Update MS-Windows makefiles
to improve message translations. (Ken Takata, closes vim/vim#6858)
fa57335e53
Also update gettext() docs to match latest Vim.
14 lines
329 B
VimL
14 lines
329 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
|
|
|
|
for name in argv()[1:]
|
|
let jsname = fnamemodify(name, ":t:r") .. ".js"
|
|
exe "%s+" .. jsname .. "+" .. substitute(name, '\\', '/', 'g') .. "+"
|
|
endfor
|
|
|
|
write
|
|
last
|
|
quit
|