From: mpv Date: Tue, 17 Sep 2019 14:34:09 +0000 (+0300) Subject: Automatic translations added. X-Git-Tag: V9_4_0a2~4^2~81^2~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=603561c4589b1938525c51f9ceab8576cf8b5367;p=modules%2Fshaper.git Automatic translations added. --- diff --git a/src/FeaturesPlugin/plugin-Features.xml b/src/FeaturesPlugin/plugin-Features.xml index 215de85d7..f7f414e98 100644 --- a/src/FeaturesPlugin/plugin-Features.xml +++ b/src/FeaturesPlugin/plugin-Features.xml @@ -11,11 +11,11 @@ icon="icons/Features/extrusion.png" helpfile="extrusionFeature.html"> - - @@ -25,11 +25,11 @@ icon="icons/Features/revol.png" helpfile="revolutionFeature.html"> - - diff --git a/src/ModuleBase/ModuleBase_ModelWidget.cpp b/src/ModuleBase/ModuleBase_ModelWidget.cpp index dd17a65d8..89546edfd 100644 --- a/src/ModuleBase/ModuleBase_ModelWidget.cpp +++ b/src/ModuleBase/ModuleBase_ModelWidget.cpp @@ -155,6 +155,7 @@ void ModuleBase_ModelWidget::processValueState() Events_InfoMessage ModuleBase_ModelWidget::getValueStateError() const { Events_InfoMessage aMessage; + aMessage.setContext(context()); ModuleBase_ModelWidget::ValueState aState = getValueState(); if (aState != ModuleBase_ModelWidget::Stored) { diff --git a/src/ModuleBase/ModuleBase_WidgetFactory.cpp b/src/ModuleBase/ModuleBase_WidgetFactory.cpp index 23728c569..0cc45bf09 100644 --- a/src/ModuleBase/ModuleBase_WidgetFactory.cpp +++ b/src/ModuleBase/ModuleBase_WidgetFactory.cpp @@ -274,7 +274,8 @@ ModuleBase_PageBase* ModuleBase_WidgetFactory::createPageByType(const std::strin if (theType == WDG_GROUP) { QString aGroupName = qs(myWidgetApi->getProperty(CONTAINER_PAGE_NAME)); ModuleBase_PageGroupBox* aPage = new ModuleBase_PageGroupBox(theParent); - aPage->setTitle(aGroupName); + aPage->setTitle(ModuleBase_Tools::translate( + myWidgetApi->myFeatureId, aGroupName.toStdString())); aResult = aPage; } else if (theType == WDG_OPTIONALBOX) { diff --git a/src/PartSet/PartSet_WidgetSketchCreator.cpp b/src/PartSet/PartSet_WidgetSketchCreator.cpp index 9cb8ab401..de888dc75 100644 --- a/src/PartSet/PartSet_WidgetSketchCreator.cpp +++ b/src/PartSet/PartSet_WidgetSketchCreator.cpp @@ -82,7 +82,7 @@ PartSet_WidgetSketchCreator::PartSet_WidgetSketchCreator(QWidget* theParent, ModuleBase_Tools::adjustMargins(aLayout); - QString aLabelText = QString::fromStdString(theData->widgetLabel()); + QString aLabelText = translate(theData->widgetLabel()); QString aLabelIcon = QString::fromStdString(theData->widgetIcon()); // Size of the View control diff --git a/src/XGUI/XGUI_MenuMgr.cpp b/src/XGUI/XGUI_MenuMgr.cpp index 8a6fce040..cb004a243 100644 --- a/src/XGUI/XGUI_MenuMgr.cpp +++ b/src/XGUI/XGUI_MenuMgr.cpp @@ -40,6 +40,7 @@ #endif #include +#include #include #include @@ -74,15 +75,16 @@ void XGUI_MenuMgr::addFeature(const std::shared_ptr& theM #endif return; } + QString aWchName = ModuleBase_Tools::translate("workshop", theMessage->workbenchId()); #ifdef HAVE_SALOME - std::shared_ptr aWorkbench = findWorkbench(theMessage->workbenchId()); + std::string aWchNameString = aWchName.toStdString(); + std::shared_ptr aWorkbench = findWorkbench(aWchNameString); std::shared_ptr aGroup = aWorkbench->findGroup(theMessage->groupId()); aGroup->setFeatureInfo(theMessage); #else ActionInfo aFeatureInfo; aFeatureInfo.initFrom(theMessage); - QString aWchName = QString::fromStdString(theMessage->workbenchId()); QStringList aNestedFeatures = QString::fromStdString(theMessage->nestedFeatures()).split(" ", QString::SkipEmptyParts); QList aNestedActList;