Fixed translation system in Arch & Draft

This commit is contained in:
Yorik van Havre
2014-01-07 11:17:31 -02:00
parent 0e74bbb39e
commit b3fc7b7a78
24 changed files with 173 additions and 173 deletions

View File

@@ -31,7 +31,7 @@ __author__ = "Yorik van Havre"
__url__ = "http://www.freecadweb.org"
def makeFrame(base,profile,name="Frame"):
def makeFrame(base,profile,name=translate("Arch","Frame")):
"""makeFrame(base,profile,[name]): creates a frame object from a base sketch (or any other object
containing wires) and a profile object (an extrudable 2D object containing faces or closed wires)"""
obj = FreeCAD.ActiveDocument.addObject("Part::FeaturePython",name)
@@ -53,7 +53,7 @@ class _CommandFrame:
def Activated(self):
s = FreeCADGui.Selection.getSelection()
if len(s) == 2:
FreeCAD.ActiveDocument.openTransaction(str(translate("Arch","Create Frame")))
FreeCAD.ActiveDocument.openTransaction(translate("Arch","Create Frame"))
FreeCADGui.doCommand("import Arch")
FreeCADGui.doCommand("Arch.makeFrame(FreeCAD.ActiveDocument."+s[0].Name+",FreeCAD.ActiveDocument."+s[1].Name+")")
FreeCAD.ActiveDocument.commitTransaction()