Hi Bram and list, E11 output by the following procedure are not translated. q::tabn<CR> E11: Invalid in command-line window; <CR> executes, CTRL-C quits
In this procedure, the translated one is output. q:<C-w>w E11: コマンドラインでは無効です; <CR>で実行, CTRL-Cでやめる NOTE for Beginner. Actually, in order to output the translated message, it is necessary to prepare a file not attached as standard and set `:lang`. I wrote a patch. (attached) Check it out. NOTE: This issue was reported by Norio Takagi. https://github.com/vim-jp/issues/issues/1027 (in Japanese) -- Best regards, Hirohito Higashi (a.k.a. h_east) -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 3ee7056..bc6619e 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -2490,7 +2490,7 @@ do_one_cmd( && !IS_USER_CMDIDX(ea.cmdidx)) { /* Command not allowed when editing the command line. */ - errormsg = get_text_locked_msg(); + errormsg = (char_u *)_(get_text_locked_msg()); goto doend; } #ifdef FEAT_AUTOCMD