mirror of
https://github.com/vim/vim.git
synced 2025-10-22 08:34:29 -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:
10
src/dict.c
10
src/dict.c
@@ -982,7 +982,7 @@ eval_dict(char_u **arg, typval_T *rettv, evalarg_T *evalarg, int literal)
|
||||
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);
|
||||
clear_tv(&tvkey);
|
||||
goto failret;
|
||||
}
|
||||
@@ -1020,7 +1020,7 @@ eval_dict(char_u **arg, typval_T *rettv, evalarg_T *evalarg, int literal)
|
||||
item = dict_find(d, key, -1);
|
||||
if (item != NULL)
|
||||
{
|
||||
semsg(_(e_duplicate_key_in_dictionary), key);
|
||||
semsg(_(e_duplicate_key_in_dictionary_str), key);
|
||||
clear_tv(&tvkey);
|
||||
clear_tv(&tv);
|
||||
goto failret;
|
||||
@@ -1060,7 +1060,7 @@ eval_dict(char_u **arg, typval_T *rettv, evalarg_T *evalarg, int literal)
|
||||
if (**arg == ',')
|
||||
semsg(_(e_no_white_space_allowed_before_str_str), ",", *arg);
|
||||
else
|
||||
semsg(_(e_missing_comma_in_dictionary), *arg);
|
||||
semsg(_(e_missing_comma_in_dictionary_str), *arg);
|
||||
goto failret;
|
||||
}
|
||||
}
|
||||
@@ -1068,7 +1068,7 @@ eval_dict(char_u **arg, typval_T *rettv, evalarg_T *evalarg, int literal)
|
||||
if (**arg != '}')
|
||||
{
|
||||
if (evalarg != NULL)
|
||||
semsg(_(e_missing_dict_end), *arg);
|
||||
semsg(_(e_missing_dict_end_str), *arg);
|
||||
failret:
|
||||
if (d != NULL)
|
||||
dict_free(d);
|
||||
@@ -1456,7 +1456,7 @@ dict_remove(typval_T *argvars, typval_T *rettv, char_u *arg_errmsg)
|
||||
di = dict_find(d, key, -1);
|
||||
if (di == NULL)
|
||||
{
|
||||
semsg(_(e_key_not_present_in_dictionary), key);
|
||||
semsg(_(e_key_not_present_in_dictionary_str), key);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user