X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathEnv.cpp;h=41263562cde8d37a90a5d99f9bddd7f6152a4861;hb=02e82157ec583c3900e359de86be79fac6512387;hp=a7fb33c69d408ac0e7aa704b879dd3d19698f5dd;hpb=ff4460603e3888948b46f0ab5bfa69a862d538ad;p=lyx.git diff --git a/src/mathed/InsetMathEnv.cpp b/src/mathed/InsetMathEnv.cpp index a7fb33c69d..41263562cd 100644 --- a/src/mathed/InsetMathEnv.cpp +++ b/src/mathed/InsetMathEnv.cpp @@ -16,8 +16,14 @@ #include "MathStream.h" #include "MathStream.h" +#include "MetricsInfo.h" + +#include "support/gettext.h" +#include "support/lstrings.h" + #include +using namespace lyx::support; namespace lyx { @@ -34,13 +40,15 @@ Inset * InsetMathEnv::clone() const void InsetMathEnv::metrics(MetricsInfo & mi, Dimension & dim) const { + Changer dummy = mi.base.changeEnsureMath(); cell(0).metrics(mi, dim); - metricsMarkers(dim); + metricsMarkers(mi, dim); } void InsetMathEnv::draw(PainterInfo & pi, int x, int y) const { + Changer dummy = pi.base.changeEnsureMath(); cell(0).draw(pi, x + 1, y); drawMarkers(pi, x, y); } @@ -61,7 +69,7 @@ void InsetMathEnv::normalize(NormalStream & os) const void InsetMathEnv::infoize(odocstream & os) const { - os << "Env: " << name_; + os << bformat(_("Environment: %1$s"), name_); }