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/vim9expr.c b/src/vim9expr.c
index 4a3527f..dd938ec 100644
--- a/src/vim9expr.c
+++ b/src/vim9expr.c
@@ -1317,7 +1317,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);
goto failret;
}
item = dictitem_alloc(key);
@@ -1335,7 +1335,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);
return FAIL;
}
whitep = *arg + 1;
@@ -1367,7 +1367,7 @@
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 @@
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);