From be9d674785b98fd76798a14e2bfe788a4224412f Mon Sep 17 00:00:00 2001 From: Chris Hennes Date: Tue, 27 Dec 2022 21:44:11 -0600 Subject: [PATCH] GUI: Minor translation issues --- src/Gui/MouseButtons.ui | 2 +- src/Gui/TreeParams.cpp | 8 ++++---- src/Gui/TreeParams.h | 6 +++--- src/Gui/TreeParams.py | 6 +++--- src/Mod/OpenSCAD/OpenSCADCommands.py | 6 +++--- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/Gui/MouseButtons.ui b/src/Gui/MouseButtons.ui index 15d8f7a4ba..13c0af9949 100644 --- a/src/Gui/MouseButtons.ui +++ b/src/Gui/MouseButtons.ui @@ -45,7 +45,7 @@ - Panning + Panning: Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop diff --git a/src/Gui/TreeParams.cpp b/src/Gui/TreeParams.cpp index 467cb76946..54e404e503 100644 --- a/src/Gui/TreeParams.cpp +++ b/src/Gui/TreeParams.cpp @@ -1137,7 +1137,7 @@ void TreeParams::removeItemSpacing() { // Auto generated code (Tools/params_utils.py:288) const char *TreeParams::docItemBackground() { return QT_TRANSLATE_NOOP("TreeParams", -"Tree view item background. Only effecitve in overlay."); +"Tree view item background. Only effective in overlay."); } // Auto generated code (Tools/params_utils.py:294) @@ -1221,7 +1221,7 @@ void TreeParams::removeHideColumn() { // Auto generated code (Tools/params_utils.py:288) const char *TreeParams::docHideScrollBar() { return QT_TRANSLATE_NOOP("TreeParams", -"Hide tree view scroll bar in dock overlay"); +"Hide tree view scroll bar in dock overlay."); } // Auto generated code (Tools/params_utils.py:294) @@ -1249,7 +1249,7 @@ void TreeParams::removeHideScrollBar() { // Auto generated code (Tools/params_utils.py:288) const char *TreeParams::docHideHeaderView() { return QT_TRANSLATE_NOOP("TreeParams", -"Hide tree view header view in dock overlay"); +"Hide tree view header view in dock overlay."); } // Auto generated code (Tools/params_utils.py:294) @@ -1277,7 +1277,7 @@ void TreeParams::removeHideHeaderView() { // Auto generated code (Tools/params_utils.py:288) const char *TreeParams::docResizableColumn() { return QT_TRANSLATE_NOOP("TreeParams", -"Allow tree view columns to be manually resized"); +"Allow tree view columns to be manually resized."); } // Auto generated code (Tools/params_utils.py:294) diff --git a/src/Gui/TreeParams.h b/src/Gui/TreeParams.h index 413a25a45a..e624cd7675 100644 --- a/src/Gui/TreeParams.h +++ b/src/Gui/TreeParams.h @@ -395,7 +395,7 @@ public: //@{ /// Accessor for parameter HideScrollBar /// - /// Hide tree view scroll bar in dock overlay + /// Hide tree view scroll bar in dock overlay. static const bool & getHideScrollBar(); static const bool & defaultHideScrollBar(); static void removeHideScrollBar(); @@ -407,7 +407,7 @@ public: //@{ /// Accessor for parameter HideHeaderView /// - /// Hide tree view header view in dock overlay + /// Hide tree view header view in dock overlay. static const bool & getHideHeaderView(); static const bool & defaultHideHeaderView(); static void removeHideHeaderView(); @@ -419,7 +419,7 @@ public: //@{ /// Accessor for parameter ResizableColumn /// - /// Allow tree view columns to be manually resized + /// Allow tree view columns to be manually resized. static const bool & getResizableColumn(); static const bool & defaultResizableColumn(); static void removeResizableColumn(); diff --git a/src/Gui/TreeParams.py b/src/Gui/TreeParams.py index a20751c899..e7163f573f 100644 --- a/src/Gui/TreeParams.py +++ b/src/Gui/TreeParams.py @@ -72,11 +72,11 @@ Params = [ ParamBool('HideColumn', False, on_change=True, title="Hide extra column", doc = "Hide extra tree view column for item description."), ParamBool('HideScrollBar', True, title="Hide scroll bar", - doc = "Hide tree view scroll bar in dock overlay"), + doc = "Hide tree view scroll bar in dock overlay."), ParamBool('HideHeaderView', True, title="Hide header", - doc = "Hide tree view header view in dock overlay"), + doc = "Hide tree view header view in dock overlay."), ParamBool('ResizableColumn', False, on_change=True, title="Resizable columns", - doc = "Allow tree view columns to be manually resized"), + doc = "Allow tree view columns to be manually resized."), ParamInt('ColumnSize1', 0), ParamInt('ColumnSize2', 0), ParamBool('TreeToolTipIcon', False, title='Show icon in tool tip'), diff --git a/src/Mod/OpenSCAD/OpenSCADCommands.py b/src/Mod/OpenSCAD/OpenSCADCommands.py index b9d93b7026..bbd68615b5 100644 --- a/src/Mod/OpenSCAD/OpenSCADCommands.py +++ b/src/Mod/OpenSCAD/OpenSCADCommands.py @@ -271,7 +271,7 @@ class IncreaseToleranceFeature: def GetResources(self): return {'Pixmap' : 'OpenSCAD_IncreaseToleranceFeature', 'MenuText': QtCore.QT_TRANSLATE_NOOP('OpenSCAD_IncreaseToleranceFeature', 'Increase Tolerance Feature'), - 'ToolTip' : QtCore.QT_TRANSLATE_NOOP('OpenSCAD_IncreaseToleranceFeature', 'Create Feature that allows to increase the tolerance')} + 'ToolTip' : QtCore.QT_TRANSLATE_NOOP('OpenSCAD_IncreaseToleranceFeature', 'Create Feature that allows increasing the tolerance')} class ExpandPlacements: '''This should aid interactive repair in the future @@ -288,7 +288,7 @@ class ExpandPlacements: def GetResources(self): return {'Pixmap' : 'OpenSCAD_ExpandPlacements', 'MenuText': QtCore.QT_TRANSLATE_NOOP('OpenSCAD_ExpandPlacements', 'Expand Placements'), - 'ToolTip' : QtCore.QT_TRANSLATE_NOOP('OpenSCAD_ExpandPlacements', 'Expand all placements downwards the FeatureTree')} + 'ToolTip' : QtCore.QT_TRANSLATE_NOOP('OpenSCAD_ExpandPlacements', 'Expand all placements downwards in the Tree view')} class ReplaceObject: def IsActive(self): @@ -309,7 +309,7 @@ class ReplaceObject: def GetResources(self): return {'Pixmap' : 'OpenSCAD_ReplaceObject', 'MenuText': QtCore.QT_TRANSLATE_NOOP('OpenSCAD_ReplaceObject', 'Replace Object'), - 'ToolTip' : QtCore.QT_TRANSLATE_NOOP('OpenSCAD_ReplaceObject', 'Replace an object in the Feature Tree. Please select old, new, and parent object')} + 'ToolTip' : QtCore.QT_TRANSLATE_NOOP('OpenSCAD_ReplaceObject', 'Replace an object in the Tree view. Please select old, new, and parent object')} class RemoveSubtree: def IsActive(self):