--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.0" language="en_US">
+ <context>
+ <name>Edge</name>
+ <message>
+ <source>base_objects - BuildPlugin_ValidatorBaseForBuild: Could not get selection list.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>base_objects - BuildPlugin_ValidatorBaseForBuild: Empty selection list.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>base_objects - BuildPlugin_ValidatorBaseForBuild: Could not get selection.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>base_objects - BuildPlugin_ValidatorBaseForBuild: Attribute have empty context.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>base_objects - BuildPlugin_ValidatorBaseForBuild: Empty shape selected.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>base_objects - BuildPlugin_ValidatorBaseForBuild: Inifinte objects not acceptable.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>base_objects - BuildPlugin_ValidatorBaseForBuild: Selected shape is in the local selection. Only global selection is allowed.</source>
+ <translation></translation>
+ </message>
+ </context>
+
+ <context>
+ <name>Face</name>
+ <message>
+ <source>BuildPlugin_ValidatorBaseForFace: Empty attribute \"%1\".</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>BuildPlugin_ValidatorBaseForFace: Error while checking if edges intersects.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>BuildPlugin_ValidatorBaseForFace: Selected objects have intersections.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>BuildPlugin_ValidatorBaseForFace: Selected objects are not planar.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>BuildPlugin_ValidatorBaseForFace: Selected objects does not have closed contours.</source>
+ <translation></translation>
+ </message>
+ </context>
+
+ <context>
+ <name>Shell</name>
+ <message>
+ <source>base_objects - GeomValidators_ShapeType: It does not contain element with acceptable shape type. The type should be one of the next: %1</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>base_objects - GeomValidators_ShapeType: It has reference to an empty attribute</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>base_objects - GeomValidators_ShapeType: Shape type is \"%1\", it should be \"%2\"</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>base_objects - GeomValidators_ShapeType: The attribute with the %1 type is not processed</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>base_objects - GeomValidators_ShapeType: The object is empty</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>base_objects - GeomValidators_ShapeType: The result is empty</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>base_objects - GeomValidators_ShapeType: The shape is empty</source>
+ <translation></translation>
+ </message>
+ </context>
+
+
+ <context>
+ <name>SubShapes</name>
+ <message>
+ <source>subshapes - BuildPlugin_ValidatorSubShapesSelection: Could not get selection list.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>subshapes - BuildPlugin_ValidatorSubShapesSelection: Base shape is empty.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>subshapes - BuildPlugin_ValidatorSubShapesSelection: Empty attribute in list.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>subshapes - BuildPlugin_ValidatorSubShapesSelection: Selected shape has unacceptable type.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>subshapes - BuildPlugin_ValidatorSubShapesSelection: Selected shape is not inside base face.</source>
+ <translation></translation>
+ </message>
+ </context>
+
+ <context>
+ <name>SubShapes</name>
+ <message>
+ <source>base_objects - BuildPlugin_ValidatorBaseForBuild: Could not get selection list.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>base_objects - BuildPlugin_ValidatorBaseForBuild: Empty selection list.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>base_objects - BuildPlugin_ValidatorBaseForBuild: Could not get selection.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>base_objects - BuildPlugin_ValidatorBaseForBuild: Attribute have empty context.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>base_objects - BuildPlugin_ValidatorBaseForBuild: Empty shape selected.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>base_objects - BuildPlugin_ValidatorBaseForBuild: Inifinte objects not acceptable.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>base_objects - BuildPlugin_ValidatorBaseForBuild: Selected shape is in the local selection. Only global selection is allowed.</source>
+ <translation></translation>
+ </message>
+ </context>
+
+ <context>
+ <name>Wire</name>
+ <message>
+ <source>BuildPlugin_ValidatorBaseForWire: Empty attribute \"%1\".</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>BuildPlugin_ValidatorBaseForWire: Result wire empty. Probably it has disconnected edges or non-manifold.</source>
+ <translation></translation>
+ </message>
+ </context>
+</TS>
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.0" language="en_US">
+ <context>
+ <name>Axis</name>
+ <message>
+ <source>CylindricalFace - GeomValidators_Face: The attribute with the %1 type is not processed</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>CylindricalFace - GeomValidators_Face: The shape is not a face.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>CylindricalFace - GeomValidators_Face: The shape is not a face.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>CylindricalFace - GeomValidators_Face: The shape is not a plane.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>CylindricalFace - GeomValidators_Face: The shape is not a cylinder.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>CylindricalFace - GeomValidators_Face: The shape is not an available face.</source>
+ <translation></translation>
+ </message>
+ </context>
+
+ <context>
+ <name>Plane</name>
+ <message>
+ <source>planeFace - GeomValidators_Face: The attribute with the %1 type is not processed</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>planeFace - GeomValidators_Face: The shape is not a face.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>planeFace - GeomValidators_Face: The shape is not a face.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>planeFace - GeomValidators_Face: The shape is not a plane.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>planeFace - GeomValidators_Face: The shape is not a cylinder.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>planeFace - GeomValidators_Face: The shape is not an available face.</source>
+ <translation></translation>
+ </message>
+ </context>
+
+ <context>
+ <name>Point</name>
+ <message>
+ <source>Model_FeatureValidator: Attribute "x" is not initialized.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>Model_FeatureValidator: Attribute "y" is not initialized.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>Model_FeatureValidator: Attribute "z" is not initialized.</source>
+ <translation></translation>
+ </message>
+ </context>
+</TS>
<source>file_path - ExchangePlugin_ExportFormat: File name is empty.</source>
<translation>Export file name is not defined</translation>
</message>
+
+ <message>
+ <source>selection_list - GeomValidators_Finite: Infinite result is selected.</source>
+ <translation></translation>
+ </message>
</context>
</TS>
<source>GeomValidators_ZeroOffset: ToSize = -FromSize.</source>
<translation>Extrusion offset is not defined</translation>
</message>
+
+ <message>
+ <source>FeaturesPlugin_ValidatorExtrusionDir: Error: Validator should be used with 2 parameters for extrusion.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>FeaturesPlugin_ValidatorExtrusionDir: Error: Base objects list contains vertex or edge, so attribute \"%1\" can not be used with default value. Select direction for extrusion.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>FeaturesPlugin_ValidatorExtrusionDir: Error: Direction is parallel to one of the selected face or face on selected shell.</source>
+ <translation></translation>
+ </message>
+
</context>
<context>
<source>sketch - FeaturesPlugin_ValidatorCompositeLauncher: The result is empty</source>
<translation>Sketch is not selected</translation>
</message>
+
+ <message>
+ <source>FeaturesPlugin_ValidatorExtrusionDir: Error: Validator should be used with 2 parameters for extrusion.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>FeaturesPlugin_ValidatorExtrusionDir: Error: Base objects list contains vertex or edge, so attribute \"%1\" can not be used with default value. Select direction for extrusion.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>FeaturesPlugin_ValidatorExtrusionDir: Error: Direction is parallel to one of the selected face or face on selected shell.</source>
+ <translation></translation>
+ </message>
</context>
<context>
<source>sketch - FeaturesPlugin_ValidatorCompositeLauncher: The object is empty</source>
<translation>Sketch is not selected</translation>
</message>
+
+ <message>
+ <source>GeomValidators_ZeroOffset: Wrong number of validator arguments in xml(expected 9).</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>GeomValidators_ZeroOffset: ToSize = -FromSize.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>GeomValidators_ZeroOffset: From face selection is invalid.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>GeomValidators_ZeroOffset: To face selection is invalid.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>GeomValidators_ZeroOffset: From face selection is invalid.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>GeomValidators_ZeroOffset: To face selection is invalid.</source>
+ <translation></translation>
+ </message>
</context>
<context>
<source>sketch - FeaturesPlugin_ValidatorCompositeLauncher: The result is empty</source>
<translation>Sketch is not selected</translation>
</message>
+
+ <message>
+ <source>GeomValidators_ZeroOffset: Wrong number of validator arguments in xml(expected 9).</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>GeomValidators_ZeroOffset: ToSize = -FromSize.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>GeomValidators_ZeroOffset: From face selection is invalid.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>GeomValidators_ZeroOffset: To face selection is invalid.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>GeomValidators_ZeroOffset: From face selection is invalid.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>GeomValidators_ZeroOffset: To face selection is invalid.</source>
+ <translation></translation>
+ </message>
</context>
<context>
<source>sketch - FeaturesPlugin_ValidatorCompositeLauncher: The result is empty</source>
<translation>Sketch is not selected</translation>
</message>
+
+ <message>
+ <source>FeaturesPlugin_ValidatorExtrusionDir: Error: Validator should be used with 2 parameters for extrusion.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>FeaturesPlugin_ValidatorExtrusionDir: Error: Base objects list contains vertex or edge, so attribute \"%1\" can not be used with default value. Select direction for extrusion.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>FeaturesPlugin_ValidatorExtrusionDir: Error: Direction is parallel to one of the selected face or face on selected shell.</source>
+ <translation></translation>
+ </message>
</context>
<context>
<source>sketch - FeaturesPlugin_ValidatorCompositeLauncher: The result is empty</source>
<translation>Sketch is not selected</translation>
</message>
+
+ <message>
+ <source>GeomValidators_ZeroOffset: Wrong number of validator arguments in xml(expected 9).</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>GeomValidators_ZeroOffset: ToSize = -FromSize.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>GeomValidators_ZeroOffset: From face selection is invalid.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>GeomValidators_ZeroOffset: To face selection is invalid.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>GeomValidators_ZeroOffset: From face selection is invalid.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>GeomValidators_ZeroOffset: To face selection is invalid.</source>
+ <translation></translation>
+ </message>
</context>
<context>
<source>GeomValidators_BooleanArguments: Not enough arguments</source>
<translation>Not enough arguments for the operation</translation>
</message>
+
+ <message>
+ <source>GeomValidators_BooleanArguments: Wrong number of arguments (expected 3).</source>
+ <translation></translation>
+ </message>
</context>
<context>
<name>Partition</name>
<message>
- <source>GeomValidators_MinObjectsSelected: Error: Attribute "base_objects" should contain at least 2 items.</source>
+ <source>GeomValidators_MinObjectsSelected: Error: Attribute \"%1\" should contain at least %2 items.</source>
<translation>At least two objects has to be selected for the operation</translation>
</message>
+
+ <message>
+ <source>GeomValidators_MinObjectsSelected: Error: Wrong number of arguments (expected 2): selection list id and min number of objects</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>GeomValidators_MinObjectsSelected: Error: Could not get attribute \"%1\".</source>
+ <translation></translation>
+ </message>
</context>
<context>
<source>path_object - FeaturesPlugin_ValidatorPipePath: Error: Empty context.</source>
<translation>Object for pipe path is not selected</translation>
</message>
+
+ <message>
+ <source>FeaturesPlugin_ValidatorPipeLocations: Error: Feature \"%1\" does not supported by this validator.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>FeaturesPlugin_ValidatorPipeLocations: Error: Could not get \"%1\" attribute.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>FeaturesPlugin_ValidatorPipeLocations: Error: Could not get \"%1\" attribute.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>FeaturesPlugin_ValidatorPipeLocations: Error: Could not get \"%1\" attribute.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>FeaturesPlugin_ValidatorPipeLocations: Error: Number of locations should be the same as base objects.</source>
+ <translation></translation>
+ </message>
</context>
<context>
<source>subshapes - FeaturesPlugin_ValidatorRemoveSubShapesSelection: Error: Empty context.</source>
<translation>Context object is not selected</translation>
</message>
+
+ <message>
+ <source>FeaturesPlugin_ValidatorRemoveSubShapesResult: Error: Feature \"%1\" does not supported by this validator.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>FeaturesPlugin_ValidatorRemoveSubShapesResult: Error: Could not get \"%1\" attribute.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>FeaturesPlugin_ValidatorRemoveSubShapesResult: Error: Could not get \"%1\" attribute.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>FeaturesPlugin_ValidatorRemoveSubShapesResult: Error: Base shape is empty.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>FeaturesPlugin_ValidatorRemoveSubShapesResult: Error: Resulting shape is not valid.</source>
+ <translation></translation>
+ </message>
</context>
<context>
<source>Model_FeatureValidator: Attribute "tool_objects" is not initialized.</source>
<translation>A tool object is not selected</translation>
</message>
+
+ <message>
+ <source>tool_objects - GeomValidators_IntersectionSelection: Error: empty selection.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>tool_objects - GeomValidators_IntersectionSelection: Error: empty attribute selection.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>tool_objects - GeomValidators_IntersectionSelection: Error: empty selection context.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>tool_objects - GeomValidators_IntersectionSelection: Error: empty feature.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>tool_objects - GeomValidators_IntersectionSelection: Error: %1 shape is not allowed for selection.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>tool_objects - GeomValidators_IntersectionSelection: Error: empty shape.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>tool_objects - GeomValidators_IntersectionSelection: Error: selected shape has the wrong type.</source>
+ <translation></translation>
+ </message>
</context>
<context>
<source>Model_FeatureValidator: Attribute "placement_objects_list" is not initialized.</source>
<translation>Objects for placement are not selected</translation>
</message>
+
+ <message>
+ <source>placement_objects_list - FeaturesPlugin_ValidatorTransform: The attribute with the %1 type is not processed</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>placement_objects_list - FeaturesPlugin_ValidatorTransform: Objects from the %1 group can be selected in the %2 document, but an objects from the %3 group is selected.</source>
+ <translation></translation>
+ </message>
</context>
<context>
<name>Rotation</name>
<source>axis_object - GeomValidators_ShapeType: The object is empty</source>
<translation>Rotation axis is not selected</translation>
</message>
+
+ <message>
+ <source>axis_object - GeomValidators_ShapeType: It does not contain element with acceptable shape type. The type should be one of the next: %1</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>axis_object - GeomValidators_ShapeType: It has reference to an empty attribute</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>axis_object - GeomValidators_ShapeType: Shape type is \"%1\", it should be \"%2\"</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>axis_object - GeomValidators_ShapeType: The attribute with the %1 type is not processed</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>axis_object - GeomValidators_ShapeType: The object is empty</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>axis_object - GeomValidators_ShapeType: The result is empty</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>axis_object - GeomValidators_ShapeType: The shape is empty</source>
+ <translation></translation>
+ </message>
</context>
<context>
<name>Translation</name>
<source>axis_object - GeomValidators_ShapeType: The object is empty</source>
<translation>Translation axis is not selected</translation>
</message>
+
+ <message>
+ <source>axis_object - GeomValidators_ShapeType: It does not contain element with acceptable shape type. The type should be one of the next: %1</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>axis_object - GeomValidators_ShapeType: It has reference to an empty attribute</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>axis_object - GeomValidators_ShapeType: Shape type is \"%1\", it should be \"%2\"</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>axis_object - GeomValidators_ShapeType: The attribute with the %1 type is not processed</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>axis_object - GeomValidators_ShapeType: The object is empty</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>axis_object - GeomValidators_ShapeType: The result is empty</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>axis_object - GeomValidators_ShapeType: The shape is empty</source>
+ <translation></translation>
+ </message>
+ </context>
+
+ <context>
+ <name>Group</name>
+ <message>
+ <source>group_list - GeomValidators_BodyShapes: Error: Context is empty.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>group_list - GeomValidators_BodyShapes: Error: Result construction selected.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>group_list - GeomValidators_BodyShapes: Error: Attribute \"%1\" does not supported by this validator.</source>
+ <translation></translation>
+ </message>
+ </context>
+
+ <context>
+ <name>Union</name>
+ <message>
+ <source>FeaturesPlugin_ValidatorUnionArguments: Error: This validator supports only \"%1\" feature.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>FeaturesPlugin_ValidatorUnionArguments: Error: Could not get \"%1\" attribute.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>FeaturesPlugin_ValidatorUnionArguments: Error: Not all shapes have shared topology.</source>
+ <translation></translation>
+ </message>
</context>
</TS>
AttributeIntegerPtr anAttribue =
std::dynamic_pointer_cast<ModelAPI_AttributeInteger>(theAttribute);
if (!anAttribue->expressionError().empty()) {
- theError = anAttribue->expressionError();
+ theError = "Expression error: %1";
+ theError.arg(anAttribue->expressionError());
return false;
}
} else
AttributeDoublePtr anAttribue =
std::dynamic_pointer_cast<ModelAPI_AttributeDouble>(theAttribute);
if (!anAttribue->expressionError().empty()) {
- theError = anAttribue->expressionError();
+ theError = "Expression error: %1";
+ theError.arg(anAttribue->expressionError());
return false;
}
} else
anErrorMessage.append("\n").append(aComponent[i]).append(": ").append(anAttribue->expressionError(i));
}
if (!anErrorMessage.empty()) {
- theError = anErrorMessage;
+ theError = "Expression error: %1";
+ theError.arg(anErrorMessage);
return false;
}
} else
anErrorMessage.append("\n").append(aComponent[i]).append(": ").append(anAttribue->expressionError(i));
}
if (!anErrorMessage.empty()) {
- theError = anErrorMessage;
+ theError = "Expression error: %1";
+ theError.arg(anErrorMessage);
return false;
}
}
myNotObligatory.find(theFeature->getKind());
if (aFeatureFind == myNotObligatory.end() || // and it is obligatory for filling
aFeatureFind->second.find(*it) == aFeatureFind->second.end()) {
- theError = "Attribute \"%1\" is not initialized.";
- theError.arg(anAttr->id());
+ // TODO(spo): exceptional case for translation
+ theError = "Attribute \"" + anAttr->id() + "\" is not initialized.";
+// theError.arg(anAttr->id());
return false;
}
}
using namespace std;
+#include <iostream>
+
static Model_Session* myImpl = new Model_Session();
// t oredirect all calls to the root document
const std::shared_ptr<Config_FeatureMessage> aMsg =
std::dynamic_pointer_cast<Config_FeatureMessage>(theMessage);
if (aMsg) {
+
+// std::cout << "Feature: " << aMsg->id() << std::endl;
+
// process the plugin info, load plugin
if (myPlugins.find(aMsg->id()) == myPlugins.end()) {
myPlugins[aMsg->id()] = std::pair<std::string, std::string>(
const std::shared_ptr<Config_AttributeMessage> aMsgAttr =
std::dynamic_pointer_cast<Config_AttributeMessage>(theMessage);
if (aMsgAttr) {
+
+// std::cout << "Feature: " << aMsgAttr->featureId()
+// << ", Attribute: " << aMsgAttr->attributeId() << std::endl;
+
if (!aMsgAttr->isObligatory()) {
validators()->registerNotObligatory(aMsgAttr->featureId(), aMsgAttr->attributeId());
+ } else {
+ std::cout << "F: " << aMsgAttr->featureId()
+ << ", V: Model_FeatureValidator"
+ << ", A: " << aMsgAttr->attributeId()
+ << std::endl;
}
if(aMsgAttr->isConcealment()) {
validators()->registerConcealment(aMsgAttr->featureId(), aMsgAttr->attributeId());
// plugins information was started to load, so, it will be loaded
myPluginsInfoLoaded = true;
} else if (theMessage->eventID() == kValidatorEvent) {
+
+ static bool done = false;
+ if (!done) {
+ std::set<std::string> aPlugins;
+ for (auto it = myPlugins.begin(); it != myPlugins.end(); ++it) {
+ std::string aPluginName = it->second.first;
+ aPlugins.insert(aPluginName);
+ }
+
+ for (auto it = aPlugins.begin(); it != aPlugins.end(); ++it) {
+ myCurrentPluginName = *it;
+ Config_ModuleReader::loadPlugin(*it);
+ }
+
+ done = true;
+ }
+
std::shared_ptr<Config_ValidatorMessage> aMsg =
std::dynamic_pointer_cast<Config_ValidatorMessage>(theMessage);
if (aMsg) {
if (aMsg->attributeId().empty()) { // feature validator
+
+ std::cout << "F: " << aMsg->featureId()
+ << ", V: " << aMsg->validatorId() << std::endl;
+
validators()->assignValidator(aMsg->validatorId(), aMsg->featureId(), aMsg->parameters());
} else { // attribute validator
+
+ std::cout << "F: " << aMsg->featureId()
+ << ", A: " << aMsg->attributeId()
+ << ", V: " << aMsg->validatorId() << std::endl;
+
validators()->assignValidator(aMsg->validatorId(), aMsg->featureId(), aMsg->attributeId(),
aMsg->parameters());
}
<translation type="unfinished"></translation>
</message>
</context>
+
+ <context>
+ <name>Parameter</name>
+ <message>
+ <source>Model_FeatureValidator: Attribute "variable" is not initialized.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>Model_FeatureValidator: Attribute "expression" is not initialized.</source>
+ <translation></translation>
+ </message>
+ </context>
+
+
</TS>
<source>Model_FeatureValidator: Attribute "height" is not initialized.</source>
<translation>Height of the box is not defined</translation>
</message>
+
+ <message>
+ <source>height - GeomValidators_Positive: Double is not initialized.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>height - GeomValidators_Positive: Double is not positive.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>height - GeomValidators_Positive: Integer is not initialized.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>height - GeomValidators_Positive: Integer is not positive.</source>
+ <translation></translation>
+ </message>
</context>
</TS>
<source>Model_FeatureValidator: Attribute "Features" is not initialized.</source>
<translation>Sketch objects are not defined</translation>
</message>
+
+ <message>
+ <source>External - GeomValidators_Face: The attribute with the %1 type is not processed</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>External - GeomValidators_Face: The shape is not a face.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>External - GeomValidators_Face: The shape is not a face.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>External - GeomValidators_Face: The shape is not a plane.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>External - GeomValidators_Face: The shape is not a cylinder.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>External - GeomValidators_Face: The shape is not an available face.</source>
+ <translation></translation>
+ </message>
</context>
<context>
<source>Attribute "CircleRadius" is locked by modification value in the viewer.</source>
<translation>Select a radius distance</translation>
</message>
+
+ <message>
+ <source>CircleRadius - GeomValidators_Positive: Double is not positive.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>CircleRadius - GeomValidators_Positive: Integer is not initialized.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>CircleRadius - GeomValidators_Positive: Integer is not positive.</source>
+ <translation></translation>
+ </message>
</context>
<context>
<source>ConstraintEntityA - GeomValidators_ShapeType: The object is empty</source>
<translation>Line is not selected</translation>
</message>
+
+ <message>
+ <source>ConstraintEntityA - GeomValidators_ShapeType: It does not contain element with acceptable shape type. The type should be one of the next: %1</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>ConstraintEntityA - GeomValidators_ShapeType: It has reference to an empty attribute</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>ConstraintEntityA - GeomValidators_ShapeType: Shape type is \"%1\", it should be \"%2\"</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>ConstraintEntityA - GeomValidators_ShapeType: The attribute with the %1 type is not processed</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>ConstraintEntityA - GeomValidators_ShapeType: The result is empty</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>ConstraintEntityA - GeomValidators_ShapeType: The shape is empty</source>
+ <translation></translation>
+ </message>
</context>
<context>
<source>ConstraintEntityB - GeomValidators_ShapeType: The object is empty</source>
<translation>Second line is not selected</translation>
</message>
+
+ <message>
+ <source>ConstraintEntityB - GeomValidators_ShapeType: It does not contain element with acceptable shape type. The type should be one of the next: %1</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>ConstraintEntityB - GeomValidators_ShapeType: It has reference to an empty attribute</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>ConstraintEntityB - GeomValidators_ShapeType: Shape type is \"%1\", it should be \"%2\"</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>ConstraintEntityB - GeomValidators_ShapeType: The attribute with the %1 type is not processed</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>ConstraintEntityB - GeomValidators_ShapeType: The result is empty</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>ConstraintEntityB - GeomValidators_ShapeType: The shape is empty</source>
+ <translation></translation>
+ </message>
</context>
<context>
<source>ConstraintValue - GeomValidators_Positive: Double is not initialized.</source>
<translation>Radius value is not positive</translation>
</message>
+
+ <message>
+ <source>ConstraintValue - GeomValidators_Positive: Double is not positive.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>ConstraintValue - GeomValidators_Positive: Integer is not initialized.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>ConstraintValue - GeomValidators_Positive: Integer is not positive.</source>
+ <translation></translation>
+ </message>
</context>
<context>
<source>ConstraintEntityA - GeomValidators_ShapeType: The object is empty</source>
<translation>Line is not selected</translation>
</message>
+
+ <message>
+ <source>ConstraintEntityA - GeomValidators_ShapeType: It does not contain element with acceptable shape type. The type should be one of the next: %1</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>ConstraintEntityA - GeomValidators_ShapeType: It has reference to an empty attribute</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>ConstraintEntityA - GeomValidators_ShapeType: Shape type is \"%1\", it should be \"%2\"</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>ConstraintEntityA - GeomValidators_ShapeType: The attribute with the %1 type is not processed</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>ConstraintEntityA - GeomValidators_ShapeType: The result is empty</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>ConstraintEntityA - GeomValidators_ShapeType: The shape is empty</source>
+ <translation></translation>
+ </message>
</context>
<context>
<source>Attribute "RectStartPoint" is locked by modification value in the viewer.</source>
<translation>Select a first point of the rectangle</translation>
</message>
+
+ <message>
+ <source>Model_FeatureValidator: Attribute "RectStartPoint" is not initialized.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>Model_FeatureValidator: Attribute "RectEndPoint" is not initialized.</source>
+ <translation></translation>
+ </message>
</context>
<context>
<source>Model_FeatureValidator: Attribute "ArcPassedPoint" is not initialized.</source>
<translation>Intermediate point is not defined</translation>
</message>
+
+ <message>
+ <source>ArcRadius - GeomValidators_Positive: Double is not positive.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>ArcRadius - GeomValidators_Positive: Integer is not initialized.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>ArcRadius - GeomValidators_Positive: Integer is not positive.</source>
+ <translation></translation>
+ </message>
</context>
<context>
<source>Model_FeatureValidator: Attribute "ConstraintMirrorList" is not initialized.</source>
<translation>Objects for mirror are not selected</translation>
</message>
+
+ <message>
+ <source>ConstraintEntityA - GeomValidators_ShapeType: It does not contain element with acceptable shape type. The type should be one of the next: %1</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>ConstraintEntityA - GeomValidators_ShapeType: It has reference to an empty attribute</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>ConstraintEntityA - GeomValidators_ShapeType: Shape type is \"%1\", it should be \"%2\"</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>ConstraintEntityA - GeomValidators_ShapeType: The attribute with the %1 type is not processed</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>ConstraintEntityA - GeomValidators_ShapeType: The result is empty</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>ConstraintEntityA - GeomValidators_ShapeType: The shape is empty</source>
+ <translation></translation>
+ </message>
</context>
<context>
<source>MultiRotationCenter - GeomValidators_ShapeType: The object is empty</source>
<translation>Rotation center is not selected</translation>
</message>
+
+ <message>
+ <source>MultiRotationObjects - GeomValidators_Positive: Double is not initialized.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>MultiRotationObjects - GeomValidators_Positive: Double is not positive.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>MultiRotationObjects - GeomValidators_Positive: Integer is not initialized.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>MultiRotationObjects - GeomValidators_Positive: Integer is not positive.</source>
+ <translation></translation>
+ </message>
</context>
<context>
<source>MultiTranslationStartPoint - GeomValidators_ShapeType: The object is empty</source>
<translation>Start point of translation vector is not selected</translation>
</message>
+
+ <message>
+ <source>MultiTranslationObjects - GeomValidators_Positive: Double is not initialized.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>MultiTranslationObjects - GeomValidators_Positive: Double is not positive.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>MultiTranslationObjects - GeomValidators_Positive: Integer is not initialized.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>MultiTranslationObjects - GeomValidators_Positive: Integer is not positive.</source>
+ <translation></translation>
+ </message>
</context>
<context>
<source>ConstraintEntityB - GeomValidators_ShapeType: The object is empty</source>
<translation>Second object is not selected</translation>
</message>
+
+ <message>
+ <source>ConstraintEntityB - SketchPlugin_ExternalValidator: Both features, attribute and attribute in parameter, are external.</source>
+ <translation></translation>
+ </message>
</context>
<context>
<source>Model_FeatureValidator: Attribute "ConstraintEntityB" is not initialized.</source>
<translation>Second object is not selected</translation>
</message>
+
+ <message>
+ <source>ConstraintEntityB - SketchPlugin_ExternalValidator: Both features, attribute and attribute in parameter, are external.</source>
+ <translation></translation>
+ </message>
</context>
<context>
<source>Model_FeatureValidator: Attribute "ConstraintEntityB" is not initialized.</source>
<translation>Second object is not selected</translation>
</message>
+
+ <message>
+ <source>ConstraintValue - GeomValidators_Positive: Double is not positive.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>ConstraintValue - GeomValidators_Positive: Integer is not initialized.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>ConstraintValue - GeomValidators_Positive: Integer is not positive.</source>
+ <translation></translation>
+ </message>
</context>
<context>
<source>Model_FeatureValidator: Attribute "ConstraintEntityB" is not initialized.</source>
<translation>Second object is not selected</translation>
</message>
+
+ <message>
+ <source>ConstraintEntityB - SketchPlugin_ExternalValidator: Both features, attribute and attribute in parameter, are external.</source>
+ <translation></translation>
+ </message>
</context>
<context>
<source>Model_FeatureValidator: Attribute "ConstraintEntityA" is not initialized.</source>
<translation>Line is not selected</translation>
</message>
+
+ <message>
+ <source>ConstraintValue - GeomValidators_Positive: Double is not positive.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>ConstraintValue - GeomValidators_Positive: Integer is not initialized.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>ConstraintValue - GeomValidators_Positive: Integer is not positive.</source>
+ <translation></translation>
+ </message>
</context>
<context>
<source>Model_FeatureValidator: Attribute "ConstraintEntityB" is not initialized.</source>
<translation>Second object is not selected</translation>
</message>
+
+ <message>
+ <source>ConstraintEntityB - SketchPlugin_ExternalValidator: Both features, attribute and attribute in parameter, are external.</source>
+ <translation></translation>
+ </message>
</context>
<context>
<source>Model_FeatureValidator: Attribute "ConstraintEntityB" is not initialized.</source>
<translation>Second line is not selected</translation>
</message>
+
+ <message>
+ <source>ConstraintEntityB - SketchPlugin_ExternalValidator: Both features, attribute and attribute in parameter, are external.</source>
+ <translation></translation>
+ </message>
</context>
<context>
<source>Model_FeatureValidator: Attribute "ConstraintEntityA" is not initialized.</source>
<translation>Object is not selected</translation>
</message>
+
+ <message>
+ <source>ConstraintEntityA - GeomValidators_ShapeType: It does not contain element with acceptable shape type. The type should be one of the next: %1</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>ConstraintEntityA - GeomValidators_ShapeType: It has reference to an empty attribute</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>ConstraintEntityA - GeomValidators_ShapeType: Shape type is \"%1\", it should be \"%2\"</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>ConstraintEntityA - GeomValidators_ShapeType: The attribute with the %1 type is not processed</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>ConstraintEntityA - GeomValidators_ShapeType: The result is empty</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>ConstraintEntityA - GeomValidators_ShapeType: The shape is empty</source>
+ <translation></translation>
+ </message>
</context>
<context>
<translation>Second object is not selected</translation>
</message>
</context>
+
+ <context>
+ <name>SketchConstraintFillet</name>
+ <message>
+ <source>ConstraintValue - GeomValidators_Positive: Double is not initialized.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>ConstraintValue - GeomValidators_Positive: Double is not positive.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>ConstraintValue - GeomValidators_Positive: Integer is not initialized.</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>ConstraintValue - GeomValidators_Positive: Integer is not positive.</source>
+ <translation></translation>
+ </message>
+ </context>
+
+ <context>
+ <name>SketchConstraintFillet</name>
+ <message>
+ <source>ExternalFeature - SketchPlugin_ProjectionValidator: The attribute with the %1 type is not processed</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>ExternalFeature - SketchPlugin_ProjectionValidator: The attribute %1 should be an edge</source>
+ <translation></translation>
+ </message>
+ <message>
+ <source>ExternalFeature - SketchPlugin_ProjectionValidator: There is no sketch referring to the current feature</source>
+ <translation></translation>
+ </message>
+ </context>
</TS>