Moved translate inside def

This commit is contained in:
Paul Ebbers 2025-01-10 19:26:12 +01:00
parent 718401b049
commit 5d5ef545d3

View File

@ -11,15 +11,14 @@ def QT_TRANSLATE_NOOP(context, text):
return text return text
# Define the translation
translate = App.Qt.translate
def addToolSearchBox(): def addToolSearchBox():
import FreeCADGui import FreeCADGui
from PySide import QtGui from PySide import QtGui
import SearchBoxLight import SearchBoxLight
# Define the translation
translate = App.Qt.translate
global wax, sea, tbr global wax, sea, tbr
mw = FreeCADGui.getMainWindow() mw = FreeCADGui.getMainWindow()
if mw: if mw: