From 5da8bb0c3652d255f0aaae532d72387390cd76d4 Mon Sep 17 00:00:00 2001 From: luz paz Date: Sat, 28 Nov 2020 13:59:40 -0500 Subject: [PATCH] Image: Issue #0004473: Expose openCommand() to translation Continuing the work to expose the undo/redo functionality to translation. This commit does so for the Image Wb. Ticket: https://tracker.freecadweb.org/view.php?id=4473 --- src/Mod/Image/Gui/Command.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Image/Gui/Command.cpp b/src/Mod/Image/Gui/Command.cpp index 4aae6b9ff0..2092e9f7d1 100644 --- a/src/Mod/Image/Gui/Command.cpp +++ b/src/Mod/Image/Gui/Command.cpp @@ -152,7 +152,7 @@ void CmdCreateImagePlane::activated(int iMsg) QString pyfile = Base::Tools::escapeEncodeFilename(s); - openCommand("Create ImagePlane"); + openCommand(QT_TRANSLATE_NOOP("Command", "Create ImagePlane")); doCommand(Doc,"App.activeDocument().addObject('Image::ImagePlane','%s\')",FeatName.c_str()); doCommand(Doc,"App.activeDocument().%s.ImageFile = '%s'",FeatName.c_str(),(const char*)pyfile.toUtf8()); doCommand(Doc,"App.activeDocument().%s.XSize = %d",FeatName.c_str(),nWidth);