Part: Fix translation bug in FaceMaker
This commit is contained in:
@@ -59,7 +59,7 @@ void Part::FaceMaker::addShape(const TopoDS_Shape& sh)
|
||||
this->myWires.push_back(BRepBuilderAPI_MakeWire(TopoDS::Edge(sh)).Wire());
|
||||
break;
|
||||
default:
|
||||
throw Base::TypeError("Shape must be a wire, edge or compound. Something else was supplied.");
|
||||
throw Base::TypeError(tr("Shape must be a wire, edge or compound. Something else was supplied.").toStdString());
|
||||
break;
|
||||
}
|
||||
this->mySourceShapes.push_back(sh);
|
||||
@@ -172,12 +172,12 @@ TYPESYSTEM_SOURCE(Part::FaceMakerSimple, Part::FaceMakerPublic)
|
||||
|
||||
std::string Part::FaceMakerSimple::getUserFriendlyName() const
|
||||
{
|
||||
return {QT_TRANSLATE_NOOP("Part_FaceMaker","Simple")};
|
||||
return {tr("Simple").toStdString()};
|
||||
}
|
||||
|
||||
std::string Part::FaceMakerSimple::getBriefExplanation() const
|
||||
{
|
||||
return {QT_TRANSLATE_NOOP("Part_FaceMaker","Makes separate plane face from every wire independently. No support for holes; wires can be on different planes.")};
|
||||
return {tr("Makes separate plane face from every wire independently. No support for holes; wires can be on different planes.").toStdString()};
|
||||
}
|
||||
|
||||
void Part::FaceMakerSimple::Build_Essence()
|
||||
|
||||
Reference in New Issue
Block a user