]> 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 910052f5a4fa38bc8990b426e725812819c0b8a8..9a86168862a433e03ee9ca35383f6b92bcbdf145 100644 (file)
@@ -11,7 +11,7 @@
 
 #include "InsetInfo.h"
 
-#include "BaseClassList.h"
+#include "LayoutFile.h"
 #include "Buffer.h"
 #include "BufferParams.h"
 #include "BufferView.h"
@@ -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());
        }
 }
@@ -200,7 +200,7 @@ void InsetInfo::updateInfo()
                break;
        case TEXTCLASS_INFO: {
                // name_ is the class name
-               setText(BaseClassList::get().haveClass(name_) ? _("yes") : _("no"),
+               setText(LayoutFileList::get().haveClass(name_) ? _("yes") : _("no"),
                bp.getFont(), false);
                break;
        }
@@ -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.