Salome HOME
Add/update translations
[modules/visu.git] / src / VISUGUI / VisuGUI_CutPlanesDlg.cxx
index 4b50f7af4dc355e250784f7ff75d30aab3d15ce4..689d8be1adb60f813d3aed149fd09aa4822b66ea 100644 (file)
@@ -138,8 +138,8 @@ VisuGUI_CutPlanesPane::VisuGUI_CutPlanesPane (QWidget* theParent)
          (QAbstractItemView::EditTriggers)(QAbstractItemView::AllEditTriggers &(~QAbstractItemView::CurrentChanged)));
 
   QStringList aLabels;
-  aLabels.append( "Position" );
-  aLabels.append( "Set default" );
+  aLabels.append( tr("Position") );
+  aLabels.append( tr("Set default") );
   
   myPosTable->setHorizontalHeaderLabels( aLabels );
 
@@ -530,7 +530,7 @@ void VisuGUI_CutPlanesPane::DrawTable()
     myPosTable->setRowCount(aNbPlanes);
 
   QStringList aLabels;
-  QString str("Plane# %1");
+  QString str(tr("PLANE_NUMBER"));
   int aMin = (aNbRows < aNbPlanes)? aNbRows : aNbPlanes;
   for (int i = 0; i<aMin; i++) {
     myPosTable->item( i, 0 )->setText( QString::number(myCutPlanes->GetPlanePosition(i)));
@@ -768,7 +768,7 @@ void VisuGUI_CutPlanesPane::onPreviewCheck (bool thePreview)
 VisuGUI_CutPlanesDlg::VisuGUI_CutPlanesDlg (SalomeApp_Module* theModule)
   : VisuGUI_ScalarBarBaseDlg(theModule)
 {
-  setWindowTitle("Cut Planes Definition");
+  setWindowTitle(tr("Cut Planes Definition"));
   setSizeGripEnabled(true);
 
   QVBoxLayout* TopLayout = new QVBoxLayout (this);
@@ -778,10 +778,10 @@ VisuGUI_CutPlanesDlg::VisuGUI_CutPlanesDlg (SalomeApp_Module* theModule)
   // Tab pane
   myTabBox = new QTabWidget(this);
   myCutPane = new VisuGUI_CutPlanesPane(this/*, myMgr*/);
-  myTabBox->addTab(myCutPane, "Cut Planes");
+  myTabBox->addTab(myCutPane, tr("Cut Planes"));
   myInputPane = new VisuGUI_InputPane(VISU::TCUTPLANES, theModule, this);
-  myTabBox->addTab(GetScalarPane(), "Scalar Bar");
-  myTabBox->addTab(myInputPane, "Input");
+  myTabBox->addTab(GetScalarPane(), tr("Scalar Bar"));
+  myTabBox->addTab(myInputPane, tr("Input"));
 
   TopLayout->addWidget(myTabBox);