translation cleanup PathSanity
This commit is contained in:
@@ -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"
|
||||
),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user