Merge pull request #3122 from takluyver/i3074

Don't try to translate missing help strings
This commit is contained in:
Thomas Kluyver 2017-12-14 11:53:42 +00:00 committed by GitHub
commit 946fa40c53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -157,6 +157,11 @@ define([
} else { } else {
display_text = humanize_action_id(action_id); display_text = humanize_action_id(action_id);
} }
var help = null;
if (action.help) {
help = i18n.msg._(action.help);
}
src[group].data.push({ src[group].data.push({
display: display_text, display: display_text,
@ -164,7 +169,7 @@ define([
mode_shortcut: get_mode_for_action_id(action_id, notebook), mode_shortcut: get_mode_for_action_id(action_id, notebook),
group: group, group: group,
icon: action.icon, icon: action.icon,
help: i18n.msg._(action.help), help: help,
key: action_id, key: action_id,
}); });
} }