Translation cleanup. Setupsheet related files. Simple copy, simulator

This commit is contained in:
sliptonic
2022-01-04 14:45:36 -06:00
parent 3217352194
commit c7a20f2876
5 changed files with 44 additions and 58 deletions

View File

@@ -31,6 +31,7 @@ import PathScripts.PathJob as PathJob
import PathSimulator
import math
import os
from PySide.QtCore import QT_TRANSLATE_NOOP
from FreeCAD import Vector, Base
@@ -310,7 +311,9 @@ class PathSimulation:
self.stock = newStock.removeSplitter()
except Exception:
if self.debug:
print("invalid cut at cmd #{}".format(self.icmd))
FreeCAD.Console.PrintError(
"invalid cut at cmd #{}".format(self.icmd)
)
if not self.disableAnim:
self.cutTool.Placement = FreeCAD.Placement(self.curpos, self.stdrot)
self.icmd += 1
@@ -619,9 +622,9 @@ class CommandPathSimulate:
def GetResources(self):
return {
"Pixmap": "Path_Simulator",
"MenuText": QtCore.QT_TRANSLATE_NOOP("Path_Simulator", "CAM Simulator"),
"MenuText": QT_TRANSLATE_NOOP("Path_Simulator", "CAM Simulator"),
"Accel": "P, M",
"ToolTip": QtCore.QT_TRANSLATE_NOOP(
"ToolTip": QT_TRANSLATE_NOOP(
"Path_Simulator", "Simulate Path G-Code on stock"
),
}