Skip to content

Commit

Permalink
PartDesign: [skip ci] make cut type modes of hole feature translatable
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Nov 13, 2020
1 parent 4246c90 commit b7d763a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/Mod/PartDesign/Gui/TaskHoleParameters.cpp
Expand Up @@ -47,6 +47,16 @@ namespace bp = boost::placeholders;

/* TRANSLATOR PartDesignGui::TaskHoleParameters */

// See Hole::HoleCutType_ISOmetric_Enums
// and Hole::HoleCutType_ISOmetricfine_Enums
#if 0 // needed for Qt's lupdate utility
qApp->translate("PartDesignGui::TaskHoleParameters", "Counterbore");
qApp->translate("PartDesignGui::TaskHoleParameters", "Countersink");
qApp->translate("PartDesignGui::TaskHoleParameters", "Cheesehead (deprecated)");
qApp->translate("PartDesignGui::TaskHoleParameters", "Countersink socket screw (deprecated)");
qApp->translate("PartDesignGui::TaskHoleParameters", "Cap screw (deprecated)");
#endif

TaskHoleParameters::TaskHoleParameters(ViewProviderHole *HoleView, QWidget *parent)
: TaskSketchBasedParameters(HoleView, parent, "PartDesign_Hole",tr("Hole parameters"))
, observer(new Observer(this, static_cast<PartDesign::Hole*>(vp->getObject())))
Expand Down Expand Up @@ -118,7 +128,7 @@ TaskHoleParameters::TaskHoleParameters(ViewProviderHole *HoleView, QWidget *pare
ui->HoleCutType->clear();
cursor = pcHole->HoleCutType.getEnums();
while (*cursor) {
ui->HoleCutType->addItem(QString::fromLatin1(*cursor));
ui->HoleCutType->addItem(tr(*cursor));
++cursor;
}
ui->HoleCutType->setCurrentIndex(pcHole->HoleCutType.getValue());
Expand Down

0 comments on commit b7d763a

Please sign in to comment.