Skip to content

Commit df2ecdd

Browse files
committed
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 #5647)
1 parent 50434bd commit df2ecdd

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -742,6 +742,8 @@ static char *(features[]) =
742742

743743
static int included_patches[] =
744744
{ /* Add new patch number below this line */
745+
/**/
746+
263,
745747
/**/
746748
262,
747749
/**/

src/vim9compile.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3312,7 +3312,7 @@ compile_assignment(char_u *arg, exarg_T *eap, cmdidx_T cmdidx, cctx_T *cctx)
33123312
if (oplen == 3 && !heredoc && dest != dest_global
33133313
&& type->tt_type != VAR_STRING && type->tt_type != VAR_UNKNOWN)
33143314
{
3315-
emsg("E1019: Can only concatenate to string");
3315+
emsg(_("E1019: Can only concatenate to string"));
33163316
goto theend;
33173317
}
33183318

@@ -4735,7 +4735,7 @@ compile_def_function(ufunc_T *ufunc, int set_return_type)
47354735
}
47364736
else
47374737
{
4738-
emsg("E1025: using } outside of a block scope");
4738+
emsg(_("E1025: using } outside of a block scope"));
47394739
goto erret;
47404740
}
47414741
if (line != NULL)
@@ -4995,7 +4995,7 @@ compile_def_function(ufunc_T *ufunc, int set_return_type)
49954995
if (errormsg != NULL)
49964996
emsg(errormsg);
49974997
else if (called_emsg == called_emsg_before)
4998-
emsg("E1028: compile_def_function failed");
4998+
emsg(_("E1028: compile_def_function failed"));
49994999

50005000
// don't execute this function body
50015001
ufunc->uf_lines.ga_len = 0;

src/vim9execute.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1611,12 +1611,12 @@ ex_disassemble(exarg_T *eap)
16111611
vim_free(fname);
16121612
if (ufunc == NULL)
16131613
{
1614-
semsg("E1061: Cannot find function %s", eap->arg);
1614+
semsg(_("E1061: Cannot find function %s"), eap->arg);
16151615
return;
16161616
}
16171617
if (ufunc->uf_dfunc_idx < 0)
16181618
{
1619-
semsg("E1062: Function %s is not compiled", eap->arg);
1619+
semsg(_("E1062: Function %s is not compiled"), eap->arg);
16201620
return;
16211621
}
16221622
if (ufunc->uf_name_exp != NULL)

0 commit comments

Comments
 (0)