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

@@ -105,15 +105,15 @@ class _ViewProviderComment:
class CommandPathComment:
def GetResources(self):
return {'Pixmap' : 'Path-Comment',
'MenuText': QtCore.QT_TRANSLATE_NOOP("PathComment","Comment"),
'MenuText': QtCore.QT_TRANSLATE_NOOP("Path_Comment","Comment"),
'Accel': "P, C",
'ToolTip': QtCore.QT_TRANSLATE_NOOP("PathComment","Add a Comment to your CNC program")}
'ToolTip': QtCore.QT_TRANSLATE_NOOP("Path_Comment","Add a Comment to your CNC program")}
def IsActive(self):
return not FreeCAD.ActiveDocument is None
def Activated(self):
FreeCAD.ActiveDocument.openTransaction(translate("PathComment","Create a Comment in your CNC program"))
FreeCAD.ActiveDocument.openTransaction(translate("Path_Comment","Create a Comment in your CNC program"))
FreeCADGui.addModule("PathScripts.PathComment")
snippet = '''
import Path