]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
EDF 1337 : Sketcher 3D, add definition of a point by an angle
authorrnc <rnc@opencascade.com>
Mon, 8 Oct 2012 15:29:42 +0000 (15:29 +0000)
committerrnc <rnc@opencascade.com>
Mon, 8 Oct 2012 15:29:42 +0000 (15:29 +0000)
+ Added missing translations

src/EntityGUI/EntityGUI_3DSketcherDlg.cxx
src/EntityGUI/EntityGUI_Angles_QTD.ui
src/EntityGUI/EntityGUI_Controls_QTD.ui
src/EntityGUI/EntityGUI_Type_QTD.ui
src/GEOMGUI/GEOM_msg_en.ts
src/GEOMGUI/GEOM_msg_fr.ts

index 07e506d6e5865bf9161cb6d881db59450cc7bf26..88b61354c6d486cafc79b187e21897d84c2309b3 100755 (executable)
@@ -84,7 +84,7 @@
 // + Améliorer rendu des cotes pour coordonées cylindriques (tailles relatives
 //   de la cote rayon et de la cote hauteur)
 // + Prendre en compte les remarques de Raphaël
-// + Traductions
+// + Traductions                                       Done
 
 enum
 {
@@ -135,11 +135,11 @@ EntityGUI_3DSketcherDlg::EntityGUI_3DSketcherDlg (GeometryGUI* theGeometryGUI, Q
 
   GroupType = new EntityGUI_Type(centralWidget());
   GroupType->GroupType2->setTitle(tr("GEOM_COORDINATES_TYPE"));
-  GroupType->GroupType1->setTitle(tr("Scope"));       // TODO translation 
+  GroupType->GroupType1->setTitle(tr("GEOM_MODE"));
   GroupType->RadioButton1->setText(tr("GEOM_SKETCHER_ABS"));
   GroupType->RadioButton2->setText(tr("GEOM_SKETCHER_REL"));
-  GroupType->RadioButton3->setText(tr("(X,Y,Z)")); //TODO translation
-  GroupType->RadioButton4->setText(tr("Angles")); //TODO translation
+  GroupType->RadioButton3->setText(tr("(X,Y,Z)"));
+  GroupType->RadioButton4->setText(tr("GEOM_ANGLES"));
  
   myTypeGroup1 = new QButtonGroup(this);
   myTypeGroup1->setExclusive(true);
@@ -164,14 +164,16 @@ EntityGUI_3DSketcherDlg::EntityGUI_3DSketcherDlg (GeometryGUI* theGeometryGUI, Q
   GroupAngles->buttonApply->setText(tr("GEOM_SKETCHER_APPLY"));
   GroupAngles->buttonUndo->setIcon(image1);
   GroupAngles->buttonRedo->setIcon(image2);
-  GroupAngles->checkBox  ->setText(tr("Angle 2")); //TODO translation
-  GroupAngles->checkBox_2->setText(tr("Height")); //TODO translation
+  GroupAngles->TextLabel1->setText(tr("GEOM_LENGTH"));
+  GroupAngles->TextLabel2->setText(tr("GEOM_ANGLE")); 
+  GroupAngles->checkBox  ->setText(tr("GEOM_ANGLE_2"));
+  GroupAngles->checkBox_2->setText(tr("GEOM_HEIGHT"));
 
   GroupControls = new EntityGUI_Controls(centralWidget());
   GroupControls->GroupBox1->setTitle(tr("GEOM_CONTROLS"));
-  GroupControls->CheckBox1->setText(tr("Show length dimensions")); //TODO translation
-  GroupControls->CheckBox2->setText(tr("Show angle dimensions"));  //TODO translation
-  GroupControls->CheckBox3->setText(tr("Show start/end point coordinates"));  //TODO translation
+  GroupControls->CheckBox1->setText(tr("GEOM_SHOW_LENGTH")); 
+  GroupControls->CheckBox2->setText(tr("GEOM_SHOW_ANGLE"));
+  GroupControls->CheckBox3->setText(tr("GEOM_SHOW_POINTS_COORD"));
   GroupControls->lineEdit_1->setReadOnly(true);
   GroupControls->lineEdit_2->setReadOnly(true);
   GroupControls->lineEdit_3->setReadOnly(true);
@@ -184,6 +186,8 @@ EntityGUI_3DSketcherDlg::EntityGUI_3DSketcherDlg (GeometryGUI* theGeometryGUI, Q
   GroupControls->label_4->setText(tr("X:"));
   GroupControls->label_5->setText(tr("Y:"));
   GroupControls->label_6->setText(tr("Z:"));
+  GroupControls->label_7->setText(tr("GEOM_START"));
+  GroupControls->label_8->setText(tr("GEOM_END"));
 
   buttonOk()->setText(tr("GEOM_BUT_END_SKETCH"));
   buttonApply()->setText(tr("GEOM_BUT_CLOSE_SKETCH"));
@@ -1112,7 +1116,6 @@ EntityGUI_3DSketcherDlg::XYZ EntityGUI_3DSketcherDlg::getCurrentPoint() const
 //=================================================================================
 gp_Dir EntityGUI_3DSketcherDlg::getPresentationPlane() const
 { 
-  MESSAGE("EntityGUI_3DSketcherDlg::getPresentationPlane()")
   bool withAngle = (myCoordType == 1);
   bool twoAngles = GroupAngles->checkBox->isChecked();
   
@@ -1434,7 +1437,6 @@ void EntityGUI_3DSketcherDlg::displayLength (gp_Pnt P1,
   if (aLength < Precision::Confusion())
     return;
     
-  MESSAGE("REPERE 001; P1.Distance(P2) = "<<P1.Distance(P2))
   Handle(AIS_LengthDimension) anIO = createAISLengthDimension(aLength, P1, P2, theNormal);
 
   if (store)
index ee719f2eb686809b0182b5fe166f722ec8f36754..a5c4aa5fb3c1961ba41b57deb83661f32930e992 100644 (file)
@@ -27,7 +27,7 @@
      </property>
      <layout class="QGridLayout" name="gridLayout">
       <item row="0" column="0">
-       <widget class="QLabel" name="TextLabel4">
+       <widget class="QLabel" name="TextLabel1">
         <property name="sizePolicy">
          <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
           <horstretch>0</horstretch>
@@ -53,7 +53,7 @@
        </widget>
       </item>
       <item row="1" column="0">
-       <widget class="QLabel" name="TextLabel1">
+       <widget class="QLabel" name="TextLabel2">
         <property name="sizePolicy">
          <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
           <horstretch>0</horstretch>
index b58621ea55905f475691b717cfd62cd73431378a..7d8c71b74932afcf0070338db625261a601c12b4 100644 (file)
@@ -45,7 +45,7 @@
           </property>
          </widget>
         </item>
-        <item row="1" column="0">
+        <item row="1" column="0" colspan="2">
          <widget class="QCheckBox" name="CheckBox3">
           <property name="text">
            <string/>
       </item>
       <item>
        <layout class="QGridLayout" name="gridLayout_2">
-        <item row="0" column="0" colspan="2">
-         <widget class="QLabel" name="label_8">
-          <property name="text">
-           <string>Start:</string>
-          </property>
-         </widget>
-        </item>
         <item row="1" column="0">
          <widget class="QLabel" name="label_1">
           <property name="text">
         <item row="3" column="1">
          <widget class="QLineEdit" name="lineEdit_3"/>
         </item>
-        <item row="0" column="3">
-         <widget class="QLabel" name="label_7">
-          <property name="text">
-           <string>End:</string>
-          </property>
-         </widget>
-        </item>
         <item row="1" column="2">
          <widget class="QLabel" name="label_4">
           <property name="text">
         <item row="3" column="3">
          <widget class="QLineEdit" name="lineEdit_6"/>
         </item>
+        <item row="0" column="1">
+         <widget class="QLabel" name="label_7">
+          <property name="text">
+           <string>Start :</string>
+          </property>
+         </widget>
+        </item>
+        <item row="0" column="3">
+         <widget class="QLabel" name="label_8">
+          <property name="text">
+           <string>End :</string>
+          </property>
+         </widget>
+        </item>
        </layout>
       </item>
      </layout>
index eaaf2c144dbaf9af625b21f43bcf218c98b9849a..98757194495e9bbe0e66c8561b1d43e4f2460de7 100644 (file)
@@ -6,7 +6,7 @@
    <rect>
     <x>0</x>
     <y>0</y>
-    <width>315</width>
+    <width>271</width>
     <height>92</height>
    </rect>
   </property>
     <number>0</number>
    </property>
    <item>
-    <widget class="QGroupBox" name="GroupType1">
+    <widget class="QGroupBox" name="GroupType2">
      <property name="title">
       <string>GroupBox</string>
      </property>
-     <layout class="QVBoxLayout" name="verticalLayout">
+     <layout class="QVBoxLayout" name="verticalLayout_2">
       <item>
-       <widget class="QRadioButton" name="RadioButton1">
+       <widget class="QRadioButton" name="RadioButton3">
         <property name="text">
-         <string>RadioButton1</string>
+         <string>RadioButton3</string>
         </property>
         <property name="autoExclusive">
          <bool>false</bool>
@@ -34,9 +34,9 @@
        </widget>
       </item>
       <item>
-       <widget class="QRadioButton" name="RadioButton2">
+       <widget class="QRadioButton" name="RadioButton4">
         <property name="text">
-         <string>RadioButton2</string>
+         <string>RadioButton4</string>
         </property>
         <property name="autoExclusive">
          <bool>false</bool>
     </widget>
    </item>
    <item>
-    <widget class="QGroupBox" name="GroupType2">
+    <widget class="QGroupBox" name="GroupType1">
      <property name="title">
       <string>GroupBox</string>
      </property>
-     <layout class="QVBoxLayout" name="verticalLayout_2">
+     <layout class="QVBoxLayout" name="verticalLayout">
       <item>
-       <widget class="QRadioButton" name="RadioButton3">
+       <widget class="QRadioButton" name="RadioButton1">
         <property name="text">
-         <string>RadioButton3</string>
+         <string>RadioButton1</string>
         </property>
         <property name="autoExclusive">
          <bool>false</bool>
@@ -63,9 +63,9 @@
        </widget>
       </item>
       <item>
-       <widget class="QRadioButton" name="RadioButton4">
+       <widget class="QRadioButton" name="RadioButton2">
         <property name="text">
-         <string>RadioButton4</string>
+         <string>RadioButton2</string>
         </property>
         <property name="autoExclusive">
          <bool>false</bool>
@@ -80,8 +80,6 @@
  <layoutdefault spacing="6" margin="11"/>
  <pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
  <tabstops>
-  <tabstop>RadioButton1</tabstop>
-  <tabstop>RadioButton2</tabstop>
   <tabstop>RadioButton3</tabstop>
  </tabstops>
  <resources/>
index d0ec111bb5d14b1ef5d8963755bfb3d60f229193..19b71ca9e0f86566e67089532e3e150d17929232 100644 (file)
@@ -113,6 +113,14 @@ Please, select face, shell or solid and try again</translation>
         <source>GEOM_ANGLE</source>
         <translation>Angle :</translation>
     </message>
+    <message>
+        <source>GEOM_ANGLES</source>
+        <translation>Angles</translation>
+    </message>
+    <message>
+        <source>GEOM_ANGLE_2</source>
+        <translation>Angle 2 :</translation>
+    </message>
     <message>
         <source>GEOM_ANGLE_1</source>
         <translation>Angle</translation>
@@ -1078,6 +1086,10 @@ Please, select face, shell or solid and try again</translation>
         <source>GEOM_MIRROR_TITLE</source>
         <translation>Mirror An Object</translation>
     </message>
+    <message>
+        <source>GEOM_MODE</source>
+        <translation>Mode</translation>
+    </message>
     <message>
         <source>GEOM_MULTIROTATION</source>
         <translation>Multi-Rotation</translation>
@@ -1638,6 +1650,18 @@ Please, select face, shell or solid and try again</translation>
         <source>GEOM_SHELL_TITLE</source>
         <translation>Shell Construction</translation>
     </message>
+    <message>
+        <source>GEOM_SHOW_LENGTH</source>
+        <translation>Show length dimensions</translation>
+    </message>
+    <message>
+        <source>GEOM_SHOW_ANGLE</source>
+        <translation>Show angle dimensions</translation>
+    </message>
+    <message>
+        <source>GEOM_SHOW_POINTS_COORD</source>
+        <translation>Show start/end point coordinates</translation>
+    </message>
     <message>
         <source>GEOM_SKETCH</source>
         <translation>Sketch</translation>
@@ -1848,7 +1872,7 @@ Please, select face, shell or solid and try again</translation>
     </message>
     <message>
         <source>GEOM_CONTROLS</source>
-        <translation>Dimensions</translation>
+        <translation>Controls</translation>
     </message>
     <message>
         <source>GEOM_SOLID</source>
@@ -1886,6 +1910,14 @@ Please, select face, shell or solid and try again</translation>
         <source>GEOM_SQUARE</source>
         <translation>Square</translation>
     </message>
+    <message>
+        <source>GEOM_START</source>
+        <translation>Start :</translation>
+    </message>
+    <message>
+        <source>GEOM_END</source>
+        <translation>End :</translation>
+    </message>
     <message>
         <source>GEOM_START_LCS</source>
         <translation>Start LCS</translation>
index 75db6a8ae2f51ee8d452f7672ef76e533ded7224..9fea14088cd6a7bf28160e30f67a03a227d4ec36 100644 (file)
@@ -109,6 +109,14 @@ Choisissez une face, une coque ou un solide et essayez de nouveau</translation>
         <source>GEOM_ANGLE</source>
         <translation>Angle :</translation>
     </message>
+    <message>
+        <source>GEOM_ANGLES</source>
+        <translation>Angles</translation>
+    </message>
+    <message>
+        <source>GEOM_ANGLE_2</source>
+        <translation>Angle 2 :</translation>
+    </message>
     <message>
         <source>GEOM_ANGLE_1</source>
         <translation>Angle</translation>
@@ -836,7 +844,7 @@ Choisissez une face, une coque ou un solide et essayez de nouveau</translation>
     </message>
     <message>
         <source>GEOM_HEIGHT</source>
-        <translation>Hauteur:</translation>
+        <translation>Hauteur :</translation>
     </message>
     <message>
         <source>GEOM_HEXAGON</source>
@@ -1058,6 +1066,10 @@ Choisissez une face, une coque ou un solide et essayez de nouveau</translation>
         <source>GEOM_MIRROR_TITLE</source>
         <translation>Refléter un objet</translation>
     </message>
+    <message>
+        <source>GEOM_MODE</source>
+        <translation>Mode</translation>
+    </message>
     <message>
         <source>GEOM_MULTIROTATION</source>
         <translation>Multi-rotation</translation>
@@ -1618,6 +1630,18 @@ Choisissez une face, une coque ou un solide et essayez de nouveau</translation>
         <source>GEOM_SHELL_TITLE</source>
         <translation>Construction d&apos;une coque</translation>
     </message>
+    <message>
+        <source>GEOM_SHOW_LENGTH</source>
+        <translation>Afficher les cotes de longueur</translation>
+    </message>
+    <message>
+        <source>GEOM_SHOW_ANGLE</source>
+        <translation>Afficher les cotes d'angle</translation>
+    </message>
+    <message>
+        <source>GEOM_SHOW_POINTS_COORD</source>
+        <translation>Afficher les points de départ/arrivée</translation>
+    </message>
     <message>
         <source>GEOM_SKETCH</source>
         <translation>Esquisse</translation>
@@ -1826,6 +1850,10 @@ Choisissez une face, une coque ou un solide et essayez de nouveau</translation>
         <source>GEOM_COORDINATES_TYPE</source>
         <translation>Type de coordonnées</translation>
     </message>
+    <message>
+        <source>GEOM_CONTROLS</source>
+        <translation>Eléments de contrôle</translation>
+    </message>
     <message>
         <source>GEOM_SOLID</source>
         <translation>Solide</translation>
@@ -1862,6 +1890,14 @@ Choisissez une face, une coque ou un solide et essayez de nouveau</translation>
         <source>GEOM_SQUARE</source>
         <translation>Carré</translation>
     </message>
+    <message>
+        <source>GEOM_START</source>
+        <translation>Départ :</translation>
+    </message>
+    <message>
+        <source>GEOM_END</source>
+        <translation>Arrivée :</translation>
+    </message>
     <message>
         <source>GEOM_START_LCS</source>
         <translation>SCL du Début</translation>