diff --git a/src/Mod/Points/Gui/Command.cpp b/src/Mod/Points/Gui/Command.cpp index e607a008ab..cb7e623f46 100644 --- a/src/Mod/Points/Gui/Command.cpp +++ b/src/Mod/Points/Gui/Command.cpp @@ -85,7 +85,7 @@ void CmdPointsImport::activated(int iMsg) if (!fn.isEmpty()) { fn = Base::Tools::escapeEncodeFilename(fn); Gui::Document* doc = getActiveGuiDocument(); - openCommand("Import points"); + openCommand(QT_TRANSLATE_NOOP("Command", "Import points")); addModule(Command::App, "Points"); doCommand(Command::Doc, "Points.insert(\"%s\", \"%s\")", fn.toUtf8().data(), doc->getDocument()->getName()); @@ -165,7 +165,7 @@ void CmdPointsTransform::activated(int iMsg) Base::Placement trans; trans.setRotation(Base::Rotation(Base::Vector3d(0.0, 0.0, 1.0), 1.570796)); - openCommand("Transform points"); + openCommand(QT_TRANSLATE_NOOP("Command", "Transform points")); //std::vector points = getSelection().getObjectsOfType(Points::Feature::getClassTypeId()); //for (std::vector::const_iterator it = points.begin(); it != points.end(); ++it) { // Base::Placement p = static_cast(*it)->Placement.getValue(); @@ -205,7 +205,7 @@ void CmdPointsConvert::activated(int iMsg) return; Gui::WaitCursor wc; - openCommand("Convert to points"); + openCommand(QT_TRANSLATE_NOOP("Command", "Convert to points")); std::vector geoObject = getSelection().getObjectsOfType(Base::Type::fromName("App::GeoFeature")); bool addedPoints = false; diff --git a/src/Mod/Points/Gui/ViewProvider.cpp b/src/Mod/Points/Gui/ViewProvider.cpp index fc243f8cdf..c4ec5de76c 100644 --- a/src/Mod/Points/Gui/ViewProvider.cpp +++ b/src/Mod/Points/Gui/ViewProvider.cpp @@ -465,7 +465,7 @@ void ViewProviderScattered::cut(const std::vector& picked, Gui::View3DI return; // nothing needs to be done //Remove the points from the cloud and open a transaction object for the undo/redo stuff - Gui::Application::Instance->activeDocument()->openCommand("Cut points"); + Gui::Application::Instance->activeDocument()->openCommand(QT_TRANSLATE_NOOP("Command", "Cut points")); // sets the points outside the polygon to update the Inventor node fea->Points.removeIndices(removeIndices); @@ -624,7 +624,7 @@ void ViewProviderStructured::cut(const std::vector& picked, Gui::View3D if (invalidatePoints) { //Remove the points from the cloud and open a transaction object for the undo/redo stuff - Gui::Application::Instance->activeDocument()->openCommand("Cut points"); + Gui::Application::Instance->activeDocument()->openCommand(QT_TRANSLATE_NOOP("Command", "Cut points")); // sets the points outside the polygon to update the Inventor node fea->Points.setValue(newKernel);