From 514058a0237ac1c550e63bc0960a1983a047e141 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Tue, 17 Apr 2018 11:18:23 -0300 Subject: [PATCH] Arch: Fixed leftover encoding bug (backported to 0.17) --- src/Mod/Arch/ArchStructure.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Mod/Arch/ArchStructure.py b/src/Mod/Arch/ArchStructure.py index 1a442dff2a..a0ec64d564 100644 --- a/src/Mod/Arch/ArchStructure.py +++ b/src/Mod/Arch/ArchStructure.py @@ -152,7 +152,7 @@ class _CommandStructure: st = Draft.getObjectsOfType(sel,"Structure") ax = Draft.getObjectsOfType(sel,"Axis") if ax: - FreeCAD.ActiveDocument.openTransaction(str(translate("Arch","Create Structural System"))) + FreeCAD.ActiveDocument.openTransaction(translate("Arch","Create Structural System")) FreeCADGui.addModule("Arch") if st: FreeCADGui.doCommand("obj = Arch.makeStructuralSystem(" + ArchCommands.getStringList(st) + "," + ArchCommands.getStringList(ax) + ")") @@ -164,7 +164,7 @@ class _CommandStructure: FreeCAD.ActiveDocument.recompute() return elif not(ax) and not(st): - FreeCAD.ActiveDocument.openTransaction(str(translate("Arch","Create Structure"))) + FreeCAD.ActiveDocument.openTransaction(translate("Arch","Create Structure")) FreeCADGui.addModule("Arch") for obj in sel: FreeCADGui.doCommand("obj = Arch.makeStructure(FreeCAD.ActiveDocument." + obj.Name + ")") @@ -194,7 +194,7 @@ class _CommandStructure: self.tracker.finalize() if point == None: return - FreeCAD.ActiveDocument.openTransaction(str(translate("Arch","Create Structure"))) + FreeCAD.ActiveDocument.openTransaction(translate("Arch","Create Structure")) FreeCADGui.addModule("Arch") if self.Profile is not None: if "Precast" in self.Profile: