view src/po/fixfilenames.vim @ 22071:aa91480771fe v8.2.1585

patch 8.2.1585: messages in globals.h not translated Commit: https://github.com/vim/vim/commit/fa57335e532e505ce9229ddb2354a593fb057561 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Sep 4 13:53:00 2020 +0200 patch 8.2.1585: messages in globals.h not translated 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 #6858)
author Bram Moolenaar <Bram@vim.org>
date Fri, 04 Sep 2020 14:00:04 +0200
parents 52e970719f4b
children
line wrap: on
line source

" 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