From c0014cbd3e080bc3e6239441de2d443b9766d7e2 Mon Sep 17 00:00:00 2001 From: "luz.paz" Date: Wed, 13 Jun 2018 20:35:43 -0400 Subject: [PATCH] Misc. comment typos + Found via `codespell -q 3 --skip="*.po,*.ts,./.git,./src/3rdParty,./src/CXX,./src/zipios++,./src/Mod/Assembly/App/opendcm" -I ~/Projects/fc-word-whitelist.txt` + crowdin translation refinements: - https://crowdin.com/translate/freecad/6766/en-en#6499546 - https://crowdin.com/translate/freecad/6766/en-en#6504496 --- src/Base/Exception.h | 11 ++++++----- src/Mod/Arch/ArchSectionPlane.py | 2 +- src/Mod/Arch/importOBJ.py | 4 ++-- src/Mod/Material/MaterialEditor.py | 2 +- 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/Base/Exception.h b/src/Base/Exception.h index 7ff9384b2b..d104d5e7c4 100644 --- a/src/Base/Exception.h +++ b/src/Base/Exception.h @@ -119,10 +119,10 @@ public: protected: public: // FIXME: Remove the public keyword /* sMessage may be: - * - an UI compliant string subsceptible of being translated and shown to the user in the UI - * - a very technical message not intended to be traslated or shown to the user in the UI - * The preferred way of throwing an exception is using the macros above. This way, the file, - * line and function are automatically inserted. */ + * - a UI compliant string susceptible to being translated and shown to the user in the UI + * - a very technical message not intended to be translated or shown to the user in the UI + * The preferred way of throwing an exception is using the macros above. + * This way, the file, line, and function are automatically inserted. */ Exception(const char * sMessage); Exception(const std::string& sMessage); Exception(void); @@ -229,7 +229,8 @@ public: virtual void setPyObject( PyObject * pydict); protected: FileInfo file; - // necessary for what() legacy behaviour as it returns a buffer that can not be of a temporary object to be destroyed at end of what() + // necessary for what() legacy behaviour as it returns a buffer that + // can not be of a temporary object to be destroyed at end of what() std::string _sErrMsgAndFileName; }; diff --git a/src/Mod/Arch/ArchSectionPlane.py b/src/Mod/Arch/ArchSectionPlane.py index 7a45b513ba..38364f2a76 100644 --- a/src/Mod/Arch/ArchSectionPlane.py +++ b/src/Mod/Arch/ArchSectionPlane.py @@ -407,7 +407,7 @@ class _SectionPlane: if not "Shape" in pl: obj.addProperty("Part::PropertyPartShape","Shape","SectionPlane",QT_TRANSLATE_NOOP("App::Property","The shape of this object")) if not "Objects" in pl: - obj.addProperty("App::PropertyLinkList","Objects","SectionPlane",QT_TRANSLATE_NOOP("App::Property","The objects that must be considered by this section plane. Empty means all document")) + obj.addProperty("App::PropertyLinkList","Objects","SectionPlane",QT_TRANSLATE_NOOP("App::Property","The objects that must be considered by this section plane. Empty means the whole document.")) if not "OnlySolids" in pl: obj.addProperty("App::PropertyBool","OnlySolids","SectionPlane",QT_TRANSLATE_NOOP("App::Property","If false, non-solids will be cut too, with possible wrong results.")) obj.OnlySolids = True diff --git a/src/Mod/Arch/importOBJ.py b/src/Mod/Arch/importOBJ.py index cd1f051a8a..1336960e61 100644 --- a/src/Mod/Arch/importOBJ.py +++ b/src/Mod/Arch/importOBJ.py @@ -185,8 +185,8 @@ def export(exportList,filename): for f in flist: outfile.write("f" + f + "\n") outfile.close() - FreeCAD.Console.PrintMessage(translate("Arch","Successfully written ").decode('utf8') + filename + "\n") - if materials: + FreeCAD.Console.PrintMessage(translate("Arch","Successfully written").decode('utf8') + " " + filename + "\n") + if materials: outfile = pythonopen(filenamemtl,"wb") outfile.write("# FreeCAD v" + ver[0] + "." + ver[1] + " build" + ver[2] + " Arch module\n") outfile.write("# http://www.freecadweb.org\n") diff --git a/src/Mod/Material/MaterialEditor.py b/src/Mod/Material/MaterialEditor.py index ee1905e551..db03b756f2 100644 --- a/src/Mod/Material/MaterialEditor.py +++ b/src/Mod/Material/MaterialEditor.py @@ -70,7 +70,7 @@ class MaterialEditor: QtCore.QObject.connect(self.widget.ButtonOpen, QtCore.SIGNAL("clicked()"), self.openfile) QtCore.QObject.connect(self.widget.ButtonSave, QtCore.SIGNAL("clicked()"), self.savefile) - # add material properies (the keys) to the editor + # add material properties (the keys) to the editor for group in getMaterialAttributeStructure(True): # get the mat file structure from material module, use Spaces for better ui # print(group) self.addPropertiesToGroup(group)