From: dbv Date: Mon, 5 Dec 2016 14:52:56 +0000 (+0300) Subject: Issue #1844: No explicit message to the extrusion errors X-Git-Tag: V_2.6.0~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ac8e4a2f7e8b657ad96030bb1f050a4d3e70ffaf;p=modules%2Fshaper.git Issue #1844: No explicit message to the extrusion errors Fixed --- diff --git a/src/Config/Config_Translator.h b/src/Config/Config_Translator.h index 89bf4d1e1..4fbfcb5b9 100644 --- a/src/Config/Config_Translator.h +++ b/src/Config/Config_Translator.h @@ -15,7 +15,7 @@ /// The definition provides collection and writing of missed translations -#define MISSED_TRANSLATION +//#define MISSED_TRANSLATION /** * \class Config_Translator diff --git a/src/Model/Model_Validator.cpp b/src/Model/Model_Validator.cpp index 9bf909d8b..bf126c17b 100644 --- a/src/Model/Model_Validator.cpp +++ b/src/Model/Model_Validator.cpp @@ -235,7 +235,7 @@ bool Model_ValidatorsFactory::validate(const std::shared_ptr& 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; }