diff --git a/src/Mod/Mesh/Gui/Workbench.cpp b/src/Mod/Mesh/Gui/Workbench.cpp index 235af2b7e6..1f2e19bc80 100644 --- a/src/Mod/Mesh/Gui/Workbench.cpp +++ b/src/Mod/Mesh/Gui/Workbench.cpp @@ -71,25 +71,25 @@ public: MeshInfoWatcher() : TaskWatcher(nullptr) { labelPoints = new QLabel(); - labelPoints->setText(QString::fromLatin1("Number of points:")); + labelPoints->setText(tr("Number of points:")); labelFacets = new QLabel(); - labelFacets->setText(QString::fromLatin1("Number of facets:")); + labelFacets->setText(tr("Number of facets:")); numPoints = new QLabel(); numFacets = new QLabel(); labelMin = new QLabel(); - labelMin->setText(QString::fromLatin1("Minimum bound:")); + labelMin->setText(tr("Minimum bound:")); labelMax = new QLabel(); - labelMax->setText(QString::fromLatin1("Maximum bound:")); + labelMax->setText(tr("Maximum bound:")); numMin = new QLabel(); numMax = new QLabel(); QGroupBox* box = new QGroupBox(); - box->setTitle(QString::fromLatin1("Mesh info box")); + box->setTitle(tr("Mesh info box")); //box->setAutoFillBackground(true); QGridLayout* grid = new QGridLayout(box); grid->addWidget(labelPoints, 0, 0); @@ -103,7 +103,7 @@ public: grid->addWidget(numMax, 3, 1); Gui::TaskView::TaskBox* taskbox = new Gui::TaskView::TaskBox( - QPixmap(), QString::fromLatin1("Mesh info"), false, nullptr); + QPixmap(), tr("Mesh info"), false, nullptr); taskbox->groupLayout()->addWidget(box); Content.push_back(taskbox); } @@ -125,9 +125,9 @@ public: if (countPoints > 0) { numPoints->setText(QString::number(countPoints)); numFacets->setText(QString::number(countFacets)); - numMin->setText(QString::fromLatin1("X: %1\tY: %2\tZ: %3") + numMin->setText(tr("X: %1\tY: %2\tZ: %3") .arg(bbox.MinX).arg(bbox.MinY).arg(bbox.MinZ)); - numMax->setText(QString::fromLatin1("X: %1\tY: %2\tZ: %3") + numMax->setText(tr("X: %1\tY: %2\tZ: %3") .arg(bbox.MaxX).arg(bbox.MaxY).arg(bbox.MaxZ)); } else {