comparison src/vim9compile.c @ 19411:bc880a130120 v8.2.0263

patch 8.2.0263: a few new Vim9 messages are not localized Commit: https://github.com/vim/vim/commit/df2ecddf9d0acc325c8290fbcff44de25b0c1e75 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Feb 16 15:03:48 2020 +0100 patch 8.2.0263: a few new Vim9 messages are not localized Problem: A few new Vim9 messages are not localized. Solution: Add the gettext wrapper. (Dominique Pelle, closes https://github.com/vim/vim/issues/5647)
author Bram Moolenaar <Bram@vim.org>
date Sun, 16 Feb 2020 15:15:04 +0100
parents 5b6f420e7352
children f3e8e74cb747
comparison
equal deleted inserted replaced
19410:f0993c2b3fd2 19411:bc880a130120
3310 } 3310 }
3311 3311
3312 if (oplen == 3 && !heredoc && dest != dest_global 3312 if (oplen == 3 && !heredoc && dest != dest_global
3313 && type->tt_type != VAR_STRING && type->tt_type != VAR_UNKNOWN) 3313 && type->tt_type != VAR_STRING && type->tt_type != VAR_UNKNOWN)
3314 { 3314 {
3315 emsg("E1019: Can only concatenate to string"); 3315 emsg(_("E1019: Can only concatenate to string"));
3316 goto theend; 3316 goto theend;
3317 } 3317 }
3318 3318
3319 // +=, /=, etc. require an existing variable 3319 // +=, /=, etc. require an existing variable
3320 if (idx < 0 && dest == dest_local) 3320 if (idx < 0 && dest == dest_local)
4733 compile_endblock(&cctx); 4733 compile_endblock(&cctx);
4734 line = ea.cmd; 4734 line = ea.cmd;
4735 } 4735 }
4736 else 4736 else
4737 { 4737 {
4738 emsg("E1025: using } outside of a block scope"); 4738 emsg(_("E1025: using } outside of a block scope"));
4739 goto erret; 4739 goto erret;
4740 } 4740 }
4741 if (line != NULL) 4741 if (line != NULL)
4742 line = skipwhite(ea.cmd + 1); 4742 line = skipwhite(ea.cmd + 1);
4743 continue; 4743 continue;
4993 ufunc->uf_dfunc_idx = -1; 4993 ufunc->uf_dfunc_idx = -1;
4994 --def_functions.ga_len; 4994 --def_functions.ga_len;
4995 if (errormsg != NULL) 4995 if (errormsg != NULL)
4996 emsg(errormsg); 4996 emsg(errormsg);
4997 else if (called_emsg == called_emsg_before) 4997 else if (called_emsg == called_emsg_before)
4998 emsg("E1028: compile_def_function failed"); 4998 emsg(_("E1028: compile_def_function failed"));
4999 4999
5000 // don't execute this function body 5000 // don't execute this function body
5001 ufunc->uf_lines.ga_len = 0; 5001 ufunc->uf_lines.ga_len = 0;
5002 } 5002 }
5003 5003