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:
luz paz
2020-11-27 16:45:28 -05:00
committed by wwmayer
parent 7bf395bda6
commit 89664642fb
16 changed files with 46 additions and 46 deletions

View File

@@ -352,7 +352,7 @@ bool TaskSectionView::apply(void)
void TaskSectionView::applyQuick(std::string dir)
{
// Base::Console().Message("TSV::applyQuick(%s)\n", dir.c_str());
Gui::Command::openCommand("Apply Quick");
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Apply Quick"));
m_dirName = dir;
if (m_section == nullptr) {
createSectionView();
@@ -378,7 +378,7 @@ void TaskSectionView::applyQuick(std::string dir)
void TaskSectionView::applyAligned(void)
{
Base::Console().Message("TSV::applyAligned() - not implemented yet\n");
Gui::Command::openCommand("Apply Aligned");
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Apply Aligned"));
m_dirName = "Aligned";
//fiddle with directions here
@@ -401,7 +401,7 @@ void TaskSectionView::createSectionView(void)
std::string baseName = m_base->getNameInDocument();
double baseScale = m_base->getScale();
Gui::Command::openCommand("Create SectionView");
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Create SectionView"));
if (m_section == nullptr) {
m_sectionName = m_base->getDocument()->getUniqueObjectName("SectionView");
std::string sectionType = "TechDraw::DrawViewSection";