diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-10-27 22:07:30 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-10-28 08:04:57 +0800 |
commit | bbbcd5393dc1ad02effc87d55665412ffaa19cc8 (patch) | |
tree | 231d1be8bd319797096033e5197ef9d04da848c2 | |
parent | 5568267ccb94924b9dcf7bfa5d52da0f16d161e4 (diff) | |
download | rneovim-bbbcd5393dc1ad02effc87d55665412ffaa19cc8.tar.gz rneovim-bbbcd5393dc1ad02effc87d55665412ffaa19cc8.tar.bz2 rneovim-bbbcd5393dc1ad02effc87d55665412ffaa19cc8.zip |
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.
-rw-r--r-- | runtime/doc/builtin.txt | 2 | ||||
-rw-r--r-- | src/nvim/po/fixfilenames.vim | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt index 8c9c14ffde..cf12ec7568 100644 --- 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 index 65d448ce41..04bc0791c0 100644 --- 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 |