From: mpv Date: Wed, 11 Sep 2019 08:24:16 +0000 (+0300) Subject: Additional translation of Extrusion feature "default" shape selector values. X-Git-Tag: V9_4_0a2~4^2~81^2~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=de0e5963eab0657604a972dc930f6d07fcb5e91f;p=modules%2Fshaper.git Additional translation of Extrusion feature "default" shape selector values. --- diff --git a/src/FeaturesPlugin/FeaturesPlugin_msg_fr.ts b/src/FeaturesPlugin/FeaturesPlugin_msg_fr.ts index 5faea79d3..127c9e0fd 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_msg_fr.ts +++ b/src/FeaturesPlugin/FeaturesPlugin_msg_fr.ts @@ -638,7 +638,27 @@ AA - + + Extrusion:direction_object + + <base normal> + AA + + + + Extrusion:from_object + + <base sketch> + AA + + + + Extrusion:to_object + + <base sketch> + AA + + ExtrusionCut:GeomValidators_ZeroOffset diff --git a/src/ModuleBase/ModuleBase_WidgetShapeSelector.cpp b/src/ModuleBase/ModuleBase_WidgetShapeSelector.cpp index e5ea93389..c8d37d5d3 100644 --- a/src/ModuleBase/ModuleBase_WidgetShapeSelector.cpp +++ b/src/ModuleBase/ModuleBase_WidgetShapeSelector.cpp @@ -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())); } } }