[TD] Fix problem with translation (add TechDraw_ to context)

This will fix https://github.com/FreeCAD/FreeCAD-translations/issues 145-147
This commit is contained in:
Kuzemko Alexsandr
2022-05-31 07:14:11 +03:00
committed by Chris Hennes
parent 9d4ae629a3
commit ba159e128d
4 changed files with 19 additions and 19 deletions

View File

@@ -44,8 +44,8 @@ class CommandMoveView:
"""Return a dictionary with data that will be used by the button or menu item."""
return {'Pixmap': 'actions/TechDraw_MoveView.svg',
'Accel': "",
'MenuText': QT_TRANSLATE_NOOP("MoveView", "Move View"),
'ToolTip': QT_TRANSLATE_NOOP("MoveView", "Move a View to a new Page")}
'MenuText': QT_TRANSLATE_NOOP("TechDraw_MoveView", "Move View"),
'ToolTip': QT_TRANSLATE_NOOP("TechDraw_MoveView", "Move a View to a new Page")}
def Activated(self):
"""Run the following code when the command is activated (button press)."""