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",
)