Don't try to translate missing help strings

Closes gh-3074
This commit is contained in:
Thomas Kluyver 2017-12-11 16:45:01 +00:00
parent ae011a1797
commit b23cbdc597

View File

@ -157,6 +157,11 @@ define([
} else {
display_text = humanize_action_id(action_id);
}
var help = null;
if (action.help) {
help = i18n.msg._(action.help);
}
src[group].data.push({
display: display_text,
@ -164,7 +169,7 @@ define([
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,
});
}