]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Additional translation of Extrusion feature "default" shape selector values.
authormpv <mpv@opencascade.com>
Wed, 11 Sep 2019 08:24:16 +0000 (11:24 +0300)
committermpv <mpv@opencascade.com>
Wed, 11 Sep 2019 08:24:16 +0000 (11:24 +0300)
src/FeaturesPlugin/FeaturesPlugin_msg_fr.ts
src/ModuleBase/ModuleBase_WidgetShapeSelector.cpp

index 5faea79d30aa0aa9864637b17746075489db365e..127c9e0fd6438700edbe289f70d08ad62ee17073 100644 (file)
       <translation>AA</translation>
     </message>
   </context>
-
+  <context>
+    <name>Extrusion:direction_object</name>
+    <message>
+      <source>&lt;base normal&gt;</source>
+      <translation>AA</translation>
+    </message>
+  </context>
+  <context>
+    <name>Extrusion:from_object</name>
+    <message>
+      <source>&lt;base sketch&gt;</source>
+      <translation>AA</translation>
+    </message>
+  </context>
+  <context>
+    <name>Extrusion:to_object</name>
+    <message>
+      <source>&lt;base sketch&gt;</source>
+      <translation>AA</translation>
+    </message>
+  </context>
 
   <context>
     <name>ExtrusionCut:GeomValidators_ZeroOffset</name>
index e5ea9338995ae5ac20362446cbfc2a8d0a26f6f2..c8d37d5d3ad3678481d40d680f07996d394746e6 100644 (file)
@@ -216,7 +216,8 @@ void ModuleBase_WidgetShapeSelector::updateSelectionName()
   bool isNameUpdated = false;
   AttributeSelectionPtr aSelect = aData->selection(attributeID());
   if (aSelect) {
-    myTextLine->setText(QString::fromStdString(aSelect->namingName(getDefaultValue())));
+    std::string aDefault = translate(getDefaultValue()).toStdString();
+    myTextLine->setText(QString::fromStdString(aSelect->namingName(aDefault)));
     isNameUpdated = true;
   }
   if (!isNameUpdated) {
@@ -232,7 +233,7 @@ void ModuleBase_WidgetShapeSelector::updateSelectionName()
         myTextLine->setText(QString::fromStdString(anAttrName));
       }
       else {
-        myTextLine->setText(getDefaultValue().c_str());
+        myTextLine->setText(translate(getDefaultValue()));
       }
     }
   }