diff --git a/src/Mod/Arch/ArchPanel.py b/src/Mod/Arch/ArchPanel.py index 8399ee7853..38bc6c76c5 100644 --- a/src/Mod/Arch/ArchPanel.py +++ b/src/Mod/Arch/ArchPanel.py @@ -198,7 +198,7 @@ class CommandPanel: self.tracker.finalize() if point == None: return - FreeCAD.ActiveDocument.openTransaction(str(translate("Arch","Create Panel"))) + FreeCAD.ActiveDocument.openTransaction(translate("Arch","Create Panel")) FreeCADGui.addModule("Arch") if self.Profile: pr = Presets[self.Profile] diff --git a/src/Mod/Arch/ArchSectionPlane.py b/src/Mod/Arch/ArchSectionPlane.py index 76ce16742a..1549cc0676 100644 --- a/src/Mod/Arch/ArchSectionPlane.py +++ b/src/Mod/Arch/ArchSectionPlane.py @@ -85,7 +85,7 @@ def makeSectionView(section,name="View"): page = o break if not page: - page = FreeCAD.ActiveDocument.addObject("Drawing::FeaturePage",translate("Arch","Page")) + page = FreeCAD.ActiveDocument.addObject("Drawing::FeaturePage","Page") page.Template = Draft.getParam("template",FreeCAD.getResourceDir()+'Mod/Drawing/Templates/A3_Landscape.svg') view = FreeCAD.ActiveDocument.addObject("Drawing::FeatureViewPython",name)