]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2177 : change the message text.
authormpv <mpv@opencascade.com>
Tue, 20 Jun 2017 06:52:48 +0000 (09:52 +0300)
committermpv <mpv@opencascade.com>
Tue, 20 Jun 2017 06:52:48 +0000 (09:52 +0300)
src/GeomValidators/GeomValidators_Positive.cpp
src/PythonAddons/PythonAddons_msg_en.ts
src/SketchPlugin/SketchPlugin_msg_en.ts

index 2087fd9abcac3c33a9d9adb76d46c7404b1925c0..446470df27ad40ec1f1dce6dea58e1dbb5fac4be 100644 (file)
@@ -64,7 +64,7 @@ bool GeomValidators_Positive::isValid(const AttributePtr& theAttribute,
       return false;
     }
     if (aDouble->value() <= aMinValue) {
-      theError = "Double is not positive.";
+      theError = "Value is too small.";
       return false;
     }
   }
index 7492435b0c3479093661570a780013015f6e3dc3..6807ced78c65853a60480e3d656344bd2bdfec88 100644 (file)
@@ -18,7 +18,7 @@
 <context>
   <name>Box:height:GeomValidators_Positive</name>
   <message>
-    <source>Double is not positive.</source>
+    <source>Value is too small.</source>
     <translation>Height of the box is too small.</translation>
   </message>
 </context>
@@ -67,8 +67,8 @@
 <context>
   <name>Box:width:GeomValidators_Positive</name>
   <message>
-    <source>Double is not positive.</source>
-    <translation>The box width must be positive</translation>
+    <source>Value is too small.</source>
+    <translation>The box width is too small</translation>
   </message>
 </context>
 <context>
@@ -95,8 +95,8 @@
 <context>
   <name>Box:length:GeomValidators_Positive</name>
   <message>
-    <source>Double is not positive.</source>
-    <translation>The box width must be positive</translation>
+    <source>Value is too small.</source>
+    <translation>The box width is too small</translation>
   </message>
 </context>
 <context>
index 2fcae36b395e81ec9b6ec45c48b8d0c4bad51b55..35073532a9aa0da21eb161a7c403823d2c46033c 100755 (executable)
@@ -75,8 +75,8 @@
   <context>
     <name>SketchMacroCircle:CircleRadius:GeomValidators_Positive</name>
     <message>
-      <source>Double is not positive.</source>
-      <translation>Radius value is not positive</translation>
+      <source>Value is too small.</source>
+      <translation>Radius value is too small</translation>
     </message>
   </context>
   <context>
   <context>
     <name>SketchConstraintRadius:ConstraintValue:GeomValidators_Positive</name>
     <message>
-      <source>Double is not positive.</source>
-      <translation>Radius must be positive</translation>
+      <source>Value is too small.</source>
+      <translation>Radius is too small</translation>
     </message>
   </context>
   <context>
   <context>
     <name>SketchArc:ArcRadius:GeomValidators_Positive</name>
     <message>
-      <source>Double is not positive.</source>
-      <translation>Acr radius must e positive</translation>
+      <source>Value is too small.</source>
+      <translation>Arc radius is too small</translation>
     </message>
   </context>
   <context>
   <context>
     <name>SketchMultiRotation:MultiRotationObjects:GeomValidators_Positive</name>
     <message>
-      <source>Double is not positive.</source>
+      <source>Value is too small.</source>
       <translation>The total number of rotated objects must be positive</translation>
     </message>
   </context>
   <context>
     <name>SketchMultiTranslation:MultiTranslationObjects:GeomValidators_Positive</name>
     <message>
-      <source>Double is not positive.</source>
+      <source>Value is too small.</source>
       <translation>The total number of translated objects must be positive</translation>
     </message>
   </context>
   <context>
     <name>SketchConstraintDistance:ConstraintValue:GeomValidators_Positive</name>
     <message>
-      <source>Double is not positive.</source>
-      <translation>Distance value must be positive</translation>
+      <source>Value is too small.</source>
+      <translation>Distance value is too small</translation>
     </message>
   </context>
   <context>
   <context>
     <name>SketchConstraintLength:ConstraintValue:GeomValidators_Positive</name>
     <message>
-      <source>Double is not positive.</source>
-      <translation>Length value is not positive</translation>
+      <source>Value is too small.</source>
+      <translation>Length value is too small</translation>
     </message>
   </context>
   <context>
   <context>
     <name>SketchFillet:ConstraintValue:GeomValidators_Positive</name>
     <message>
-      <source>Double is not positive.</source>
+      <source>Value is too small.</source>
       <translation>The fillet radius must be positive</translation>
     </message>
   </context>