X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_WidgetSwitch.cpp;h=e912ebc62a717f7c6448ee82dc02e3789f6d95d3;hb=d335fa85ad1b38088f011253a3189276556cc959;hp=405ddc1984038896cfa15fe9f562e27aa432a559;hpb=c4eab94a20a0d93100549a210582d46409fec1cc;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_WidgetSwitch.cpp b/src/ModuleBase/ModuleBase_WidgetSwitch.cpp index 405ddc198..e912ebc62 100644 --- a/src/ModuleBase/ModuleBase_WidgetSwitch.cpp +++ b/src/ModuleBase/ModuleBase_WidgetSwitch.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2019 CEA/DEN, EDF R&D +// Copyright (C) 2014-2023 CEA, EDF // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -57,9 +57,8 @@ int ModuleBase_WidgetSwitch::addPage(ModuleBase_PageBase* thePage, const QString const QPixmap& theIcon, const QString& theTooltip) { - int aSuperCount = - ModuleBase_PagedContainer::addPage(thePage, theName, theCaseId, theIcon, theTooltip); - myCombo->addItem(theName); + ModuleBase_PagedContainer::addPage(thePage, theName, theCaseId, theIcon, theTooltip); + myCombo->addItem(translate(theName.toStdString())); int aResultCount = myCombo->count(); if (aResultCount == 2) myCombo->show();