]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1844: No explicit message to the extrusion errors
authordbv <dbv@opencascade.com>
Mon, 5 Dec 2016 14:52:56 +0000 (17:52 +0300)
committerdbv <dbv@opencascade.com>
Mon, 5 Dec 2016 14:52:56 +0000 (17:52 +0300)
Fixed

src/Config/Config_Translator.h
src/Model/Model_Validator.cpp

index 89bf4d1e1384f023e4e74367efa4e80386d7b6a4..4fbfcb5b98441158939788a2d5988bba5ae497da 100644 (file)
@@ -15,7 +15,7 @@
 
 
 /// The definition provides collection and writing of missed translations
-#define MISSED_TRANSLATION
+//#define MISSED_TRANSLATION
 
 /**
  * \class Config_Translator
index 9bf909d8b203c3599e0b01840821d602dc36612b..bf126c17b35654806c9b3b091861a7c56fc0cefa 100644 (file)
@@ -235,7 +235,7 @@ bool Model_ValidatorsFactory::validate(const std::shared_ptr<ModelAPI_Feature>&
       if (anError.context().empty()) {
         anError.setContext(theFeature->getKind() + ":" + anAttributeID + ":" + aValidatorID);
       }
-      theFeature->setError(anError.messageString(), false, false);
+      theFeature->setError(Config_Translator::translate(anError), false, false);
       theFeature->data()->execState(ModelAPI_StateInvalidArgument);
       return false;
     }