mirror of
https://github.com/neovim/neovim.git
synced 2025-09-05 19:08:15 +00:00
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:
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user