X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathEnv.cpp;h=cc613fd44018eb4165f877e304b282e1f22fe156;hb=4c724a6072013247ac178f0acec06825585c6c55;hp=e350d19a986b96520d7c8a910ff3bd86aba53c89;hpb=f1cba8ff64b369792fd49f5ddf90e8126ab476ac;p=lyx.git diff --git a/src/mathed/InsetMathEnv.cpp b/src/mathed/InsetMathEnv.cpp index e350d19a98..cc613fd440 100644 --- a/src/mathed/InsetMathEnv.cpp +++ b/src/mathed/InsetMathEnv.cpp @@ -16,13 +16,17 @@ #include "MathStream.h" #include "MathStream.h" +#include "support/gettext.h" +#include "support/lstrings.h" + #include +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_); }