[TechDraw] Translations and grammer (#16301)
Co-authored-by: WandererFan <WandererFan@gmail.com>
This commit is contained in:
committed by
GitHub
parent
7df1a5d00a
commit
e025b1bfe2
@@ -1417,7 +1417,7 @@ void CmdTechDrawClipGroupAdd::activated(int iMsg)
|
||||
std::string ClipName = clip->getNameInDocument();
|
||||
std::string ViewName = view->getNameInDocument();
|
||||
|
||||
openCommand(QT_TRANSLATE_NOOP("Command", "ClipGroupAdd"));
|
||||
openCommand(QT_TRANSLATE_NOOP("Command", "Add clip group"));
|
||||
doCommand(Doc, "App.activeDocument().%s.ViewObject.Visibility = False", ViewName.c_str());
|
||||
doCommand(Doc, "App.activeDocument().%s.addView(App.activeDocument().%s)", ClipName.c_str(),
|
||||
ViewName.c_str());
|
||||
@@ -1488,7 +1488,7 @@ void CmdTechDrawClipGroupRemove::activated(int iMsg)
|
||||
std::string ClipName = clip->getNameInDocument();
|
||||
std::string ViewName = view->getNameInDocument();
|
||||
|
||||
openCommand(QT_TRANSLATE_NOOP("Command", "ClipGroupRemove"));
|
||||
openCommand(QT_TRANSLATE_NOOP("Command", "Remove clip group"));
|
||||
doCommand(Doc, "App.activeDocument().%s.ViewObject.Visibility = False", ViewName.c_str());
|
||||
doCommand(Doc, "App.activeDocument().%s.removeView(App.activeDocument().%s)", ClipName.c_str(),
|
||||
ViewName.c_str());
|
||||
@@ -1853,7 +1853,7 @@ void CmdTechDrawExportPageDXF::activated(int iMsg)
|
||||
QString defaultDir;
|
||||
QString fileName = Gui::FileDialog::getSaveFileName(
|
||||
Gui::getMainWindow(), QString::fromUtf8(QT_TR_NOOP("Save DXF file")), defaultDir,
|
||||
QString::fromUtf8(QT_TR_NOOP("DXF (*.dxf)")));
|
||||
QString::fromUtf8("DXF (*.dxf)"));
|
||||
|
||||
if (fileName.isEmpty()) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user