]> git.lyx.org Git - features.git/blobdiff - src/frontends/qt4/Menus.cpp
Allow to separate menu string from label string for arguments
[features.git] / src / frontends / qt4 / Menus.cpp
index a0da7243c1a5d127f5dda783b29cbc1e6896e1b2..333e3b51c818cdf97103b11db61f066599a2b06e 100644 (file)
@@ -1570,7 +1570,8 @@ void MenuDefinition::expandArguments(BufferView const * bv, bool switcharg)
        Layout::LaTeXArgMap::const_iterator const laend = args.end();
        for (; lait != laend; ++lait) {
                Layout::latexarg arg = (*lait).second;
-               QString item = toqstr(translateIfPossible(arg.labelstring));
+               docstring str = arg.menustring.empty()? arg.labelstring : arg.menustring;
+               QString item = toqstr(translateIfPossible(str));
                if (switcharg)
                        add(MenuItem(MenuItem::Command, item,
                                     FuncRequest(LFUN_INSET_MODIFY,