From b56cd8007b7b349f3c743286bab1b7e8fa8eee55 Mon Sep 17 00:00:00 2001 From: luz paz Date: Tue, 9 Nov 2021 07:39:08 -0500 Subject: [PATCH] TechDraw: Renames submenu command + exposes to translation Fixes https://github.com/FreeCAD/FreeCAD-translations/issues/82 The dropdown `TechDraw > Extensions: centerlines and threading` (submenu) is too long and superfluous. Renamed to: `Extensions: Centerlines/Threading`. Also exposed to translation. --- src/Mod/TechDraw/Gui/Workbench.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Mod/TechDraw/Gui/Workbench.cpp b/src/Mod/TechDraw/Gui/Workbench.cpp index 01681b4ed4..fea254971a 100644 --- a/src/Mod/TechDraw/Gui/Workbench.cpp +++ b/src/Mod/TechDraw/Gui/Workbench.cpp @@ -49,6 +49,7 @@ using namespace TechDrawGui; qApp->translate("Workbench", "TechDraw Decoration"); qApp->translate("Workbench", "TechDraw Annotation"); qApp->translate("Workbench", "Views"); + qApp->translate("Workbench", "Extensions: Centerlines/Threading"); #endif TYPESYSTEM_SOURCE(TechDrawGui::Workbench, Gui::StdWorkbench) @@ -84,7 +85,7 @@ Gui::MenuItem* Workbench::setupMenuBar() const // toolattributes Gui::MenuItem* toolattrib = new Gui::MenuItem; - toolattrib->setCommand("Extensions: centerlines and threading"); + toolattrib->setCommand("Extensions: Centerlines/Threading"); *toolattrib << "TechDraw_ExtensionCircleCenterLines"; *toolattrib << "TechDraw_ExtensionThreadHoleSide"; *toolattrib << "TechDraw_ExtensionThreadBoltSide";