From b325876156f2cc28b6cc94b606b2c4344eeb014d Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Mon, 5 Mar 2018 16:47:01 -0300 Subject: [PATCH] Arch: Fixed translations bug --- src/Mod/Arch/ArchCommands.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Mod/Arch/ArchCommands.py b/src/Mod/Arch/ArchCommands.py index b87bde54a5..5b6f8e3ce5 100644 --- a/src/Mod/Arch/ArchCommands.py +++ b/src/Mod/Arch/ArchCommands.py @@ -1242,11 +1242,11 @@ class _CommandAdd: def Activated(self): sel = FreeCADGui.Selection.getSelection() if Draft.getType(sel[-1]) == "Space": - FreeCAD.ActiveDocument.openTransaction(str(translate("Arch","Add space boundary"))) + FreeCAD.ActiveDocument.openTransaction(translate("Arch","Add space boundary")) FreeCADGui.addModule("Arch") FreeCADGui.doCommand("Arch.addSpaceBoundaries( FreeCAD.ActiveDocument."+sel[-1].Name+", FreeCADGui.Selection.getSelectionEx() )") else: - FreeCAD.ActiveDocument.openTransaction(str(translate("Arch","Grouping"))) + FreeCAD.ActiveDocument.openTransaction(translate("Arch","Grouping")) if not mergeCells(sel): host = sel.pop() ss = "[" @@ -1274,11 +1274,11 @@ class _CommandRemove: def Activated(self): sel = FreeCADGui.Selection.getSelection() if Draft.getType(sel[-1]) == "Space": - FreeCAD.ActiveDocument.openTransaction(str(translate("Arch","Remove space boundary"))) + FreeCAD.ActiveDocument.openTransaction(translate("Arch","Remove space boundary")) FreeCADGui.addModule("Arch") FreeCADGui.doCommand("Arch.removeSpaceBoundaries( FreeCAD.ActiveDocument."+sel[-1].Name+", FreeCADGui.Selection.getSelection() )") else: - FreeCAD.ActiveDocument.openTransaction(str(translate("Arch","Ungrouping"))) + FreeCAD.ActiveDocument.openTransaction(translate("Arch","Ungrouping")) if (Draft.getType(sel[-1]) in ["Wall","Structure","Stairs","Roof","Window","Panel"]) and (len(sel) > 1): host = sel.pop() ss = "[" @@ -1309,7 +1309,7 @@ class _CommandSplitMesh: def Activated(self): if FreeCADGui.Selection.getSelection(): sel = FreeCADGui.Selection.getSelection() - FreeCAD.ActiveDocument.openTransaction(str(translate("Arch","Split Mesh"))) + FreeCAD.ActiveDocument.openTransaction(translate("Arch","Split Mesh")) for obj in sel: n = obj.Name nobjs = splitMesh(obj) @@ -1349,7 +1349,7 @@ class _CommandMeshToShape: tol = p.GetFloat("ConversionTolerance",0.001) flat = p.GetBool("ConversionFlat",False) cut = p.GetBool("ConversionCut",False) - FreeCAD.ActiveDocument.openTransaction(str(translate("Arch","Mesh to Shape"))) + FreeCAD.ActiveDocument.openTransaction(translate("Arch","Mesh to Shape")) for obj in FreeCADGui.Selection.getSelection(): newobj = meshToShape(obj,True,fast,tol,flat,cut) if g and newobj: