mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
src/edit.c (create_menu): small fix of i18n for menu entry text.
This commit is contained in:
parent
009e53198e
commit
aadcca8048
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user