Salome HOME
Issue #2120: Crash when creating an arc passing through the arc connected to both...
[modules/shaper.git] / src / Config / Config_Translator.cpp
index cbc1a2776ceaf022dae533020c9e5ab1535e24d4..40980d113b10dc13f002773bbc352e8761e564cb 100644 (file)
@@ -135,7 +135,7 @@ std::string insertParameters(const std::string& theString, const std::list<std::
 }
 
 std::string Config_Translator::translate(const std::string& theContext,
-                                         const std::string& theMessage, 
+                                         const std::string& theMessage,
                                          const std::list<std::string>& theParams)
 {
   if (myTranslator.count(theContext) > 0) {
@@ -162,10 +162,14 @@ std::string Config_Translator::translate(const std::string& theContext,
 
 
 std::string Config_Translator::codec(const std::string& theContext)
-{ 
-  return (myCodecs.count(theContext) > 0)? myCodecs[theContext] : "UTF-8"; 
+{
+  return (myCodecs.count(theContext) > 0)? myCodecs[theContext] : "UTF-8";
 }
 
+std::string Config_Translator::codec(const Events_InfoMessage& theInfo)
+{
+  return codec(theInfo.context());
+}
 
 #ifdef _DEBUG
 #ifdef MISSED_TRANSLATION