diff --git a/src/Mod/Path/PathScripts/PathSanity.py b/src/Mod/Path/PathScripts/PathSanity.py index cfc46f4149..b7478ea422 100644 --- a/src/Mod/Path/PathScripts/PathSanity.py +++ b/src/Mod/Path/PathScripts/PathSanity.py @@ -41,12 +41,9 @@ from datetime import datetime import os import webbrowser import subprocess +from PySide.QtCore import QT_TRANSLATE_NOOP -# Qt translation handling - - -def translate(context, text, disambig=None): - return QtCore.QCoreApplication.translate(context, text, disambig) +translate = FreeCAD.Qt.translate LOG_MODULE = "PathSanity" @@ -103,11 +100,11 @@ class CommandPathSanity: def GetResources(self): return { "Pixmap": "Path_Sanity", - "MenuText": QtCore.QT_TRANSLATE_NOOP( + "MenuText": QT_TRANSLATE_NOOP( "Path_Sanity", "Check the path job for common errors" ), "Accel": "P, S", - "ToolTip": QtCore.QT_TRANSLATE_NOOP( + "ToolTip": QT_TRANSLATE_NOOP( "Path_Sanity", "Check the path job for common errors" ), }