patch 8.2.3967: error messages are spread out
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
diff --git a/src/evalfunc.c b/src/evalfunc.c
index d61797a..e5a0a45 100644
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -2935,7 +2935,7 @@
if (argvars[1].v_type != VAR_LIST)
{
- emsg(_(e_listreq));
+ emsg(_(e_list_required));
return;
}
if (argvars[1].vval.v_list == NULL)
@@ -2957,7 +2957,7 @@
{
if (argvars[2].v_type != VAR_DICT)
{
- emsg(_(e_dictreq));
+ emsg(_(e_dictionary_required));
return;
}
selfdict = argvars[2].vval.v_dict;
@@ -4411,7 +4411,7 @@
}
}
else
- semsg(_(e_listdictblobarg), "get()");
+ semsg(_(e_argument_of_str_must_be_list_dictionary_or_blob), "get()");
if (tv == NULL)
{
@@ -6458,7 +6458,7 @@
}
else if (argvars[0].v_type != VAR_LIST)
{
- emsg(_(e_listblobreq));
+ emsg(_(e_list_or_blob_required));
return;
}
@@ -6718,7 +6718,7 @@
else if (lv.ll_range)
emsg(_("E786: Range not allowed"));
else if (lv.ll_newkey != NULL)
- semsg(_(e_dictkey), lv.ll_newkey);
+ semsg(_(e_key_not_present_in_dictionary), lv.ll_newkey);
else if (lv.ll_list != NULL)
// List item.
rettv->vval.v_number = tv_islocked(&lv.ll_li->li_tv);
@@ -7311,7 +7311,7 @@
}
}
else
- semsg(_(e_listdictarg), domax ? "max()" : "min()");
+ semsg(_(e_argument_of_str_must_be_list_or_dictionary), domax ? "max()" : "min()");
rettv->vval.v_number = n;
}
@@ -8877,7 +8877,7 @@
if (argvars[0].v_type != VAR_DICT)
{
- emsg(_(e_dictreq));
+ emsg(_(e_dictionary_required));
return;
}
@@ -9221,7 +9221,7 @@
// second argument: dict with items to set in the tag stack
if (argvars[1].v_type != VAR_DICT)
{
- emsg(_(e_dictreq));
+ emsg(_(e_dictionary_required));
return;
}
d = argvars[1].vval.v_dict;
@@ -9249,7 +9249,7 @@
}
else
{
- emsg(_(e_stringreq));
+ emsg(_(e_string_required));
return;
}
@@ -9365,7 +9365,7 @@
if (*curwin->w_s->b_p_spl == NUL)
{
- emsg(_(e_no_spell));
+ emsg(_(e_spell_checking_is_not_possible));
curwin->w_p_spell = wo_spell_save;
return;
}
@@ -9455,7 +9455,7 @@
if (*curwin->w_s->b_p_spl == NUL)
{
- emsg(_(e_no_spell));
+ emsg(_(e_spell_checking_is_not_possible));
curwin->w_p_spell = wo_spell_save;
return;
}