From e343668d80c11826ecbff605717fdb6eb5a1bf1f Mon Sep 17 00:00:00 2001 From: Roy-043 Date: Wed, 22 May 2024 15:58:58 +0200 Subject: [PATCH] BIM: Fix BIM tutorial issues UI file is now in a resources file. Translate function was not defined. Forum topic: https://forum.freecad.org/viewtopic.php?t=87830 --- src/Mod/BIM/bimcommands/BimTutorial.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Mod/BIM/bimcommands/BimTutorial.py b/src/Mod/BIM/bimcommands/BimTutorial.py index 01f8135ca6..c52c88e891 100644 --- a/src/Mod/BIM/bimcommands/BimTutorial.py +++ b/src/Mod/BIM/bimcommands/BimTutorial.py @@ -28,6 +28,7 @@ import FreeCAD import FreeCADGui QT_TRANSLATE_NOOP = FreeCAD.Qt.QT_TRANSLATE_NOOP +translate = FreeCAD.Qt.translate PARAMS = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/BIM") @@ -58,9 +59,7 @@ class BIM_Tutorial: if not self.dock: # set the tutorial dialog up - self.form = FreeCADGui.PySideUic.loadUi( - os.path.join(os.path.dirname(__file__), "dialogTutorial.ui") - ) + self.form = FreeCADGui.PySideUic.loadUi(":/ui/dialogTutorial.ui") self.form.setObjectName("BIMTutorial") self.form.progressBar.setValue(0) self.form.labelGoal1.setText("")