fixes typo in Part Design workbench

This commit is contained in:
mandeeps708 2016-04-06 02:51:03 +05:30
parent 87293fac9b
commit c1b652f21e

View File

@ -198,7 +198,7 @@ void CmdPartDesignPad::activated(int iMsg)
if (sketches.size() == 0) { if (sketches.size() == 0) {
if (bNoSketchWasSelected) { if (bNoSketchWasSelected) {
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("No valid sketches in this document"), 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 { } else {
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("No valid sketches selected"), 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.")); 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"; sAppModule = "PartDesign";
sGroup = QT_TR_NOOP("PartDesign"); sGroup = QT_TR_NOOP("PartDesign");
sMenuText = QT_TR_NOOP("Pocket"); 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"; sWhatsThis = "PartDesign_Pocket";
sStatusTip = sToolTipText; sStatusTip = sToolTipText;
sPixmap = "PartDesign_Pocket"; sPixmap = "PartDesign_Pocket";
@ -282,7 +282,7 @@ void CmdPartDesignPocket::activated(int iMsg)
Gui::validateSketches(sketches, true); Gui::validateSketches(sketches, true);
if (sketches.size() == 0) { if (sketches.size() == 0) {
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("No valid sketches in this document"), 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; return;
} }
} }
@ -356,7 +356,7 @@ void CmdPartDesignRevolution::activated(int iMsg)
if (sketches.size() == 0) { if (sketches.size() == 0) {
if (bNoSketchWasSelected) { if (bNoSketchWasSelected) {
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("No valid sketches in this document"), 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 { } else {
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("No valid sketches selected"), 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.")); 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); Gui::validateSketches(sketches, true);
if (sketches.size() == 0) { if (sketches.size() == 0) {
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("No valid sketches in this document"), 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; return;
} }
} }
@ -520,7 +520,7 @@ void CmdPartDesignFillet::activated(int iMsg)
if (!selection[0].isObjectTypeOf(Part::Feature::getClassTypeId())){ if (!selection[0].isObjectTypeOf(Part::Feature::getClassTypeId())){
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong object type"), QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong object type"),
QObject::tr("Fillet works only on parts")); QObject::tr("Fillet works only on parts."));
return; return;
} }
@ -529,7 +529,7 @@ void CmdPartDesignFillet::activated(int iMsg)
const Part::TopoShape& TopShape = base->Shape.getShape(); const Part::TopoShape& TopShape = base->Shape.getShape();
if (TopShape._Shape.IsNull()){ if (TopShape._Shape.IsNull()){
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"), 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; return;
} }
@ -600,7 +600,7 @@ void CmdPartDesignFillet::activated(int iMsg)
if (SubNames.size() == 0) { if (SubNames.size() == 0) {
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"), 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; return;
} }
@ -672,7 +672,7 @@ void CmdPartDesignChamfer::activated(int iMsg)
if (!selection[0].isObjectTypeOf(Part::Feature::getClassTypeId())){ if (!selection[0].isObjectTypeOf(Part::Feature::getClassTypeId())){
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong object type"), QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong object type"),
QObject::tr("Chamfer works only on parts")); QObject::tr("Chamfer works only on parts."));
return; return;
} }
@ -682,7 +682,7 @@ void CmdPartDesignChamfer::activated(int iMsg)
if (TopShape._Shape.IsNull()){ if (TopShape._Shape.IsNull()){
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"), 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; return;
} }
@ -753,7 +753,7 @@ void CmdPartDesignChamfer::activated(int iMsg)
if (SubNames.size() == 0) { if (SubNames.size() == 0) {
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"), 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; return;
} }
@ -825,7 +825,7 @@ void CmdPartDesignDraft::activated(int iMsg)
if (!selection[0].isObjectTypeOf(Part::Feature::getClassTypeId())){ if (!selection[0].isObjectTypeOf(Part::Feature::getClassTypeId())){
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong object type"), QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong object type"),
QObject::tr("Draft works only on parts")); QObject::tr("Draft works only on parts."));
return; return;
} }
@ -834,7 +834,7 @@ void CmdPartDesignDraft::activated(int iMsg)
const Part::TopoShape& TopShape = base->Shape.getShape(); const Part::TopoShape& TopShape = base->Shape.getShape();
if (TopShape._Shape.IsNull()){ if (TopShape._Shape.IsNull()){
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"), 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; return;
} }
@ -861,7 +861,7 @@ void CmdPartDesignDraft::activated(int iMsg)
if (SubNames.size() == 0) { if (SubNames.size() == 0) {
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"), 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; return;
} }
@ -923,7 +923,7 @@ CmdPartDesignMirrored::CmdPartDesignMirrored()
sAppModule = "PartDesign"; sAppModule = "PartDesign";
sGroup = QT_TR_NOOP("PartDesign"); sGroup = QT_TR_NOOP("PartDesign");
sMenuText = QT_TR_NOOP("Mirrored"); sMenuText = QT_TR_NOOP("Mirrored");
sToolTipText = QT_TR_NOOP("create a mirrored feature"); sToolTipText = QT_TR_NOOP("Create a mirrored feature");
sWhatsThis = "PartDesign_Mirrored"; sWhatsThis = "PartDesign_Mirrored";
sStatusTip = sToolTipText; sStatusTip = sToolTipText;
sPixmap = "PartDesign_Mirrored"; sPixmap = "PartDesign_Mirrored";
@ -948,7 +948,7 @@ void CmdPartDesignMirrored::activated(int iMsg)
return; // Cancelled or nothing selected return; // Cancelled or nothing selected
} else { } else {
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("No valid features in this document"), 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; return;
} }
} }
@ -999,7 +999,7 @@ CmdPartDesignLinearPattern::CmdPartDesignLinearPattern()
sAppModule = "PartDesign"; sAppModule = "PartDesign";
sGroup = QT_TR_NOOP("PartDesign"); sGroup = QT_TR_NOOP("PartDesign");
sMenuText = QT_TR_NOOP("LinearPattern"); 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"; sWhatsThis = "PartDesign_LinearPattern";
sStatusTip = sToolTipText; sStatusTip = sToolTipText;
sPixmap = "PartDesign_LinearPattern"; sPixmap = "PartDesign_LinearPattern";
@ -1024,7 +1024,7 @@ void CmdPartDesignLinearPattern::activated(int iMsg)
return; // Cancelled or nothing selected return; // Cancelled or nothing selected
} else { } else {
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("No valid features in this document"), 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; return;
} }
} }
@ -1082,7 +1082,7 @@ CmdPartDesignPolarPattern::CmdPartDesignPolarPattern()
sAppModule = "PartDesign"; sAppModule = "PartDesign";
sGroup = QT_TR_NOOP("PartDesign"); sGroup = QT_TR_NOOP("PartDesign");
sMenuText = QT_TR_NOOP("PolarPattern"); 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"; sWhatsThis = "PartDesign_PolarPattern";
sStatusTip = sToolTipText; sStatusTip = sToolTipText;
sPixmap = "PartDesign_PolarPattern"; sPixmap = "PartDesign_PolarPattern";
@ -1107,7 +1107,7 @@ void CmdPartDesignPolarPattern::activated(int iMsg)
return; // Cancelled or nothing selected return; // Cancelled or nothing selected
} else { } else {
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("No valid features in this document"), 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; return;
} }
} }
@ -1165,7 +1165,7 @@ CmdPartDesignScaled::CmdPartDesignScaled()
sAppModule = "PartDesign"; sAppModule = "PartDesign";
sGroup = QT_TR_NOOP("PartDesign"); sGroup = QT_TR_NOOP("PartDesign");
sMenuText = QT_TR_NOOP("Scaled"); sMenuText = QT_TR_NOOP("Scaled");
sToolTipText = QT_TR_NOOP("create a scaled feature"); sToolTipText = QT_TR_NOOP("Create a scaled feature");
sWhatsThis = "PartDesign_Scaled"; sWhatsThis = "PartDesign_Scaled";
sStatusTip = sToolTipText; sStatusTip = sToolTipText;
sPixmap = "PartDesign_Scaled"; sPixmap = "PartDesign_Scaled";
@ -1190,7 +1190,7 @@ void CmdPartDesignScaled::activated(int iMsg)
return; // Cancelled or nothing selected return; // Cancelled or nothing selected
} else { } else {
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("No valid features in this document"), 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; return;
} }
} }
@ -1237,7 +1237,7 @@ CmdPartDesignMultiTransform::CmdPartDesignMultiTransform()
sAppModule = "PartDesign"; sAppModule = "PartDesign";
sGroup = QT_TR_NOOP("PartDesign"); sGroup = QT_TR_NOOP("PartDesign");
sMenuText = QT_TR_NOOP("MultiTransform"); sMenuText = QT_TR_NOOP("MultiTransform");
sToolTipText = QT_TR_NOOP("create a multitransform feature"); sToolTipText = QT_TR_NOOP("Create a multitransform feature");
sWhatsThis = "PartDesign_MultiTransform"; sWhatsThis = "PartDesign_MultiTransform";
sStatusTip = sToolTipText; sStatusTip = sToolTipText;
sPixmap = "PartDesign_MultiTransform"; sPixmap = "PartDesign_MultiTransform";
@ -1262,7 +1262,7 @@ void CmdPartDesignMultiTransform::activated(int iMsg)
return; // Cancelled or nothing selected return; // Cancelled or nothing selected
} else { } else {
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("No valid features in this document"), 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; return;
} }
} }