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:
@@ -355,7 +355,7 @@ void TaskRichAnno::createAnnoFeature()
|
||||
|
||||
std::string PageName = m_basePage->getNameInDocument();
|
||||
|
||||
Gui::Command::openCommand("Create Anno");
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Create Anno"));
|
||||
Command::doCommand(Command::Doc,"App.activeDocument().addObject('%s','%s')",
|
||||
annoType.c_str(),annoName.c_str());
|
||||
Command::doCommand(Command::Doc,"App.activeDocument().%s.addView(App.activeDocument().%s)",
|
||||
@@ -414,7 +414,7 @@ void TaskRichAnno::createAnnoFeature()
|
||||
void TaskRichAnno::updateAnnoFeature()
|
||||
{
|
||||
// Base::Console().Message("TRA::updateAnnoFeature()\n");
|
||||
Gui::Command::openCommand("Edit Anno");
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Edit Anno"));
|
||||
commonFeatureUpdate();
|
||||
App::Color ac;
|
||||
ac.setValue<QColor>(ui->cpFrameColor->color());
|
||||
|
||||
Reference in New Issue
Block a user