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

@@ -110,15 +110,15 @@ class _ViewProviderStop:
class CommandPathStop:
def GetResources(self):
return {'Pixmap' : 'Path-Stop',
'MenuText': QtCore.QT_TRANSLATE_NOOP("PathStop","Stop"),
'MenuText': QtCore.QT_TRANSLATE_NOOP("Path_Stop","Stop"),
'Accel': "P, C",
'ToolTip': QtCore.QT_TRANSLATE_NOOP("PathStop","Add Optional or Mandatory Stop to the program")}
'ToolTip': QtCore.QT_TRANSLATE_NOOP("Path_Stop","Add Optional or Mandatory Stop to the program")}
def IsActive(self):
return not FreeCAD.ActiveDocument is None
def Activated(self):
FreeCAD.ActiveDocument.openTransaction(translate("PathStop","Add Optional or Mandatory Stop to the program"))
FreeCAD.ActiveDocument.openTransaction(translate("Path_Stop","Add Optional or Mandatory Stop to the program"))
FreeCADGui.addModule("PathScripts.PathStop")
snippet = '''
import Path