]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathEnv.cpp
Do some caching of window title and related UI
[lyx.git] / src / mathed / InsetMathEnv.cpp
index e350d19a986b96520d7c8a910ff3bd86aba53c89..cc613fd44018eb4165f877e304b282e1f22fe156 100644 (file)
 #include "MathStream.h"
 #include "MathStream.h"
 
+#include "support/gettext.h"
+#include "support/lstrings.h"
+
 #include <ostream>
 
+using namespace lyx::support;
 
 namespace lyx {
 
-InsetMathEnv::InsetMathEnv(docstring const & name)
-       : InsetMathNest(1), name_(name)
+InsetMathEnv::InsetMathEnv(Buffer * buf, docstring const & name)
+       : InsetMathNest(buf, 1), name_(name)
 {}
 
 
@@ -61,7 +65,7 @@ void InsetMathEnv::normalize(NormalStream & os) const
 
 void InsetMathEnv::infoize(odocstream & os) const
 {
-       os << "Env: " << name_;
+       os << bformat(_("Environment: %1$s"), name_);
 }