vim-patch:9.0.1523: some error messages are not marked for translation (#23529)

Problem:    Some error messages are not marked for translation.
Solution:   Surround the messages in _(). (closes vim/vim#12356)

276410e78f
This commit is contained in:
zeertzjq
2023-05-08 08:26:00 +08:00
committed by GitHub
parent 13e7e4e67a
commit e64db1d284
4 changed files with 6 additions and 5 deletions

View File

@@ -559,7 +559,7 @@ static int remove_menu(vimmenu_T **menup, char *name, int modes, bool silent)
}
} else if (*name != NUL) {
if (!silent) {
emsg(_(e_menuothermode));
emsg(_(e_menu_only_exists_in_another_mode));
}
return FAIL;
}
@@ -760,7 +760,7 @@ static vimmenu_T *find_menu(vimmenu_T *menu, char *name, int modes)
emsg(_(e_notsubmenu));
return NULL;
} else if ((menu->modes & modes) == 0x0) {
emsg(_(e_menuothermode));
emsg(_(e_menu_only_exists_in_another_mode));
return NULL;
} else if (*p == NUL) { // found a full match
return menu;