Moved translate inside def
This commit is contained in:
parent
718401b049
commit
5d5ef545d3
|
@ -11,15 +11,14 @@ def QT_TRANSLATE_NOOP(context, text):
|
|||
return text
|
||||
|
||||
|
||||
# Define the translation
|
||||
translate = App.Qt.translate
|
||||
|
||||
|
||||
def addToolSearchBox():
|
||||
import FreeCADGui
|
||||
from PySide import QtGui
|
||||
import SearchBoxLight
|
||||
|
||||
# Define the translation
|
||||
translate = App.Qt.translate
|
||||
|
||||
global wax, sea, tbr
|
||||
mw = FreeCADGui.getMainWindow()
|
||||
if mw:
|
||||
|
|
Loading…
Reference in New Issue
Block a user