]> git.lyx.org Git - features.git/commitdiff
mathed: bformat infoize messages
authorUwe Stöhr <uwestoehr@lyx.org>
Fri, 14 Nov 2014 17:18:30 +0000 (18:18 +0100)
committerUwe Stöhr <uwestoehr@lyx.org>
Fri, 14 Nov 2014 17:18:30 +0000 (18:18 +0100)
- should fix bug #1908

src/mathed/InsetMathBox.cpp
src/mathed/InsetMathColor.cpp
src/mathed/InsetMathDecoration.cpp
src/mathed/InsetMathEnv.cpp
src/mathed/InsetMathFont.cpp
src/mathed/InsetMathFontOld.cpp
src/mathed/InsetMathHull.cpp
src/mathed/InsetMathSize.cpp
src/mathed/MathMacro.cpp
src/mathed/MathMacroTemplate.cpp

index 8b3cb2b427b1c1938cf980bae60959072eebe8a9..509977b2fbd10ae12a929b6c3795c2e9b2a4b6f2 100644 (file)
 #include "MathSupport.h"
 #include "MetricsInfo.h"
 
+#include "support/gettext.h"
+#include "support/lstrings.h"
+
 #include "frontends/Painter.h"
 
 #include <ostream>
 
+using namespace lyx::support;
 
 namespace lyx {
 
@@ -92,7 +96,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_);
 }
 
 
index 7d005621e6aeee9f42657017019bb7517cbd6495..9023b7406eafab94bf2da0f5dc7afa9647510170 100644 (file)
 #include "MathSupport.h"
 #include "MetricsInfo.h"
 
+#include "support/gettext.h"
+#include "support/lstrings.h"
+
 #include <ostream>
 
+using namespace lyx::support;
 
 namespace lyx {
 
@@ -95,7 +99,7 @@ void InsetMathColor::normalize(NormalStream & os) const
 
 void InsetMathColor::infoize(odocstream & os) const
 {
-       os << "Color: " << color_;
+       os << bformat(_("Color: %1$s"), color_);
 }
 
 
index b9202f5d6394bbf5cc0e1d7623916d60f023c65b..d3c23f60d8bf568f3bb2f0e75a8e43b5956593f2 100644 (file)
 
 #include "support/debug.h"
 #include "support/docstring.h"
+#include "support/gettext.h"
 #include "support/lassert.h"
+#include "support/lstrings.h"
 
 #include <ostream>
 
+using namespace lyx::support;
+
 using namespace std;
 
 namespace lyx {
@@ -165,7 +169,7 @@ void InsetMathDecoration::normalize(NormalStream & os) const
 
 void InsetMathDecoration::infoize(odocstream & os) const
 {
-       os << "Deco: " << key_->name;
+       os << bformat(_("Decoration: %1$s"), key_->name);
 }
 
 
index a7fb33c69d408ac0e7aa704b879dd3d19698f5dd..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 {
 
@@ -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_);
 }
 
 
index b2e7c1dccc1b51dad33e162a39776c9c5606c766..b49985829a9d6a37bced7e97549a0a753c03047e 100644 (file)
 #include "MathParser.h"
 #include "MetricsInfo.h"
 
+#include "support/gettext.h"
+#include "support/lstrings.h"
+
 #include <ostream>
 
+using namespace lyx::support;
 
 namespace lyx {
 
@@ -200,7 +204,7 @@ void InsetMathFont::mathmlize(MathStream & os) const
 
 void InsetMathFont::infoize(odocstream & os) const
 {
-       os << "Font: " << key_->name;
+       os << bformat(_("Font: %1$s"), key_->name);
 }
 
 
index c14c4e36a8c3c9e8b955572d62aec572b8112f83..013808d8a79b142c0389234bc5f51559c1e96a20 100644 (file)
 #include "MathSupport.h"
 #include "MetricsInfo.h"
 
+#include "support/gettext.h"
+#include "support/lstrings.h"
+
 #include <ostream>
 
+using namespace lyx::support;
 
 namespace lyx {
 
@@ -96,7 +100,7 @@ void InsetMathFontOld::normalize(NormalStream & os) const
 
 void InsetMathFontOld::infoize(odocstream & os) const
 {
-       os << "Font: " << key_->name;
+       os << bformat(_("Font: %1$s"), key_->name);
 }
 
 
index 538eee163a213c9ea6a464ac46bd36bdcbf494ed..53a16e8d0f7b6d41a6f2746460b38ab92d4275b4 100644 (file)
@@ -1303,7 +1303,7 @@ void InsetMathHull::normalize(NormalStream & os) const
 
 void InsetMathHull::infoize(odocstream & os) const
 {
-       os << "Type: " << hullName(type_);
+       os << bformat(_("Type: %1$s"), hullName(type_));
 }
 
 
index a638f43851d368fbdfde456c37edda9185b57c0c..dc79652fad105a311e99eafcfa531baaee9253ff 100644 (file)
 #include "output_xhtml.h"
 
 #include "support/convert.h"
+#include "support/gettext.h"
+#include "support/lstrings.h"
 
 #include <string>
 #include <ostream>
 
+using namespace lyx::support;
 using namespace std;
 
 namespace lyx {
@@ -101,7 +104,7 @@ void InsetMathSize::normalize(NormalStream & os) const
 
 void InsetMathSize::infoize(odocstream & os) const
 {
-       os << "Size: " << key_->name;
+       os << bformat(_("Size: %1$s"), key_->name);
 }
 
 
index a6d92d9f8894c4187b9399c548960fcf5c9e40e3..f4150f30f84250533ff313105aa5ebfda07605cb 100644 (file)
 #include "support/debug.h"
 #include "support/gettext.h"
 #include "support/lassert.h"
+#include "support/lstrings.h"
 #include "support/textutils.h"
 
 #include <ostream>
 #include <vector>
 
+using namespace lyx::support;
 using namespace std;
 
 namespace lyx {
@@ -806,14 +808,13 @@ void MathMacro::octave(OctaveStream & os) const
 
 void MathMacro::infoize(odocstream & os) const
 {
-       os << "Macro: " << name();
+       os << bformat(_("Macro: %1$s"), name());
 }
 
 
 void MathMacro::infoize2(odocstream & os) const
 {
-       os << "Macro: " << name();
-
+       os << bformat(_("Macro: %1$s"), name());
 }
 
 
index ce3494c61ad1c5b7456e760a4098ddb4fb54fd38..954538e4e9c056c6dd3f58c14239ea1d097088b6 100644 (file)
@@ -1360,7 +1360,7 @@ size_t MathMacroTemplate::numOptionals() const
 
 void MathMacroTemplate::infoize(odocstream & os) const
 {
-       os << "Math Macro: \\" << name();
+       os << bformat(_("Math Macro: \\%1$s"), name());
 }