]> granicus.if.org Git - vim/commitdiff
patch 8.2.0263: a few new Vim9 messages are not localized v8.2.0263
authorBram Moolenaar <Bram@vim.org>
Sun, 16 Feb 2020 14:03:48 +0000 (15:03 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 16 Feb 2020 14:03:48 +0000 (15:03 +0100)
Problem:    A few new Vim9 messages are not localized.
Solution:   Add the gettext wrapper. (Dominique Pelle, closes #5647)

src/version.c
src/vim9compile.c
src/vim9execute.c

index 95d4cd84388e26b2d0c9d0a35f9152dd2c829d87..780330ca278299ef2510dd3eb148e18bb557a9d3 100644 (file)
@@ -742,6 +742,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    263,
 /**/
     262,
 /**/
index 4413a514dacbf18f01642b534eb3358e14f03244..a4b5a92f0f8bcdcc261e636c7623c65edabf2ccb 100644 (file)
@@ -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;
index c31506a86df2c75521b9aaa6490146ff37d29ce6..45557481102a107b6cce91131444e9051bfafb25 100644 (file)
@@ -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)