Skip to content

Commit

Permalink
Image: Issue #4473: Expose openCommand() to translation
Browse files Browse the repository at this point in the history
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
  • Loading branch information
luzpaz authored and wwmayer committed Dec 1, 2020
1 parent 02902c3 commit 5da8bb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mod/Image/Gui/Command.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 5da8bb0

Please sign in to comment.