1
0
forked from aniani/vim

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

@@ -1317,7 +1317,7 @@ compile_dict(char_u **arg, cctx_T *cctx, ppconst_T *ppconst)
item = dict_find(d, key, -1);
if (item != NULL)
{
semsg(_(e_duplicate_key_in_dictionary), key);
semsg(_(e_duplicate_key_in_dictionary_str), key);
goto failret;
}
item = dictitem_alloc(key);
@@ -1335,7 +1335,7 @@ compile_dict(char_u **arg, cctx_T *cctx, ppconst_T *ppconst)
if (*skipwhite(*arg) == ':')
semsg(_(e_no_white_space_allowed_before_str_str), ":", *arg);
else
semsg(_(e_missing_colon_in_dictionary), *arg);
semsg(_(e_missing_colon_in_dictionary_str), *arg);
return FAIL;
}
whitep = *arg + 1;
@@ -1367,7 +1367,7 @@ compile_dict(char_u **arg, cctx_T *cctx, ppconst_T *ppconst)
break;
if (**arg != ',')
{
semsg(_(e_missing_comma_in_dictionary), *arg);
semsg(_(e_missing_comma_in_dictionary_str), *arg);
goto failret;
}
if (IS_WHITE_OR_NUL(*whitep))
@@ -1398,7 +1398,7 @@ compile_dict(char_u **arg, cctx_T *cctx, ppconst_T *ppconst)
failret:
if (*arg == NULL)
{
semsg(_(e_missing_dict_end), _("[end of lines]"));
semsg(_(e_missing_dict_end_str), _("[end of lines]"));
*arg = (char_u *)"";
}
dict_unref(d);