Remove unnecessary third argument from translate() calls

This commit is contained in:
sliptonic
2022-01-31 14:27:11 -06:00
parent 8003ea80e5
commit d970540db7
6 changed files with 13 additions and 22 deletions

View File

@@ -30,13 +30,14 @@ __doc__ = "Class and implementation of 3D Surface operation."
__contributors__ = "russ4262 (Russell Johnson)"
import FreeCAD
from PySide import QtCore
translate = FreeCAD.Qt.translate
# OCL must be installed
try:
import ocl
except ImportError:
msg = QtCore.QCoreApplication.translate(
msg = translate(
"PathSurface", "This operation requires OpenCamLib to be installed."
)
FreeCAD.Console.PrintError(msg + "\n")
@@ -62,8 +63,6 @@ if FreeCAD.GuiUp:
import FreeCADGui
translate = FreeCAD.Qt.translate
if False:
PathLog.setLevel(PathLog.Level.DEBUG, PathLog.thisModule())
PathLog.trackModule(PathLog.thisModule())
@@ -112,12 +111,6 @@ class ObjectSurface(PathOp.ObjectOp):
for n in self.propertyEnumerations():
setattr(obj, n[0], n[1])
# if warn:
# newPropMsg = translate("PathSurface", "New property added to")
# newPropMsg += ' "{}": {}'.format(obj.Label, self.addNewProps) + ". "
# newPropMsg += translate("PathSurface", "Check default value(s).")
# FreeCAD.Console.PrintWarning(newPropMsg + "\n")
self.propertiesReady = True
def opPropertyDefinitions(self):