Replaced default context argument with explicit call for pylupdate to pick up the strings and contexts.

This commit is contained in:
Markus Lampert
2017-06-03 12:12:27 -07:00
parent 57fed76be7
commit af699ab7e2
32 changed files with 110 additions and 125 deletions

View File

@@ -43,7 +43,7 @@ if FreeCAD.GuiUp:
from PySide import QtGui
# Qt tanslation handling
def translate(text, context = "Path", disambig=None):
def translate(context, text, disambig=None):
return QtCore.QCoreApplication.translate(context, text, disambig)
__title__ = "Path Contour Operation"
@@ -310,7 +310,7 @@ class CommandPathContour:
ztop = 10.0
zbottom = 0.0
FreeCAD.ActiveDocument.openTransaction(translate("Create a Contour"))
FreeCAD.ActiveDocument.openTransaction(translate("Path", "Create a Contour"))
FreeCADGui.addModule("PathScripts.PathContour")
FreeCADGui.doCommand('obj = FreeCAD.ActiveDocument.addObject("Path::FeaturePython", "Contour")')
FreeCADGui.doCommand('PathScripts.PathContour.ObjectContour(obj)')