Path: Fixed translation stuff - issue #2443
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user