diff --git a/src/Mod/Path/PathScripts/PathOp.py b/src/Mod/Path/PathScripts/PathOp.py index 56861c9d51..a4d3a7807f 100644 --- a/src/Mod/Path/PathScripts/PathOp.py +++ b/src/Mod/Path/PathScripts/PathOp.py @@ -487,12 +487,12 @@ class ObjectOp(object): if FeatureCoolant & self.opFeatures(obj): if not hasattr(obj, 'CoolantMode'): - PathLog.error("No coolant property found. Please recreate operation.") + PathLog.error(translate("Path", "No coolant property found. Please recreate operation.")) if FeatureTool & self.opFeatures(obj): tc = obj.ToolController if tc is None or tc.ToolNumber == 0: - PathLog.error("No Tool Controller is selected. We need a tool to build a Path.") + PathLog.error(translate("Path", "No Tool Controller is selected. We need a tool to build a Path.")) return else: self.vertFeed = tc.VertFeed.Value @@ -501,7 +501,7 @@ class ObjectOp(object): self.horizRapid = tc.HorizRapid.Value tool = tc.Proxy.getTool(tc) if not tool or float(tool.Diameter) == 0: - PathLog.error("No Tool found or diameter is zero. We need a tool to build a Path.") + PathLog.error(translate("Path", "No Tool found or diameter is zero. We need a tool to build a Path.")) return self.radius = float(tool.Diameter) / 2 self.tool = tool @@ -534,8 +534,8 @@ class ObjectOp(object): tc = obj.ToolController if tc is None or tc.ToolNumber == 0: - PathLog.error("No Tool Controller selected.") - return translate('PathGui', 'Tool Error') + PathLog.error(translate("Path", "No Tool Controller selected.")) + return translate('Path', 'Tool Error') hFeedrate = tc.HorizFeed.Value vFeedrate = tc.VertFeed.Value @@ -543,17 +543,17 @@ class ObjectOp(object): vRapidrate = tc.VertRapid.Value if hFeedrate == 0 or vFeedrate == 0: - PathLog.warning("Tool Controller feedrates required to calculate the cycle time.") - return translate('PathGui', 'Feedrate Error') + PathLog.warning(translate("Path", "Tool Controller feedrates required to calculate the cycle time.")) + return translate('Path', 'Feedrate Error') if hRapidrate == 0 or vRapidrate == 0: - PathLog.warning("Add Tool Controller Rapid Speeds on the SetupSheet for more accurate cycle times.") + PathLog.warning(translate("Path", "Add Tool Controller Rapid Speeds on the SetupSheet for more accurate cycle times.")) # Get the cycle time in seconds seconds = obj.Path.getCycleTime(hFeedrate, vFeedrate, hRapidrate, vRapidrate) if not seconds: - return translate('PathGui', 'Cycletime Error') + return translate('Path', 'Cycletime Error') # Convert the cycle time to a HH:MM:SS format cycleTime = time.strftime("%H:%M:%S", time.gmtime(seconds))