diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-02-16 15:03:48 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-02-16 15:03:48 +0100 |
commit | df2ecddf9d0acc325c8290fbcff44de25b0c1e75 (patch) | |
tree | 93d7862e3d746c3bb08c105743b615cfc94b621e | |
parent | 50434bd74c7708e3e2a47449b6a3a8d9fa069f71 (diff) | |
download | vim-git-df2ecddf9d0acc325c8290fbcff44de25b0c1e75.tar.gz |
patch 8.2.0263: a few new Vim9 messages are not localizedv8.2.0263
Problem: A few new Vim9 messages are not localized.
Solution: Add the gettext wrapper. (Dominique Pelle, closes #5647)
-rw-r--r-- | src/version.c | 2 | ||||
-rw-r--r-- | src/vim9compile.c | 6 | ||||
-rw-r--r-- | src/vim9execute.c | 4 |
3 files changed, 7 insertions, 5 deletions
diff --git a/src/version.c b/src/version.c index 95d4cd843..780330ca2 100644 --- a/src/version.c +++ b/src/version.c @@ -743,6 +743,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 263, +/**/ 262, /**/ 261, diff --git a/src/vim9compile.c b/src/vim9compile.c index 4413a514d..a4b5a92f0 100644 --- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -3312,7 +3312,7 @@ compile_assignment(char_u *arg, exarg_T *eap, cmdidx_T cmdidx, cctx_T *cctx) if (oplen == 3 && !heredoc && dest != dest_global && type->tt_type != VAR_STRING && type->tt_type != VAR_UNKNOWN) { - emsg("E1019: Can only concatenate to string"); + emsg(_("E1019: Can only concatenate to string")); goto theend; } @@ -4735,7 +4735,7 @@ compile_def_function(ufunc_T *ufunc, int set_return_type) } else { - emsg("E1025: using } outside of a block scope"); + emsg(_("E1025: using } outside of a block scope")); goto erret; } if (line != NULL) @@ -4995,7 +4995,7 @@ erret: if (errormsg != NULL) emsg(errormsg); else if (called_emsg == called_emsg_before) - emsg("E1028: compile_def_function failed"); + emsg(_("E1028: compile_def_function failed")); // don't execute this function body ufunc->uf_lines.ga_len = 0; diff --git a/src/vim9execute.c b/src/vim9execute.c index c31506a86..455574811 100644 --- a/src/vim9execute.c +++ b/src/vim9execute.c @@ -1611,12 +1611,12 @@ ex_disassemble(exarg_T *eap) vim_free(fname); if (ufunc == NULL) { - semsg("E1061: Cannot find function %s", eap->arg); + semsg(_("E1061: Cannot find function %s"), eap->arg); return; } if (ufunc->uf_dfunc_idx < 0) { - semsg("E1062: Function %s is not compiled", eap->arg); + semsg(_("E1062: Function %s is not compiled"), eap->arg); return; } if (ufunc->uf_name_exp != NULL) |