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
|
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:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user