vim-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 vim/vim#6858)

fa57335e53

Also update gettext() docs to match latest Vim.
This commit is contained in:
zeertzjq
2022-10-27 22:07:30 +08:00
parent 5568267ccb
commit bbbcd5393d
2 changed files with 2 additions and 2 deletions

View File

@@ -3587,7 +3587,7 @@ gettagstack([{winnr}]) *gettagstack()*
gettext({text}) *gettext()*
Translate {text} if possible.
Translate String {text} if possible.
This is mainly for use in the distributed Vim scripts. When
generating message translations the {text} is extracted by
xgettext, the translator can add the translated message in the

View File

@@ -5,7 +5,7 @@ set shortmess+=A
for name in argv()[1:]
let jsname = fnamemodify(name, ":t:r") .. ".js"
exe "%s+" .. jsname .. "+" .. name .. "+"
exe "%s+" .. jsname .. "+" .. substitute(name, '\\', '/', 'g') .. "+"
endfor
write