From 1d5799e5b378c43a7f83658d7cc2beb1b85982df Mon Sep 17 00:00:00 2001 From: "luz.paz" Date: Tue, 6 Feb 2018 15:06:12 -0500 Subject: [PATCH] Misc. typos Inspired by @normandc per https://gitter.im/FreeCAD/FreeCAD?at=5a729c6ece68c3bc742df205 --- src/Main/MainGui.cpp | 2 +- src/Mod/Import/App/ImportOCAF.cpp | 2 +- src/Mod/JtReader/App/JtReader.cpp | 4 ++-- src/Mod/Part/App/HyperbolaPy.xml | 2 +- src/Mod/PartDesign/Gui/CommandPrimitive.cpp | 20 ++++++++++---------- src/Mod/Path/PathTests/TestPathUtil.py | 4 ++-- src/Mod/Ship/shipCreateShip/TaskPanel.py | 2 +- src/Mod/Sketcher/Gui/CommandCreateGeo.cpp | 2 +- 8 files changed, 19 insertions(+), 19 deletions(-) diff --git a/src/Main/MainGui.cpp b/src/Main/MainGui.cpp index 93c8374083..8c86ed43c8 100644 --- a/src/Main/MainGui.cpp +++ b/src/Main/MainGui.cpp @@ -357,7 +357,7 @@ static LONG __stdcall MyCrashHandlerExceptionFilter(EXCEPTION_POINTERS* pEx) stMDEI.ThreadId = GetCurrentThreadId(); stMDEI.ExceptionPointers = pEx; stMDEI.ClientPointers = true; - // try to create an miniDump: + // try to create a miniDump: if (s_pMDWD( GetCurrentProcess(), GetCurrentProcessId(), diff --git a/src/Mod/Import/App/ImportOCAF.cpp b/src/Mod/Import/App/ImportOCAF.cpp index 6d118b5faa..0b84038729 100644 --- a/src/Mod/Import/App/ImportOCAF.cpp +++ b/src/Mod/Import/App/ImportOCAF.cpp @@ -494,7 +494,7 @@ ExportOCAF::ExportOCAF(Handle(TDocStd_Document) h, bool explicitPlacement) } -// This function create an Assembly node into an XCAF document with it's relative placement information +// This function creates an Assembly node in an XCAF document with its relative placement information void ExportOCAF::createNode(App::Part* part, int& root_id, std::vector & hierarchical_label, diff --git a/src/Mod/JtReader/App/JtReader.cpp b/src/Mod/JtReader/App/JtReader.cpp index f8d1b8ffc8..502b1e41c5 100644 --- a/src/Mod/JtReader/App/JtReader.cpp +++ b/src/Mod/JtReader/App/JtReader.cpp @@ -607,7 +607,7 @@ int myPreactionCB_CollectFacets(JtkHierarchy *CurrNode, int level, JtkClientData void testLicence(void) { - // Try to create an JtkCADExporter to test for JT write/general licensing + // Try to create a JtkCADExporter to test for JT write/general licensing JtkCADExporter *jtwriter = NULL; jtwriter = JtkEntityFactory::createCADExporter(); if( !jtwriter ) @@ -622,7 +622,7 @@ void testLicence(void) jtwriter = NULL; } - // Try to create an JtkCADImporter to test for JT read licensing + // Try to create a JtkCADImporter to test for JT read licensing JtkCADImporter *jtreader = NULL; jtreader = JtkEntityFactory::createCADImporter(); if( !jtreader ) diff --git a/src/Mod/Part/App/HyperbolaPy.xml b/src/Mod/Part/App/HyperbolaPy.xml index 827e897d06..41a9d49edd 100644 --- a/src/Mod/Part/App/HyperbolaPy.xml +++ b/src/Mod/Part/App/HyperbolaPy.xml @@ -14,7 +14,7 @@ Describes an hyperbola in 3D space - To create an hyperbola there are several ways: + To create a hyperbola there are several ways: Part.Hyperbola() Creates an hyperbola with major radius 2 and minor radius 1 with the center in (0,0,0) diff --git a/src/Mod/PartDesign/Gui/CommandPrimitive.cpp b/src/Mod/PartDesign/Gui/CommandPrimitive.cpp index dbda0ea599..74d2b5fd14 100644 --- a/src/Mod/PartDesign/Gui/CommandPrimitive.cpp +++ b/src/Mod/PartDesign/Gui/CommandPrimitive.cpp @@ -225,8 +225,8 @@ CmdPrimtiveCompSubtractive::CmdPrimtiveCompSubtractive() { sAppModule = "PartDesign"; sGroup = QT_TR_NOOP("PartDesign"); - sMenuText = QT_TR_NOOP("Create an subtractive primitive"); - sToolTipText = QT_TR_NOOP("Create an subtractive primitive"); + sMenuText = QT_TR_NOOP("Create a subtractive primitive"); + sToolTipText = QT_TR_NOOP("Create a subtractive primitive"); sWhatsThis = "PartDesign_CompPrimitiveSubtractive"; sStatusTip = sToolTipText; eType = ForEdit; @@ -338,35 +338,35 @@ void CmdPrimtiveCompSubtractive::languageChange() QAction* arc1 = a[0]; arc1->setText(QApplication::translate("CmdPrimtiveCompSubtractive","Subtractive Box")); - arc1->setToolTip(QApplication::translate("PartDesign_CompPrimitiveSubtractive","Create an subtractive box by its width, height and length")); + arc1->setToolTip(QApplication::translate("PartDesign_CompPrimitiveSubtractive","Create a subtractive box by its width, height and length")); arc1->setStatusTip(arc1->toolTip()); QAction* arc2 = a[1]; arc2->setText(QApplication::translate("CmdPrimtiveCompSubtractive","Subtractive Cylinder")); - arc2->setToolTip(QApplication::translate("PartDesign_CompPrimitiveSubtractive","Create an subtractive cylinder by its radius, height and angle")); + arc2->setToolTip(QApplication::translate("PartDesign_CompPrimitiveSubtractive","Create a subtractive cylinder by its radius, height and angle")); arc2->setStatusTip(arc2->toolTip()); QAction* arc3 = a[2]; arc3->setText(QApplication::translate("CmdPrimtiveCompSubtractive","Subtractive Sphere")); - arc3->setToolTip(QApplication::translate("PartDesign_CompPrimitiveSubtractive","Create an subtractive sphere by its radius and various angles")); + arc3->setToolTip(QApplication::translate("PartDesign_CompPrimitiveSubtractive","Create a subtractive sphere by its radius and various angles")); arc3->setStatusTip(arc3->toolTip()); QAction* arc4 = a[3]; arc4->setText(QApplication::translate("CmdPrimtiveCompSubtractive","Subtractive Cone")); - arc4->setToolTip(QApplication::translate("PartDesign_CompPrimitiveSubtractive","Create an subtractive cone")); + arc4->setToolTip(QApplication::translate("PartDesign_CompPrimitiveSubtractive","Create a subtractive cone")); arc4->setStatusTip(arc4->toolTip()); QAction* arc5 = a[4]; arc5->setText(QApplication::translate("CmdPrimtiveCompSubtractive","Subtractive Ellipsoid")); - arc5->setToolTip(QApplication::translate("PartDesign_CompPrimitiveSubtractive","Create an subtractive ellipsoid")); + arc5->setToolTip(QApplication::translate("PartDesign_CompPrimitiveSubtractive","Create a subtractive ellipsoid")); arc5->setStatusTip(arc5->toolTip()); QAction* arc6 = a[5]; arc6->setText(QApplication::translate("CmdPrimtiveCompSubtractive","Subtractive Torus")); - arc6->setToolTip(QApplication::translate("PartDesign_CompPrimitiveSubtractive","Create an subtractive torus")); + arc6->setToolTip(QApplication::translate("PartDesign_CompPrimitiveSubtractive","Create a subtractive torus")); arc6->setStatusTip(arc6->toolTip()); QAction* arc7 = a[6]; arc7->setText(QApplication::translate("CmdPrimtiveCompSubtractive","Subtractive Prism")); - arc7->setToolTip(QApplication::translate("PartDesign_CompPrimitiveSubtractive","Create an subtractive prism")); + arc7->setToolTip(QApplication::translate("PartDesign_CompPrimitiveSubtractive","Create a subtractive prism")); arc7->setStatusTip(arc7->toolTip()); QAction* arc8 = a[7]; arc8->setText(QApplication::translate("CmdPrimtiveCompSubtractive","Subtractive Wedge")); - arc8->setToolTip(QApplication::translate("PartDesign_CompPrimitiveSubtractive","Create an subtractive wedge")); + arc8->setToolTip(QApplication::translate("PartDesign_CompPrimitiveSubtractive","Create a subtractive wedge")); arc8->setStatusTip(arc8->toolTip()); } diff --git a/src/Mod/Path/PathTests/TestPathUtil.py b/src/Mod/Path/PathTests/TestPathUtil.py index 8729176f3a..a2b996d5ff 100644 --- a/src/Mod/Path/PathTests/TestPathUtil.py +++ b/src/Mod/Path/PathTests/TestPathUtil.py @@ -101,12 +101,12 @@ class TestPathUtil(PathTestBase): # an empty part is not a valid base object self.assertFalse(PathUtil.isValidBaseObject(part)) - # a none empty part where none of the objects has a shape is no good neither + # a non-empty part where none of the objects have a shape, is no good either fp = self.doc.addObject('App::FeaturePython', 'Feature') part.addObject(fp) self.assertFalse(PathUtil.isValidBaseObject(part)) - # create an valid base object + # create a valid base object box = self.doc.addObject("Part::Box","Box") self.assertTrue(PathUtil.isValidBaseObject(box)) diff --git a/src/Mod/Ship/shipCreateShip/TaskPanel.py b/src/Mod/Ship/shipCreateShip/TaskPanel.py index 3d496dac79..d07ebbd5d0 100644 --- a/src/Mod/Ship/shipCreateShip/TaskPanel.py +++ b/src/Mod/Ship/shipCreateShip/TaskPanel.py @@ -248,7 +248,7 @@ class TaskPanel: Keyword arguments: value -- Edited value. This parameter is required in order to use this - method as a callback function, but it is unuseful. + method as a callback function, but it is not useful. """ mw = self.getMainWindow() form = mw.findChild(QtGui.QWidget, "TaskPanel") diff --git a/src/Mod/Sketcher/Gui/CommandCreateGeo.cpp b/src/Mod/Sketcher/Gui/CommandCreateGeo.cpp index b02d2e8d4e..074c23bbf3 100644 --- a/src/Mod/Sketcher/Gui/CommandCreateGeo.cpp +++ b/src/Mod/Sketcher/Gui/CommandCreateGeo.cpp @@ -7469,7 +7469,7 @@ CmdSketcherCompCreateRegularPolygon::CmdSketcherCompCreateRegularPolygon() sAppModule = "Sketcher"; sGroup = QT_TR_NOOP("Sketcher"); sMenuText = QT_TR_NOOP("Create regular polygon"); - sToolTipText = QT_TR_NOOP("Create an regular polygon in the sketcher"); + sToolTipText = QT_TR_NOOP("Create a regular polygon in the sketcher"); sWhatsThis = "Sketcher_CompCreateRegularPolygon"; sStatusTip = sToolTipText; eType = ForEdit;