Part: Fix translation bug in FaceMaker

This commit is contained in:
Chris Hennes
2024-01-22 12:14:54 -06:00
parent 6dda56117a
commit 84380b3a56
5 changed files with 11 additions and 10 deletions

View File

@@ -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()