]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetInfo.cpp
Change inset label from ": filename" to "Program Listing: filename" for listings...
[lyx.git] / src / insets / InsetInfo.cpp
index 442928b7c469bfa69e6a5097a7043564a01cf867..11fd583b31a04c310ccd403ae910c00aff8941f8 100644 (file)
@@ -29,6 +29,7 @@
 
 #include "support/debug.h"
 #include "support/docstream.h"
+#include "support/docstring_list.h"
 #include "support/FileName.h"
 #include "support/gettext.h"
 #include "support/lstrings.h"
@@ -205,15 +206,16 @@ void InsetInfo::updateInfo()
                break;
        }
        case MENU_INFO: {
-               vector<docstring> names;
+               docstring_list 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.