]> git.lyx.org Git - features.git/commitdiff
mathed: infoize some messages
authorUwe Stöhr <uwestoehr@lyx.org>
Wed, 3 Dec 2014 23:11:57 +0000 (00:11 +0100)
committerUwe Stöhr <uwestoehr@lyx.org>
Wed, 3 Dec 2014 23:11:57 +0000 (00:11 +0100)
- fixes 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
status.21x

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 20787e2e8ed580f81d92f2048c425718fa0f6092..9bef7feadbda94a2f9ad839ffb4e4babb6cb78d5 100644 (file)
@@ -1295,7 +1295,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 870f8f21ea6b77b6e718f7f0b56b1ed326786327..941e29aee2437585e93ce815f29b77500017b258 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 {
@@ -813,14 +815,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 53cec03f740a9d84efad953d48192a6a910bc900..606ac2c5d3052aef39352ba828e7414fbd281a35 100644 (file)
@@ -1361,7 +1361,7 @@ size_t MathMacroTemplate::numOptionals() const
 
 void MathMacroTemplate::infoize(odocstream & os) const
 {
-       os << "Math Macro: \\" << name();
+       os << bformat(_("Math Macro: \\%1$s"), name());
 }
 
 
index f4601397f38b2544730947a1cb246a089b2d256d..d9fd412c2299bf64021c4da77b4841ffd2d2458f 100644 (file)
@@ -135,6 +135,8 @@ What's new
 
 - Fix possible memory corruption during LaTeX log file parsing.
 
+- Make some math messages translatable (bug 1908).
+
 
 * DOCUMENTATION AND LOCALIZATION