translation cleanup PathSanity

This commit is contained in:
sliptonic
2021-12-22 12:05:34 -06:00
parent 2e8eaa3ffc
commit 0f70ef6142

View File

@@ -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"
),
}