spelling fixes (#18688)

* Fixes spelling of "Allow to" to "Allow one to"

and those variants:
Allows to -> Allows one to
allow to -> allow one to
allows to -> allows one to

* Fix "Let's -> Lets"

(and lower case variant.)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update src/3rdParty/salomesmesh/inc/MED_Wrapper.hxx

Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>

* Update src/Base/PyObjectBase.cpp
Update src/App/ExtensionContainer.h
Update src/App/PropertyContainer.h

Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>

* Use gerund in user-facing texts.

* Use gerund for two more user-facing strings.

Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>

* Update src/Mod/Fem/App/FemMeshShapeNetgenObject.cpp

Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>

* Update src/Mod/Fem/App/FemMeshShapeNetgenObject.cpp

Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>

* Update src/Mod/Fem/App/FemMeshShapeNetgenObject.cpp

Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>

---------

Co-authored-by: Tobias Frost <tobi@debian.org>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
This commit is contained in:
Tobias Frost
2025-01-13 18:22:20 +01:00
committed by GitHub
parent f30139367a
commit 7a5a3d1ffc
104 changed files with 149 additions and 148 deletions

View File

@@ -95,7 +95,7 @@ private:
};
/** The ILoggerBlocker class
* This class allows to temporary block then automatically restore arbitrary message types
* This class allows one to temporary block then automatically restore arbitrary message types
* on a particular console observer.
*/
class BaseExport ILoggerBlocker

View File

@@ -96,7 +96,7 @@ PyObjectBase::~PyObjectBase()
* To prevent subclasses of PyTypeObject to be subclassed in Python we should remove
* the Py_TPFLAGS_BASETYPE flag. For example, the classes App::VectorPy and App::MatrixPy
* have removed this flag and its Python proxies App.Vector and App.Matrix cannot be subclassed.
* In case we want to allow to derive from subclasses of PyTypeObject in Python
* In case we want to allow a new class to derive from subclasses of PyTypeObject in Python
* we must either reimplement tp_new, tp_dealloc, tp_getattr, tp_setattr, tp_repr or set them to
* 0 and define tp_base as 0.
*/
@@ -367,7 +367,7 @@ int PyObjectBase::__setattro(PyObject *obj, PyObject *attro, PyObject *value)
const char *attr{};
attr = PyUnicode_AsUTF8(attro);
//Hint: In general we don't allow to delete attributes (i.e. value=0). However, if we want to allow
//Hint: In general we don't allow one to delete attributes (i.e. value=0). However, if we want to allow
//we must check then in _setattr() of all subclasses whether value is 0.
if (!value) {
PyErr_Format(PyExc_AttributeError, "Cannot delete attribute: '%s'", attr);

View File

@@ -85,7 +85,7 @@ class SequencerLauncher;
* seq2.next ();
* }
*
* seq1.next ( true ); // allow to cancel
* seq1.next ( true ); // allow one to cancel
* }
* }
* catch(const Base::AbortException&){

View File

@@ -733,7 +733,7 @@ int VectorPy::setCustomAttributes(const char* /*attr*/, PyObject* /*obj*/)
}
// TODO: for v0.18
// In generation script allow to more precisely define which slots
// In generation script allow one to more precisely define which slots
// of the number protocol should be supported instead of setting all.
PyObject* VectorPy::number_divide_handler(PyObject* self, PyObject* other)