patch 8.2.3972: error messages are spread out
Problem: Error messages are spread out.
Solution: Move the last errors from globals.h to errors.h.
diff --git a/src/menu.c b/src/menu.c
index 9ecba44..0583c10 100644
--- a/src/menu.c
+++ b/src/menu.c
@@ -959,7 +959,7 @@
else if (*name != NUL)
{
if (!silent)
- emsg(_(e_menuothermode));
+ emsg(_(e_menu_only_exists_in_another_mode));
return FAIL;
}
@@ -1133,7 +1133,7 @@
}
else if ((menu->modes & modes) == 0x0)
{
- emsg(_(e_menuothermode));
+ emsg(_(e_menu_only_exists_in_another_mode));
vim_free(path_name);
return FAIL;
}