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.
This commit is contained in:
luz paz
2021-11-09 07:39:08 -05:00
committed by Uwe
parent 854b547503
commit b56cd8007b

View File

@@ -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";