src/menu.c (create_menu): don't translate menu entry text if ENABLE_NLS isn't defined.

This commit is contained in:
Andrew Borodin 2009-04-24 20:11:45 +04:00
parent d716433399
commit 95b622f0db
1 changed files with 2 additions and 0 deletions

View File

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