X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathEnv.cpp;h=cc613fd44018eb4165f877e304b282e1f22fe156;hb=4c724a6072013247ac178f0acec06825585c6c55;hp=3daba8179de46d9030624ae1fe26fcba5a299d1d;hpb=e224ef029b58de61fead592a6134775dbd9a97b8;p=lyx.git diff --git a/src/mathed/InsetMathEnv.cpp b/src/mathed/InsetMathEnv.cpp index 3daba8179d..cc613fd440 100644 --- a/src/mathed/InsetMathEnv.cpp +++ b/src/mathed/InsetMathEnv.cpp @@ -3,7 +3,7 @@ * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * - * \author André Pönitz + * \author André Pönitz * * Full author contact details are available in file CREDITS. */ @@ -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_); }