commit bbbcd5393dc1ad02effc87d55665412ffaa19cc8
parent 5568267ccb94924b9dcf7bfa5d52da0f16d161e4
Author: zeertzjq <zeertzjq@outlook.com>
Date: Thu, 27 Oct 2022 22:07:30 +0800
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)
https://github.com/vim/vim/commit/fa57335e532e505ce9229ddb2354a593fb057561
Also update gettext() docs to match latest Vim.
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt
@@ -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
diff --git a/src/nvim/po/fixfilenames.vim b/src/nvim/po/fixfilenames.vim
@@ -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