X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FFeaturesPlugin%2FFeaturesPlugin_ValidatorTransform.cpp;h=4057abd68a538547b6a1002b2972779657cbcc57;hb=919584a7e5ee83c384873c2627b9865e8ba02272;hp=9722f88361b267612baf4f5264c75aebe2b00975;hpb=7e9e955376b504dc7d9e0a5e79a9a38943a53fcd;p=modules%2Fshaper.git diff --git a/src/FeaturesPlugin/FeaturesPlugin_ValidatorTransform.cpp b/src/FeaturesPlugin/FeaturesPlugin_ValidatorTransform.cpp index 9722f8836..4057abd68 100755 --- a/src/FeaturesPlugin/FeaturesPlugin_ValidatorTransform.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_ValidatorTransform.cpp @@ -17,7 +17,8 @@ bool FeaturesPlugin_ValidatorTransform::isValid(const AttributePtr& theAttribute bool aValid = true; std::string anAttributeType = theAttribute->attributeType(); if (anAttributeType != ModelAPI_AttributeSelectionList::typeId()) { - theError = "The attribute with the " + theAttribute->attributeType() + " type is not processed"; + theError = "The attribute with the %1 type is not processed"; + theError.arg(theAttribute->attributeType()); return false; } @@ -47,10 +48,8 @@ bool FeaturesPlugin_ValidatorTransform::isValid(const AttributePtr& theAttribute if (!aValid) { std::string aResultGroupName = isPartSetDocument ? ModelAPI_ResultPart::group() : ModelAPI_ResultBody::group(); - theError = "Objects from the " + aResultGroupName + - " group can be selected in the " + aDocument->kind() + - "document, but an objects from the " + anErrorGroupName + - " group is selected."; + theError = "Objects from the %1 group can be selected in the %2 document, but an objects from the %3 group is selected."; + theError.arg(aResultGroupName).arg(aDocument->kind()).arg(anErrorGroupName); } return aValid; }