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".
diff --git a/src/dict.c b/src/dict.c
index 735e1fd..d45fcff 100644
--- a/src/dict.c
+++ b/src/dict.c
@@ -982,7 +982,7 @@
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 @@
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 @@
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 @@
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 @@
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;
}