TD: Issue #0004473: Expose openCommand() to translation
Continuing the work to expose the undo/redo functionality to translation. This commit does so for the TechDraw Wb. Ticket: https://tracker.freecadweb.org/view.php?id=4473
This commit is contained in:
@@ -933,7 +933,7 @@ void MDIViewPage::saveDXF(std::string fileName)
|
||||
TechDraw::DrawPage* page = m_vpPage->getDrawPage();
|
||||
std::string PageName = page->getNameInDocument();
|
||||
fileName = Base::Tools::escapeEncodeFilename(fileName);
|
||||
Gui::Command::openCommand("Save page to dxf");
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Save page to dxf"));
|
||||
Gui::Command::doCommand(Gui::Command::Doc,"import TechDraw");
|
||||
Gui::Command::doCommand(Gui::Command::Doc,"TechDraw.writeDXFPage(App.activeDocument().%s,u\"%s\")",
|
||||
PageName.c_str(),(const char*)fileName.c_str());
|
||||
|
||||
Reference in New Issue
Block a user