From cd1c6977657001b513ab1bf419f79aee6367e172 Mon Sep 17 00:00:00 2001 From: Chris Hennes Date: Mon, 4 Mar 2024 21:59:03 -0600 Subject: [PATCH] TD: Clean up translations of HoleShaftFit --- .../TechDrawTools/CommandHoleShaftFit.py | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/Mod/TechDraw/TechDrawTools/CommandHoleShaftFit.py b/src/Mod/TechDraw/TechDrawTools/CommandHoleShaftFit.py index 9705778e7d..0362de79cb 100644 --- a/src/Mod/TechDraw/TechDrawTools/CommandHoleShaftFit.py +++ b/src/Mod/TechDraw/TechDrawTools/CommandHoleShaftFit.py @@ -35,6 +35,9 @@ import FreeCADGui as Gui import TechDrawTools +translate = App.Qt.translate + + class CommandHoleShaftFit: """Adds a hole or shaft fit to a selected dimension.""" @@ -48,11 +51,11 @@ class CommandHoleShaftFit: ), "ToolTip": QT_TRANSLATE_NOOP( "TechDraw_HoleShaftFit", - "Add a hole or shaft fit to a dimension
\ - - select one length dimension or diameter dimension
\ - - click the tool button, a panel opens
\ - - select shaft fit / hole fit
\ - - select the desired ISO 286 fit field using the combo box", + "Add a hole or shaft fit to a dimension\n" + "- select one length dimension or diameter dimension\n" + "- click the tool button, a panel opens\n" + "- select shaft fit / hole fit\n" + "- select the desired ISO 286 fit field using the combo box", ), } @@ -65,10 +68,10 @@ class CommandHoleShaftFit: Gui.Control.showDialog(self.ui) else: msgBox = QtGui.QMessageBox() - msgTitle = QT_TRANSLATE_NOOP( + msgTitle = translate( "TechDraw_HoleShaftFit", "Add a hole or shaft fit to a dimension" ) - msg = QT_TRANSLATE_NOOP( + msg = translate( "TechDraw_HoleShaftFit", "Please select one length dimension or diameter dimension and retry", )