]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathBox.cpp
Allow automatic text direction in Painter::text()
[lyx.git] / src / mathed / InsetMathBox.cpp
index 8b3cb2b427b1c1938cf980bae60959072eebe8a9..aee9381cd79ff1bcd852e3041f3d0aa6a7514294 100644 (file)
 #include "MathSupport.h"
 #include "MetricsInfo.h"
 
+#include "support/gettext.h"
+#include "support/lstrings.h"
+
 #include "frontends/Painter.h"
 
+#include <algorithm>
 #include <ostream>
 
+using namespace lyx::support;
 
 namespace lyx {
 
@@ -92,7 +97,7 @@ void InsetMathBox::draw(PainterInfo & pi, int x, int y) const
 
 void InsetMathBox::infoize(odocstream & os) const
 {      
-       os << "Box: " << name_;
+       os << bformat(_("Box: %1$s"), name_);
 }