Part: Change contex from AttachmentEditor to Part_EditAttachment

Add menu text "Create a copy" to translation
This may fix https://github.com/FreeCAD/FreeCAD-translations/issues/64
This commit is contained in:
Kuzemko Alexsandr
2022-05-30 19:44:08 +03:00
committed by wwmayer
parent f7b9a70ee5
commit 62f65e12e2
2 changed files with 3 additions and 2 deletions

View File

@@ -76,9 +76,9 @@ class CommandEditAttachment:
'Command to edit attachment'
def GetResources(self):
return {'Pixmap': 'Part_Attachment',
'MenuText': QT_TRANSLATE_NOOP("AttachmentEditor","Attachment..."),
'MenuText': QT_TRANSLATE_NOOP("Part_EditAttachment","Attachment..."),
'Accel': "",
'ToolTip': QT_TRANSLATE_NOOP("AttachmentEditor","Edit attachment of selected object.")}
'ToolTip': QT_TRANSLATE_NOOP("Part_EditAttachment","Edit attachment of selected object.")}
def Activated(self):
try:

View File

@@ -40,6 +40,7 @@ using namespace PartGui;
qApp->translate("Workbench", "Join");
qApp->translate("Workbench", "Split");
qApp->translate("Workbench", "Compound");
qApp->translate("Workbench", "Create a copy");
#endif
/// @namespace PartGui @class Workbench