Salome HOME
Update translations for SketchPlugin_Validators.
authorazv <azv@opencascade.com>
Mon, 23 Sep 2019 08:03:38 +0000 (11:03 +0300)
committerazv <azv@opencascade.com>
Mon, 23 Sep 2019 08:03:38 +0000 (11:03 +0300)
src/SketchPlugin/SketchPlugin_Validators.cpp
src/SketchPlugin/SketchPlugin_msg_en.ts
src/SketchPlugin/SketchPlugin_msg_fr.ts

index 1d62d8f2418824f22a9c718e5750de700f11d508..63ab98c89e98623e622fd2d6b58ec6f28026e186 100644 (file)
@@ -308,10 +308,8 @@ bool SketchPlugin_EqualAttrValidator::isValid(const AttributePtr& theAttribute,
         aFeature->getKind() != SketchPlugin_Circle::ID() &&
         aFeature->getKind() != SketchPlugin_Arc::ID() &&
         aFeature->getKind() != SketchPlugin_Ellipse::ID()) {
-      theError = "The %1 feature kind of attribute is wrong. It should be %2 or %3 or %4 or %5";
-      theError.arg(aFeature->getKind()).arg(SketchPlugin_Line::ID())
-          .arg(SketchPlugin_Circle::ID()).arg(SketchPlugin_Arc::ID())
-          .arg(SketchPlugin_Ellipse::ID());
+      theError = "The %1 feature is not supported by the Equal constraint.";
+      theError.arg(aFeature->getKind());
       // wrong type of attribute
       return false;
     }
@@ -328,7 +326,7 @@ bool SketchPlugin_EqualAttrValidator::isValid(const AttributePtr& theAttribute,
     // TODO
   }
   if (!isOk) {
-    theError = "Feature with kinds %1 and %2 can not be equal.";
+    theError = "Features with kinds %1 and %2 can not be equal.";
     theError.arg(aType[0]).arg(aType[1]);
     return false;
   }
index 4b71ef4b39c42cf656d8040e92a6c0dae8156ad9..2c58422c796baaa22aec76d5c7ac55c6ece02288 100644 (file)
       <source>An empty object is used.</source>
       <translation>An empty object is used</translation>
     </message>
+    <message>
+      <source>The %1 feature is not supported by the Equal constraint.</source>
+      <translation>The %1 feature is not supported by the Equal constraint.</translation>
+    </message>
+    <message>
+      <source>Features with kinds %1 and %2 can not be equal.</source>
+      <translation>Features with kinds %1 and %2 can not be equal.</translation>
+    </message>
   </context>
   <context>
     <name>SketchConstraintEqual:Model_FeatureValidator</name>
       <translation>Diferent objects should be selected</translation>
     </message>
   </context>
+  <context>
+    <name>SketchConstraintTangent:ConstraintEntityA:SketchPlugin_TangentAttr</name>
+    <message>
+      <source>Two segments cannot be tangent</source>
+      <translation>Two segments cannot be tangent</translation>
+    </message>
+  </context>
   <context>
     <name>SketchConstraintTangent:ConstraintEntityB:SketchPlugin_TangentAttr</name>
     <message>
       <source>The attribute with the %1 type is not processed</source>
       <translation>An argument of type %1 of the projection feature is not supported</translation>
     </message>
-  </context>
-  <context>
-    <name>SketchProjection:ExternalFeature:SketchPlugin_ProjectionValidator</name>
     <message>
-      <source>The attribute %1 should be an edge</source>
-      <translation>The projected item must be an edge</translation>
+      <source>The attribute %1 should be an edge or vertex</source>
+      <translation>The projected item must be an edge or a vertex</translation>
     </message>
-  </context>
-  <context>
-    <name>SketchProjection:ExternalFeature:SketchPlugin_ProjectionValidator</name>
     <message>
       <source>There is no sketch referring to the current feature</source>
       <translation>The projection feature has no sketch</translation>
     </message>
+    <message>
+      <source>Unable to project feature from the same sketch</source>
+      <translation>Feature from the current sketch cannot be projected</translation>
+    </message>
+    <message>
+      <source>Error: Line is orthogonal to the sketch plane.</source>
+      <translation>Error: Line is orthogonal to the sketch plane.</translation>
+    </message>
+    <message>
+      <source>Error: Circle is orthogonal to the sketch plane.</source>
+      <translation>Error: Circle is orthogonal to the sketch plane.</translation>
+    </message>
+    <message>
+      <source>Error: Arc is orthogonal to the sketch plane.</source>
+      <translation>Error: Arc is orthogonal to the sketch plane.</translation>
+    </message>
+    <message>
+      <source>Error: Ellipse is orthogonal to the sketch plane.</source>
+      <translation>Error: Ellipse is orthogonal to the sketch plane.</translation>
+    </message>
+    <message>
+      <source>Error: Elliptic Arc is orthogonal to the sketch plane.</source>
+      <translation>Error: Elliptic Arc is orthogonal to the sketch plane.</translation>
+    </message>
+    <message>
+      <source>Error: Selected object is not supported for projection.</source>
+      <translation>Error: Selected object is not supported for projection.</translation>
+    </message>
   </context>
-  
   <context>
     <name>SketchProjection:Model_FeatureValidator</name>
     <message>
index a5a1b45b30a1e8a6a5fb67e3567b0721d73d7f8e..6ce7cdbfbaa1cfa4f96d3298a782665fc14fb934 100644 (file)
       <source>An empty object is used.</source>
       <translation>AA</translation>
     </message>
+    <message>
+      <source>The %1 feature is not supported by the Equal constraint.</source>
+      <translation>AA</translation>
+    </message>
+    <message>
+      <source>Features with kinds %1 and %2 can not be equal.</source>
+      <translation>AA</translation>
+    </message>
   </context>
   <context>
     <name>SketchConstraintEqual:Model_FeatureValidator</name>
       <translation>AA</translation>
     </message>
   </context>
+  <context>
+    <name>SketchConstraintTangent:ConstraintEntityA:SketchPlugin_TangentAttr</name>
+    <message>
+      <source>Two segments cannot be tangent</source>
+      <translation>AA</translation>
+    </message>
+  </context>
   <context>
     <name>SketchConstraintTangent:ConstraintEntityB:SketchPlugin_TangentAttr</name>
     <message>
   </context>
   <context>
     <name>SketchProjection:ExternalFeature:SketchPlugin_ProjectionValidator</name>
+    <message>
+      <source>The attribute with the %1 type is not processed</source>
+      <translation>AA</translation>
+    </message>
     <message>
       <source>The attribute %1 should be an edge or vertex</source>
       <translation>AA</translation>
     </message>
+    <message>
+      <source>There is no sketch referring to the current feature</source>
+      <translation>AA</translation>
+    </message>
+    <message>
+      <source>Unable to project feature from the same sketch</source>
+      <translation>AA</translation>
+    </message>
+    <message>
+      <source>Error: Line is orthogonal to the sketch plane.</source>
+      <translation>AA</translation>
+    </message>
+    <message>
+      <source>Error: Circle is orthogonal to the sketch plane.</source>
+      <translation>AA</translation>
+    </message>
+    <message>
+      <source>Error: Arc is orthogonal to the sketch plane.</source>
+      <translation>AA</translation>
+    </message>
+    <message>
+      <source>Error: Ellipse is orthogonal to the sketch plane.</source>
+      <translation>AA</translation>
+    </message>
+    <message>
+      <source>Error: Elliptic Arc is orthogonal to the sketch plane.</source>
+      <translation>AA</translation>
+    </message>
+    <message>
+      <source>Error: Selected object is not supported for projection.</source>
+      <translation>AA</translation>
+    </message>
   </context>
   <context>
     <name>SketchProjection:IncludeToResult</name>