summaryrefslogtreecommitdiffstats
path: root/src/dict.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2023-01-02 18:10:04 +0000
committerBram Moolenaar <Bram@vim.org>2023-01-02 18:10:04 +0000
commita9fa8c58fbcc5cf8850f6963c509de272f4d4bbf (patch)
tree891f3c44b937d7a4a7492b83826ca114c31f22ff /src/dict.c
parentdc4daa3a3915fba11ac87d27977240d9a5e0d47d (diff)
patch 9.0.1133: error message names do not match the itemsv9.0.1133
Problem: Error message names do not match the items. Solution: Add "_str" when the text contains "%s".
Diffstat (limited to 'src/dict.c')
-rw-r--r--src/dict.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/dict.c b/src/dict.c
index 735e1fd989..d45fcff0ab 100644
--- a/src/dict.c
+++ b/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;
}