Salome HOME
[bos #36169] EDF 25230 - Conversion xyz => uv => xyz. Replace all calls of ShapeAnaly...
[modules/shaper.git] / src / ModuleBase / ModuleBase_WidgetSwitch.cpp
index 405ddc1984038896cfa15fe9f562e27aa432a559..e912ebc62a717f7c6448ee82dc02e3789f6d95d3 100644 (file)
@@ -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();