0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 9.0.1133: error message names do not match the items

Problem:    Error message names do not match the items.
Solution:   Add "_str" when the text contains "%s".
This commit is contained in:
Bram Moolenaar
2023-01-02 18:10:04 +00:00
parent dc4daa3a39
commit a9fa8c58fb
16 changed files with 62 additions and 59 deletions

View File

@@ -1183,7 +1183,7 @@ get_lval(
if (vim9script && (flags & GLV_NO_DECL) == 0)
{
if (!quiet)
semsg(_(e_variable_already_declared), lp->ll_name);
semsg(_(e_variable_already_declared_str), lp->ll_name);
return NULL;
}
@@ -1413,7 +1413,7 @@ get_lval(
if (*p == '[' || *p == '.' || unlet)
{
if (!quiet)
semsg(_(e_key_not_present_in_dictionary), key);
semsg(_(e_key_not_present_in_dictionary_str), key);
clear_tv(&var1);
return NULL;
}
@@ -1717,7 +1717,7 @@ set_var_lval(
{
if (op != NULL && *op != '=')
{
semsg(_(e_key_not_present_in_dictionary), lp->ll_newkey);
semsg(_(e_key_not_present_in_dictionary_str), lp->ll_newkey);
return;
}
if (dict_wrong_func_name(lp->ll_tv->vval.v_dict, rettv,
@@ -4968,7 +4968,7 @@ eval_index_inner(
{
if (keylen > 0)
key[keylen] = NUL;
semsg(_(e_key_not_present_in_dictionary), key);
semsg(_(e_key_not_present_in_dictionary_str), key);
}
return FAIL;
}