From c78ed2829f32c65814701c014681bfc8a31fe0ee Mon Sep 17 00:00:00 2001 From: Chris Hennes Date: Thu, 18 May 2023 21:14:22 -0500 Subject: [PATCH] Path: Misc. minor string cleanup --- src/Mod/Path/Gui/Resources/panels/DlgJobTemplateExport.ui | 6 ++---- src/Mod/Path/Gui/Resources/panels/PageOpSurfaceEdit.ui | 4 ++-- src/Mod/Path/Gui/Resources/panels/PageOpVcarveEdit.ui | 4 ++-- src/Mod/Path/Gui/Resources/panels/PathEdit.ui | 2 +- src/Mod/Path/Gui/Resources/panels/SetupGlobal.ui | 2 +- src/Mod/Path/Path/Base/Util.py | 2 +- src/Mod/Path/Path/Main/Gui/Sanity.py | 2 +- 7 files changed, 10 insertions(+), 12 deletions(-) diff --git a/src/Mod/Path/Gui/Resources/panels/DlgJobTemplateExport.ui b/src/Mod/Path/Gui/Resources/panels/DlgJobTemplateExport.ui index 681b70b1d0..2e2dcd0af6 100644 --- a/src/Mod/Path/Gui/Resources/panels/DlgJobTemplateExport.ui +++ b/src/Mod/Path/Gui/Resources/panels/DlgJobTemplateExport.ui @@ -130,11 +130,9 @@ Any values of the SetupSheet that are changed from their default are preselected - Enable all Operations for which the configuration values should be exported. + Enable all operations for which the configuration values should be exported. -<br/> - -Note that only operations are listed which currently have configuration values setup. +Note that only operations which currently have configuration values set are listed. diff --git a/src/Mod/Path/Gui/Resources/panels/PageOpSurfaceEdit.ui b/src/Mod/Path/Gui/Resources/panels/PageOpSurfaceEdit.ui index aeb6ecb808..717876f9e7 100644 --- a/src/Mod/Path/Gui/Resources/panels/PageOpSurfaceEdit.ui +++ b/src/Mod/Path/Gui/Resources/panels/PageOpSurfaceEdit.ui @@ -159,7 +159,7 @@ - Additional offset to the selected bounding box along the X axis." + Additional offset to the selected bounding box along the X axis. mm @@ -169,7 +169,7 @@ - Additional offset to the selected bounding box along the Y axis." + Additional offset to the selected bounding box along the Y axis. mm diff --git a/src/Mod/Path/Gui/Resources/panels/PageOpVcarveEdit.ui b/src/Mod/Path/Gui/Resources/panels/PageOpVcarveEdit.ui index a13fdaff62..4dfbcb58f3 100644 --- a/src/Mod/Path/Gui/Resources/panels/PageOpVcarveEdit.ui +++ b/src/Mod/Path/Gui/Resources/panels/PageOpVcarveEdit.ui @@ -60,7 +60,7 @@ - <br/></p></body></html> + Discretization Deflection @@ -102,7 +102,7 @@ - Sets how aggressively colinear segments are filtered from the voronoi diagram. Valid values are 0 - 90 degrees (larger numbers filter more). Default = 10 + Sets how aggressively colinear segments are filtered from the Voronoi diagram. Valid values are 0 - 90 degrees (larger numbers filter more). Default = 10 90 diff --git a/src/Mod/Path/Gui/Resources/panels/PathEdit.ui b/src/Mod/Path/Gui/Resources/panels/PathEdit.ui index 3fba2e518a..25b51edaeb 100644 --- a/src/Mod/Path/Gui/Resources/panels/PathEdit.ui +++ b/src/Mod/Path/Gui/Resources/panels/PathEdit.ui @@ -1122,7 +1122,7 @@ Default: "OpStockZMax+SetupSheet.ClearanceHeightOffset" ClearanceHeightOffset - can be used by expressions to set the default ClearanceHeight for new operations. -Default: "3 mm" +Default: 3 mm diff --git a/src/Mod/Path/Gui/Resources/panels/SetupGlobal.ui b/src/Mod/Path/Gui/Resources/panels/SetupGlobal.ui index c9a9046a85..e9798ce0c3 100644 --- a/src/Mod/Path/Gui/Resources/panels/SetupGlobal.ui +++ b/src/Mod/Path/Gui/Resources/panels/SetupGlobal.ui @@ -128,7 +128,7 @@ Default: "OpStockZMax+SetupSheet.ClearanceHeightOffset" ClearanceHeightOffset - can be used by expressions to set the default ClearanceHeight for new operations. -Default: "3 mm" +Default: 3 mm diff --git a/src/Mod/Path/Path/Base/Util.py b/src/Mod/Path/Path/Base/Util.py index 2e460642df..2b042d98cc 100644 --- a/src/Mod/Path/Path/Base/Util.py +++ b/src/Mod/Path/Path/Base/Util.py @@ -54,7 +54,7 @@ def _getProperty(obj, prop): if o == attr: Path.Log.warning( - translate("PathGui", "%s has no property %s (%s))") + translate("PathGui", "%s has no property %s (%s)") % (obj.Label, prop, name) ) return (None, None, None) diff --git a/src/Mod/Path/Path/Main/Gui/Sanity.py b/src/Mod/Path/Path/Main/Gui/Sanity.py index 6ad2a53f74..5603d45b34 100644 --- a/src/Mod/Path/Path/Main/Gui/Sanity.py +++ b/src/Mod/Path/Path/Main/Gui/Sanity.py @@ -425,7 +425,7 @@ class CommandPathSanity: machineLabel = translate("Path_Sanity", "Machine") postLabel = translate("Path_Sanity", "Postprocessor") flagsLabel = translate("Path_Sanity", "Post Processor Flags") - fileSizeLabel = translate("Path_Sanity", "File Size (kbs)") + fileSizeLabel = translate("Path_Sanity", "File Size (kb)") lineCountLabel = translate("Path_Sanity", "Line Count") outTable += "|*{}*|{}\n".format(gcodeFileLabel, d["lastgcodefile"])