Gui: Issue #0004473: Expose openCommand() to translation
Continuing the work to expose the undo/redo functionality to translation. This commit does so for the src/Gui code. Ticket: https://tracker.freecadweb.org/view.php?id=4473
This commit is contained in:
@@ -269,13 +269,13 @@ void Placement::applyPlacement(const QString& data, bool incremental)
|
||||
}
|
||||
catch (...) {
|
||||
}
|
||||
document->openCommand("Placement");
|
||||
document->openCommand(QT_TRANSLATE_NOOP("Command", "Placement"));
|
||||
}
|
||||
else {
|
||||
std::vector<App::DocumentObject*> sel = Gui::Selection().getObjectsOfType
|
||||
(App::DocumentObject::getClassTypeId(), document->getDocument()->getName());
|
||||
if (!sel.empty()) {
|
||||
document->openCommand("Placement");
|
||||
document->openCommand(QT_TRANSLATE_NOOP("Command", "Placement"));
|
||||
for (std::vector<App::DocumentObject*>::iterator it=sel.begin();it!=sel.end();++it) {
|
||||
std::map<std::string,App::Property*> props;
|
||||
(*it)->getPropertyMap(props);
|
||||
|
||||
Reference in New Issue
Block a user