Misc. typos

- Tooltip uniformity 
- source comment typo fixes
- remove double whitespaces
This commit is contained in:
luzpaz
2017-11-22 10:12:46 -05:00
committed by Yorik van Havre
parent 794a39684a
commit a225b13bef
22 changed files with 44 additions and 44 deletions

View File

@@ -101,7 +101,7 @@ class _CommandAxis:
return {'Pixmap' : 'Arch_Axis',
'MenuText': QT_TRANSLATE_NOOP("Arch_Axis","Axis"),
'Accel': "A, X",
'ToolTip': QT_TRANSLATE_NOOP("Arch_Axis","Creates a set of axes.")}
'ToolTip': QT_TRANSLATE_NOOP("Arch_Axis","Creates a set of axes")}
def Activated(self):
FreeCAD.ActiveDocument.openTransaction(translate("Arch","Create Axis"))
@@ -120,7 +120,7 @@ class _CommandAxisSystem:
return {'Pixmap' : 'Arch_Axis_System',
'MenuText': QT_TRANSLATE_NOOP("Arch_AxisSystem","Axis System"),
'Accel': "X, S",
'ToolTip': QT_TRANSLATE_NOOP("Arch_AxisSystem","Creates an axis system from a set of axes.")}
'ToolTip': QT_TRANSLATE_NOOP("Arch_AxisSystem","Creates an axis system from a set of axes")}
def Activated(self):
if FreeCADGui.Selection.getSelection():

View File

@@ -48,7 +48,7 @@ PyDoc_STRVAR(module_Assembly_doc,
extern "C" {
void AssemblyExport initAssembly()
{
// load dependend module
// load dependent module
try {
Base::Interpreter().runString("import Part");
//Base::Interpreter().runString("import PartDesign");

View File

@@ -44,7 +44,7 @@ PROPERTY_SOURCE(AssemblyGui::ViewProviderConstraintInternal, PartGui::ViewProvid
ViewProviderConstraintInternal::ViewProviderConstraintInternal()
{
//constraint entiti color
//constraint entity color
ParameterGrp::handle hGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/View");
unsigned long scol = hGrp->GetUnsigned("ConstructionColor", 56319UL);
float r, g, b;
@@ -294,7 +294,7 @@ void ViewProviderConstraint::draw()
if(!obj2)
return;
//here it's a bit more involved, as the coind tree structure let's the first transform node
//here it's a bit more involved, as the coind tree structure let's the first transform node
//transform the second part too.
Assembly::PartRef* part2 = static_cast<Assembly::PartRef*>(obj2);

View File

@@ -39,7 +39,7 @@ extern "C"
{
void CamExport initCam()
{
// load dependend module
// load dependent module
try {
Base::Interpreter().loadModule("Part");
Base::Interpreter().loadModule("Mesh");

View File

@@ -120,13 +120,13 @@ public:
Standard_EXPORT BRepAdaptor_CompCurve2(const TopoDS_Wire& W,const Standard_Boolean KnotByCurvilinearAbcissa = Standard_False);
//! Creates a Curve to access to the geometry of edge \p W.
//! Creates a Curve to access to the geometry of edge \p W.
Standard_EXPORT BRepAdaptor_CompCurve2(const TopoDS_Wire& W,const Standard_Boolean KnotByCurvilinearAbcissa,const Standard_Real First,const Standard_Real Last,const Standard_Real Tol);
//! Sets the wire \p W.
//! Sets the wire \p W.
Standard_EXPORT void Initialize(const TopoDS_Wire& W,const Standard_Boolean KnotByCurvilinearAbcissa) ;
//! Sets wire \p W and trimmed parameter.
//! Sets wire \p W and trimmed parameter.
Standard_EXPORT void Initialize(const TopoDS_Wire& W,const Standard_Boolean KnotByCurvilinearAbcissa,const Standard_Real First,const Standard_Real Last,const Standard_Real Tol) ;
//! Set the flag Periodic. <br>
@@ -155,7 +155,7 @@ public:
//! Stores in \<T\> the parameters bounding the intervals of continuity \<S\>. <br>
//! The array must provide enough room to accommodate for the parameters.
//! The array must provide enough room to accommodate for the parameters.
//! i.e. T.Length() > NbIntervals()
Standard_EXPORT void Intervals(TColStd_Array1OfReal& T,const GeomAbs_Shape S) ;

View File

@@ -2198,7 +2198,7 @@ bool cutting_tools::OffsetWires_Spiral()
}
}
//now we know where to start at our PointCloud, its the index t
//now we know where to start at our PointCloud, it's the index t
//Calculate the Slave Toolpath for the current flat area
if (!slave_done)//if we did not calculate the slave toolpath for the current flat area
@@ -2256,7 +2256,7 @@ bool cutting_tools::OffsetWires_Spiral()
//direction_vector.SetZ(0.0);
direction_vector.Normalize();
direction_vector.Multiply(1.0); //Zum testen bauen wir keinen Offset ein
//switch the Spiral-direction if the clockwise flag is checked and the
//switch the Spiral-direction if the clockwise flag is checked and the
//angle between the last and current round is more then 90°
double angle = direction_vector.Angle(last_direction_vector);
if (m_UserSettings.clockwise && angle<(D_PI*0.5))
@@ -2374,7 +2374,7 @@ bool cutting_tools::OffsetWires_Spiral()
continue;
}
//We switch to the end and skip the last point
//as its the same as the point at j=0;
//as it's the same as the point at j=0;
j=j-2;//As the for puts +1 for each step
}
}
@@ -2514,7 +2514,7 @@ bool cutting_tools::OffsetWires_Spiral()
}
}
//now we know where to start at our PointCloud, its the index t
//now we know where to start at our PointCloud, it's the index t
//Calculate the Slave Toolpath for the current flat area
if (!slave_done)//if we did not calculate the slave toolpath for the current flat area
@@ -2559,7 +2559,7 @@ bool cutting_tools::OffsetWires_Spiral()
//direction_vector.SetZ(0.0);
direction_vector.Normalize();
direction_vector.Multiply(10.0);
//switch the Spiral-direction if the clockwise flag is checked and the
//switch the Spiral-direction if the clockwise flag is checked and the
//angle between the last and current round is more then 90°
double angle = direction_vector.Angle(last_direction_vector);
@@ -2677,7 +2677,7 @@ bool cutting_tools::OffsetWires_Spiral()
continue;
}
//We switch to the end and skip the last point
//as its the same as the point at j=0;
//as it's the same as the point at j=0;
j=j-2;//As the for puts +1 for each step
}
}

View File

@@ -55,7 +55,7 @@ extern "C"
return;
}
// load dependend module
// load dependent module
try {
Base::Interpreter().loadModule("Cam");
}

View File

@@ -39,7 +39,7 @@ void AppJtReaderExport initJtReader() {
(void) Py_InitModule("JtReader", JtReader_methods); /* mod name, table ptr */
// load dependend module
// load dependent module
Base::Interpreter().loadModule("Mesh");
// Initialize JtTk

View File

@@ -1210,7 +1210,7 @@ CmdPartMakeFace::CmdPartMakeFace()
sAppModule = "Part";
sGroup = QT_TR_NOOP("Part");
sMenuText = QT_TR_NOOP("Make face from wires");
sToolTipText = QT_TR_NOOP("Part_MakeFace: Make face from set of wires (e.g., from a sketch).");
sToolTipText = QT_TR_NOOP("Part_MakeFace: Make face from set of wires (e.g. from a sketch)");
sWhatsThis = "Part_MakeFace";
sStatusTip = sToolTipText;
}

View File

@@ -117,7 +117,7 @@ class ObjectDressup:
obj.addProperty('App::PropertyLength', 'Height', 'Tag', QtCore.QT_TRANSLATE_NOOP('PathDressup_Tag', 'Height of tags.'))
obj.addProperty('App::PropertyAngle', 'Angle', 'Tag', QtCore.QT_TRANSLATE_NOOP('PathDressup_Tag', 'Angle of tag plunge and ascent.'))
obj.addProperty('App::PropertyLength', 'Radius', 'Tag', QtCore.QT_TRANSLATE_NOOP('PathDressup_Tag', 'Radius of the fillet for the tag.'))
obj.addProperty('App::PropertyVectorList', 'Positions', 'Tag', QtCore.QT_TRANSLATE_NOOP('PathDressup_Tag', 'Locations of interted holding tags'))
obj.addProperty('App::PropertyVectorList', 'Positions', 'Tag', QtCore.QT_TRANSLATE_NOOP('PathDressup_Tag', 'Locations of inserted holding tags'))
obj.addProperty('App::PropertyIntegerList', 'Disabled', 'Tag', QtCore.QT_TRANSLATE_NOOP('PathDressup_Tag', 'IDs of disabled holding tags'))
obj.addProperty('App::PropertyInteger', 'SegmentationFactor', 'Tag', QtCore.QT_TRANSLATE_NOOP('PathDressup_Tag', 'Factor determining the # of segments used to approximate rounded tags.'))

View File

@@ -1,5 +1,5 @@
# Example how to use the basic robot class Robot6Axis which represent a 6-Axis
# industrial robot. The Robot Module is dependend on Part but nor on other Modules.
# industrial robot. The Robot Module is dependent on Part but not on other Modules.
# It works mostly with the basic types Placement, Vector and Matrix. So we need
# only:
from Robot import *
@@ -56,7 +56,7 @@ del rob,Start,t,l,w
# === working with the document ===
#
# Working with the robot document objects:
# first creat a robot in the active document
# first create a robot in the active document
if(App.activeDocument() == None):App.newDocument()
App.activeDocument().addObject("Robot::RobotObject","Robot")
@@ -96,7 +96,7 @@ print(App.activeDocument().Trajectory.Trajectory)
# === Exporting the trajectory ===
# the Trajectory is exported by python. That means for every Control Cabinet type is a Post processor
# python module. Here is in detail the Kuka Postprocessor descriped
# python module. Here is in detail the Kuka Postprocessor described
from KukaExporter import ExportCompactSub
ExportCompactSub(App.activeDocument().Robot,App.activeDocument().Trajectory,tempfile.gettempdir()+'/TestOut.src')

View File

@@ -122,7 +122,7 @@ class Preview(object):
if bbox.YMin < -0.01 * B * Units.Metre.Value:
del edges[k]
sections.extend(edges)
# Trabform and join all the BSplines into a shape
# Transform and join all the B-splines into a shape
if not sections:
msg = QtGui.QApplication.translate(
"ship_console",