From c1b652f21ec92502b10b150babc48dd4249f7d9d Mon Sep 17 00:00:00 2001 From: mandeeps708 Date: Wed, 6 Apr 2016 02:51:03 +0530 Subject: [PATCH] fixes typo in Part Design workbench --- src/Mod/PartDesign/Gui/Command.cpp | 48 +++++++++++++++--------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/src/Mod/PartDesign/Gui/Command.cpp b/src/Mod/PartDesign/Gui/Command.cpp index a4da0f1cf..216867a9b 100644 --- a/src/Mod/PartDesign/Gui/Command.cpp +++ b/src/Mod/PartDesign/Gui/Command.cpp @@ -198,7 +198,7 @@ void CmdPartDesignPad::activated(int iMsg) if (sketches.size() == 0) { if (bNoSketchWasSelected) { QMessageBox::warning(Gui::getMainWindow(), QObject::tr("No valid sketches in this document"), - QObject::tr("Please create a sketch or 2D object first")); + QObject::tr("Please create a sketch or 2D object first.")); } else { QMessageBox::warning(Gui::getMainWindow(), QObject::tr("No valid sketches selected"), QObject::tr("None of selected sketches/2D objects is valid for padding. Please select a valid sketch or 2D object that is not used by any other feature.")); @@ -264,7 +264,7 @@ CmdPartDesignPocket::CmdPartDesignPocket() sAppModule = "PartDesign"; sGroup = QT_TR_NOOP("PartDesign"); sMenuText = QT_TR_NOOP("Pocket"); - sToolTipText = QT_TR_NOOP("create a pocket with the selected sketch"); + sToolTipText = QT_TR_NOOP("Create a pocket with the selected sketch"); sWhatsThis = "PartDesign_Pocket"; sStatusTip = sToolTipText; sPixmap = "PartDesign_Pocket"; @@ -282,7 +282,7 @@ void CmdPartDesignPocket::activated(int iMsg) Gui::validateSketches(sketches, true); if (sketches.size() == 0) { QMessageBox::warning(Gui::getMainWindow(), QObject::tr("No valid sketches in this document"), - QObject::tr("Please create a sketch or 2D object first. It must have a support face on a solid")); + QObject::tr("Please create a sketch or 2D object first. It must have a support face on a solid.")); return; } } @@ -356,7 +356,7 @@ void CmdPartDesignRevolution::activated(int iMsg) if (sketches.size() == 0) { if (bNoSketchWasSelected) { QMessageBox::warning(Gui::getMainWindow(), QObject::tr("No valid sketches in this document"), - QObject::tr("Please create a sketch or 2D object first")); + QObject::tr("Please create a sketch or 2D object first.")); } else { QMessageBox::warning(Gui::getMainWindow(), QObject::tr("No valid sketches selected"), QObject::tr("None of selected sketches/2D objects is valid for revolving. Please select a valid sketch or 2D object that is not used by any other feature.")); @@ -440,7 +440,7 @@ void CmdPartDesignGroove::activated(int iMsg) Gui::validateSketches(sketches, true); if (sketches.size() == 0) { QMessageBox::warning(Gui::getMainWindow(), QObject::tr("No valid sketches in this document"), - QObject::tr("Please create a sketch or 2D object first. It must have a support face on a solid")); + QObject::tr("Please create a sketch or 2D object first. It must have a support face on a solid.")); return; } } @@ -520,7 +520,7 @@ void CmdPartDesignFillet::activated(int iMsg) if (!selection[0].isObjectTypeOf(Part::Feature::getClassTypeId())){ QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong object type"), - QObject::tr("Fillet works only on parts")); + QObject::tr("Fillet works only on parts.")); return; } @@ -529,7 +529,7 @@ void CmdPartDesignFillet::activated(int iMsg) const Part::TopoShape& TopShape = base->Shape.getShape(); if (TopShape._Shape.IsNull()){ QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"), - QObject::tr("Shape of selected part is empty")); + QObject::tr("Shape of selected part is empty.")); return; } @@ -600,7 +600,7 @@ void CmdPartDesignFillet::activated(int iMsg) if (SubNames.size() == 0) { QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"), - QObject::tr("No fillet possible on selected faces/edges")); + QObject::tr("No fillet possible on selected faces/edges.")); return; } @@ -672,7 +672,7 @@ void CmdPartDesignChamfer::activated(int iMsg) if (!selection[0].isObjectTypeOf(Part::Feature::getClassTypeId())){ QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong object type"), - QObject::tr("Chamfer works only on parts")); + QObject::tr("Chamfer works only on parts.")); return; } @@ -682,7 +682,7 @@ void CmdPartDesignChamfer::activated(int iMsg) if (TopShape._Shape.IsNull()){ QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"), - QObject::tr("Shape of selected part is empty")); + QObject::tr("Shape of selected part is empty.")); return; } @@ -753,7 +753,7 @@ void CmdPartDesignChamfer::activated(int iMsg) if (SubNames.size() == 0) { QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"), - QObject::tr("No chamfer possible on selected faces/edges")); + QObject::tr("No chamfer possible on selected faces/edges.")); return; } @@ -825,7 +825,7 @@ void CmdPartDesignDraft::activated(int iMsg) if (!selection[0].isObjectTypeOf(Part::Feature::getClassTypeId())){ QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong object type"), - QObject::tr("Draft works only on parts")); + QObject::tr("Draft works only on parts.")); return; } @@ -834,7 +834,7 @@ void CmdPartDesignDraft::activated(int iMsg) const Part::TopoShape& TopShape = base->Shape.getShape(); if (TopShape._Shape.IsNull()){ QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"), - QObject::tr("Shape of selected Part is empty")); + QObject::tr("Shape of selected Part is empty.")); return; } @@ -861,7 +861,7 @@ void CmdPartDesignDraft::activated(int iMsg) if (SubNames.size() == 0) { QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"), - QObject::tr("No draft possible on selected faces")); + QObject::tr("No draft possible on selected faces.")); return; } @@ -923,7 +923,7 @@ CmdPartDesignMirrored::CmdPartDesignMirrored() sAppModule = "PartDesign"; sGroup = QT_TR_NOOP("PartDesign"); sMenuText = QT_TR_NOOP("Mirrored"); - sToolTipText = QT_TR_NOOP("create a mirrored feature"); + sToolTipText = QT_TR_NOOP("Create a mirrored feature"); sWhatsThis = "PartDesign_Mirrored"; sStatusTip = sToolTipText; sPixmap = "PartDesign_Mirrored"; @@ -948,7 +948,7 @@ void CmdPartDesignMirrored::activated(int iMsg) return; // Cancelled or nothing selected } else { QMessageBox::warning(Gui::getMainWindow(), QObject::tr("No valid features in this document"), - QObject::tr("Please create a subtractive or additive feature first")); + QObject::tr("Please create a subtractive or additive feature first.")); return; } } @@ -999,7 +999,7 @@ CmdPartDesignLinearPattern::CmdPartDesignLinearPattern() sAppModule = "PartDesign"; sGroup = QT_TR_NOOP("PartDesign"); sMenuText = QT_TR_NOOP("LinearPattern"); - sToolTipText = QT_TR_NOOP("create a linear pattern feature"); + sToolTipText = QT_TR_NOOP("Create a linear pattern feature"); sWhatsThis = "PartDesign_LinearPattern"; sStatusTip = sToolTipText; sPixmap = "PartDesign_LinearPattern"; @@ -1024,7 +1024,7 @@ void CmdPartDesignLinearPattern::activated(int iMsg) return; // Cancelled or nothing selected } else { QMessageBox::warning(Gui::getMainWindow(), QObject::tr("No valid features in this document"), - QObject::tr("Please create a subtractive or additive feature first, please")); + QObject::tr("Please create a subtractive or additive feature first.")); return; } } @@ -1082,7 +1082,7 @@ CmdPartDesignPolarPattern::CmdPartDesignPolarPattern() sAppModule = "PartDesign"; sGroup = QT_TR_NOOP("PartDesign"); sMenuText = QT_TR_NOOP("PolarPattern"); - sToolTipText = QT_TR_NOOP("create a polar pattern feature"); + sToolTipText = QT_TR_NOOP("Create a polar pattern feature"); sWhatsThis = "PartDesign_PolarPattern"; sStatusTip = sToolTipText; sPixmap = "PartDesign_PolarPattern"; @@ -1107,7 +1107,7 @@ void CmdPartDesignPolarPattern::activated(int iMsg) return; // Cancelled or nothing selected } else { QMessageBox::warning(Gui::getMainWindow(), QObject::tr("No valid features in this document"), - QObject::tr("Please create a subtractive or additive feature first, please")); + QObject::tr("Please create a subtractive or additive feature first.")); return; } } @@ -1165,7 +1165,7 @@ CmdPartDesignScaled::CmdPartDesignScaled() sAppModule = "PartDesign"; sGroup = QT_TR_NOOP("PartDesign"); sMenuText = QT_TR_NOOP("Scaled"); - sToolTipText = QT_TR_NOOP("create a scaled feature"); + sToolTipText = QT_TR_NOOP("Create a scaled feature"); sWhatsThis = "PartDesign_Scaled"; sStatusTip = sToolTipText; sPixmap = "PartDesign_Scaled"; @@ -1190,7 +1190,7 @@ void CmdPartDesignScaled::activated(int iMsg) return; // Cancelled or nothing selected } else { QMessageBox::warning(Gui::getMainWindow(), QObject::tr("No valid features in this document"), - QObject::tr("Please create a subtractive or additive feature first, please")); + QObject::tr("Please create a subtractive or additive feature first.")); return; } } @@ -1237,7 +1237,7 @@ CmdPartDesignMultiTransform::CmdPartDesignMultiTransform() sAppModule = "PartDesign"; sGroup = QT_TR_NOOP("PartDesign"); sMenuText = QT_TR_NOOP("MultiTransform"); - sToolTipText = QT_TR_NOOP("create a multitransform feature"); + sToolTipText = QT_TR_NOOP("Create a multitransform feature"); sWhatsThis = "PartDesign_MultiTransform"; sStatusTip = sToolTipText; sPixmap = "PartDesign_MultiTransform"; @@ -1262,7 +1262,7 @@ void CmdPartDesignMultiTransform::activated(int iMsg) return; // Cancelled or nothing selected } else { QMessageBox::warning(Gui::getMainWindow(), QObject::tr("No valid features in this document"), - QObject::tr("Please create a subtractive or additive feature first, please")); + QObject::tr("Please create a subtractive or additive feature first.")); return; } }