src/edit.c (create_menu): small fix of i18n for menu entry text.

This commit is contained in:
Andrew Borodin 2009-05-01 21:08:21 +04:00
parent 009e53198e
commit aadcca8048

View File

@ -53,12 +53,8 @@ create_menu (const char *name, menu_entry *entries, int count, const char *help_
register menu_entry* mp;
for (mp = entries; count--; mp++) {
if (mp->label[0] != '\0') {
#ifdef ENABLE_NLS
mp->label = _(mp->label);
#endif
mp->text = parse_hotkey (mp->label);
mp->text = parse_hotkey (_(mp->label));
len = hotkey_width (mp->text);
menu->max_entry_len = max (len, menu->max_entry_len);
}
}