]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetInfo.cpp
Better TOC output for XHTML, per Rob and Pavel.
[lyx.git] / src / insets / InsetInfo.cpp
index be30d7fcdc42a6b2453b133329c2391e337681bc..335e1b6a103339a0298d560f1bdf9741c2a4f698 100644 (file)
@@ -27,6 +27,7 @@
 #include "LyXVC.h"
 #include "Lexer.h"
 #include "ParagraphParameters.h"
+#include "version.h"
 
 #include "frontends/Application.h"
 
@@ -106,7 +107,7 @@ string InsetInfo::infoType() const
 }
 
 
-docstring InsetInfo::name() const 
+docstring InsetInfo::layoutName() const
 {
        return from_ascii("Info:" + infoType());
 }
@@ -447,14 +448,14 @@ void InsetInfo::updateInfo()
                        itype = LyXVC::Date;
                string binfo = buffer().lyxvc().revisionInfo(itype);
                if (binfo.empty())
-                       setText(bformat(_("%1$s unknown"), from_ascii(name_)));
+                       setText(from_ascii(name_) + " unknown");
                else
                        setText(from_utf8(binfo));
                break;
        }
        case LYX_INFO:
                if (name_ == "version")
-                       setText(from_ascii(PACKAGE_VERSION));
+                       setText(from_ascii(lyx_version));
                break;
        }
 }