From 0e50b21667bba281a371d10ce8e0c68f3ca6eb83 Mon Sep 17 00:00:00 2001 From: Roy-043 <70520633+Roy-043@users.noreply.github.com> Date: Wed, 26 Jan 2022 11:32:30 +0100 Subject: [PATCH 1/2] Arch: Fix ArchCutPlane translation issue Fixed wrong context for the Arch_CutLine command. --- src/Mod/Arch/ArchCutPlane.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Mod/Arch/ArchCutPlane.py b/src/Mod/Arch/ArchCutPlane.py index 7565f69cd6..df4f767238 100644 --- a/src/Mod/Arch/ArchCutPlane.py +++ b/src/Mod/Arch/ArchCutPlane.py @@ -76,9 +76,9 @@ def cutComponentwithPlane(archObject, cutPlane, sideFace): class _CommandCutLine: "the Arch CutPlane command definition" def GetResources(self): - return {'Pixmap' : 'Arch_CutLine', - 'MenuText': QtCore.QT_TRANSLATE_NOOP("Arch_CutPlane","Cut with a line"), - 'ToolTip': QtCore.QT_TRANSLATE_NOOP("Arch_CutPlane","Cut an object with a line with normal workplane")} + return {'Pixmap': 'Arch_CutLine', + 'MenuText': QtCore.QT_TRANSLATE_NOOP('Arch_CutLine', 'Cut with line'), + 'ToolTip': QtCore.QT_TRANSLATE_NOOP('Arch_CutLine', 'Cut an object with a line')} def IsActive(self): return len(FreeCADGui.Selection.getSelection()) > 1 From 66eb49cc18d81d38b3d843704c176c2cd399becf Mon Sep 17 00:00:00 2001 From: Roy-043 <70520633+Roy-043@users.noreply.github.com> Date: Fri, 28 Jan 2022 11:17:37 +0100 Subject: [PATCH 2/2] Update ArchCutPlane.py Double quotes... Another pep8 thing... --- src/Mod/Arch/ArchCutPlane.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Mod/Arch/ArchCutPlane.py b/src/Mod/Arch/ArchCutPlane.py index df4f767238..4f8c677b5a 100644 --- a/src/Mod/Arch/ArchCutPlane.py +++ b/src/Mod/Arch/ArchCutPlane.py @@ -76,9 +76,9 @@ def cutComponentwithPlane(archObject, cutPlane, sideFace): class _CommandCutLine: "the Arch CutPlane command definition" def GetResources(self): - return {'Pixmap': 'Arch_CutLine', - 'MenuText': QtCore.QT_TRANSLATE_NOOP('Arch_CutLine', 'Cut with line'), - 'ToolTip': QtCore.QT_TRANSLATE_NOOP('Arch_CutLine', 'Cut an object with a line')} + return {"Pixmap": "Arch_CutLine", + "MenuText": QtCore.QT_TRANSLATE_NOOP("Arch_CutLine", "Cut with line"), + "ToolTip": QtCore.QT_TRANSLATE_NOOP("Arch_CutLine", "Cut an object with a line")} def IsActive(self): return len(FreeCADGui.Selection.getSelection()) > 1