Path: Fixed translation stuff - issue #2443

This commit is contained in:
Yorik van Havre
2016-02-09 17:05:57 -02:00
parent 8315fc8727
commit d2a6c95993
23 changed files with 119 additions and 111 deletions

View File

@@ -80,16 +80,16 @@ class CommandPathCopy:
def GetResources(self):
return {'Pixmap' : 'Path-Copy',
'MenuText': QtCore.QT_TRANSLATE_NOOP("PathCopy","Copy"),
'MenuText': QtCore.QT_TRANSLATE_NOOP("Path_Copy","Copy"),
'Accel': "P, Y",
'ToolTip': QtCore.QT_TRANSLATE_NOOP("PathCopy","Creates a linked copy of another path")}
'ToolTip': QtCore.QT_TRANSLATE_NOOP("Path_Copy","Creates a linked copy of another path")}
def IsActive(self):
return not FreeCAD.ActiveDocument is None
def Activated(self):
FreeCAD.ActiveDocument.openTransaction(translate("PathCopy","Create Copy"))
FreeCAD.ActiveDocument.openTransaction(translate("Path_Copy","Create Copy"))
FreeCADGui.addModule("PathScripts.PathCopy")
consolecode = '''