X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FModel%2FModel_FeatureValidator.cpp;h=2db766fc6523b6a5155021c3e9533597291a08bc;hb=8d04b5f4360b23cf376beff9c5e7c12d0e6a5f1e;hp=885259852ee090b8061e310eac6597de176cb7fd;hpb=c4eab94a20a0d93100549a210582d46409fec1cc;p=modules%2Fshaper.git diff --git a/src/Model/Model_FeatureValidator.cpp b/src/Model/Model_FeatureValidator.cpp index 885259852..2db766fc6 100644 --- a/src/Model/Model_FeatureValidator.cpp +++ b/src/Model/Model_FeatureValidator.cpp @@ -57,9 +57,9 @@ bool Model_FeatureValidator::isValid(const std::shared_ptr& th myNotObligatory.find(theFeature->getKind()); if (aFeatureFind == myNotObligatory.end() || // and it is obligatory for filling aFeatureFind->second.find(*it) == aFeatureFind->second.end()) { - // TODO(spo): exceptional case for translation - theError = "Attribute \"" + anAttr->id() + "\" is not initialized."; -// theError.arg(anAttr->id()); + theError = "Attribute \"%1\" is not initialized."; + theError.addParameter(anAttr->id()); + theError.setContext(theFeature->getKind() + ":" + anAttr->id()); return false; } }