From d23c0810470186f9bcb9baca3c0c5c4fdbfef9e5 Mon Sep 17 00:00:00 2001 From: luz paz Date: Sat, 28 Nov 2020 13:36:46 -0500 Subject: [PATCH] MeshPart: Issue #0004473: Expose openCommand() to translation Continuing the work to expose the undo/redo functionality to translation. This commit does so for the MeshPart Wb. Ticket: https://tracker.freecadweb.org/view.php?id=4473 --- src/Mod/MeshPart/Gui/Command.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/MeshPart/Gui/Command.cpp b/src/Mod/MeshPart/Gui/Command.cpp index 4afe0c7dab..38ea426665 100644 --- a/src/Mod/MeshPart/Gui/Command.cpp +++ b/src/Mod/MeshPart/Gui/Command.cpp @@ -126,7 +126,7 @@ void CmdMeshPartTrimByPlane::activated(int) Base::Placement plnPlacement = static_cast(plane.front())->Placement.getValue(); - openCommand("Trim with plane"); + openCommand(QT_TRANSLATE_NOOP("Command", "Trim with plane")); std::vector docObj = Gui::Selection().getObjectsOfType(Mesh::Feature::getClassTypeId()); for (std::vector::iterator it = docObj.begin(); it != docObj.end(); ++it) { Base::Vector3d normal(0,0,1); @@ -212,7 +212,7 @@ void CmdMeshPartSection::activated(int) plm.getRotation().multVec(normal, normal); Base::Vector3d base = plm.getPosition(); - openCommand("Section with plane"); + openCommand(QT_TRANSLATE_NOOP("Command", "Section with plane")); std::vector docObj = Gui::Selection().getObjectsOfType(Mesh::Feature::getClassTypeId()); Mesh::MeshObject::TPlane tplane; tplane.first = Base::convertTo(base);