Skip to content

Commit

Permalink
Don't try to translate missing help strings
Browse files Browse the repository at this point in the history
  • Loading branch information
takluyver committed Dec 11, 2017
1 parent ae011a1 commit 434ae12
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion notebook/static/notebook/js/commandpalette.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,14 +157,21 @@ define([
} else {
display_text = humanize_action_id(action_id);
}

var help;
if (action.help) {
help = i18n.msg._(action.help);
} else {
help = null;
}

src[group].data.push({
display: display_text,
shortcut: short,
mode_shortcut: get_mode_for_action_id(action_id, notebook),
group: group,
icon: action.icon,
help: i18n.msg._(action.help),
help: help,
key: action_id,
});
}
Expand Down

0 comments on commit 434ae12

Please sign in to comment.