// fallback to md_item
case md_item: {
lex.next(true);
- docstring const name = _(lex.getString());
+ docstring const name = translateIfPossible(lex.getDocString());
lex.next(true);
string const command = lex.getString();
FuncRequest func = lyxaction.lookupFunc(command);
// fallback to md_submenu
case md_submenu: {
lex.next(true);
- docstring const mlabel = _(lex.getString());
+ docstring const mlabel = translateIfPossible(lex.getDocString());
lex.next(true);
- docstring const mname = from_utf8(lex.getString());
+ docstring const mname = lex.getDocString();
add(MenuItem(MenuItem::Submenu, mlabel, mname,
optional));
optional = false;
break;
case md_menu: {
lex.next(true);
- docstring const name = from_utf8(lex.getString());
+ docstring const name = lex.getDocString();
if (hasMenu(name)) {
getMenu(name).read(lex);
} else {