]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetInfo.cpp
Inset::addToToc(): change signature. Use DocIterator instead of ParConstIterator...
[lyx.git] / src / insets / InsetInfo.cpp
index b61315e49a11547aa69d76e83d268a23263a3c2e..9a86168862a433e03ee9ca35383f6b92bcbdf145 100644 (file)
@@ -65,7 +65,7 @@ void InsetInfo::draw(PainterInfo & pi, int x, int y) const
                odocstringstream os;
                os << _("Information regarding ")
                   <<_(nameTranslator().find(type_))
-                  << _(" ") << from_utf8(name_);
+                  << " " << from_utf8(name_);
                pi.base.bv->message(os.str());
        }
 }
@@ -208,12 +208,13 @@ void InsetInfo::updateInfo()
                vector<docstring> names;
                FuncRequest func = lyxaction.lookupFunc(name_);
                if (func.action == LFUN_UNKNOWN_ACTION) {
-                       setText(_("No menu entry for "), bp.getFont(), false);
+                       setText(bformat(_("Unknown action %1$s"), from_utf8(name_)), bp.getFont(), false);
                        break;
                }
                // iterate through the menubackend to find it
                if (!theApp()->searchMenu(func, names)) {
-                       setText(_("No menu entry for "), bp.getFont(), false);
+                       setText(bformat(_("No menu entry for action %1$s"), from_utf8(name_)),
+                               bp.getFont(), false);
                        break;
                }
                // if find, return its path.