Arch: removing \n from translated strings
ref: https://crowdin.com/translate/freecad/548/en-hu#6501126
This commit is contained in:
@@ -378,14 +378,14 @@ def getCutVolume(cutplane,shapes):
|
||||
else:
|
||||
p = cutplane.copy().Faces[0]
|
||||
except Part.OCCError:
|
||||
FreeCAD.Console.PrintMessage(translate("Arch","Invalid cutplane\n"))
|
||||
FreeCAD.Console.PrintMessage(translate("Arch","Invalid cutplane")+"\n")
|
||||
return None,None,None
|
||||
ce = p.CenterOfMass
|
||||
ax = p.normalAt(0,0)
|
||||
u = p.Vertexes[1].Point.sub(p.Vertexes[0].Point).normalize()
|
||||
v = u.cross(ax)
|
||||
if not bb.isCutPlane(ce,ax):
|
||||
#FreeCAD.Console.PrintMessage(translate("Arch","No objects are cut by the plane\n"))
|
||||
#FreeCAD.Console.PrintMessage(translate("Arch","No objects are cut by the plane)+"\n")
|
||||
return None,None,None
|
||||
else:
|
||||
corners = [FreeCAD.Vector(bb.XMin,bb.YMin,bb.ZMin),
|
||||
|
||||
@@ -191,7 +191,7 @@ class _Frame(ArchComponent.Component):
|
||||
try:
|
||||
basepoint = basepointliste[obj.BasePoint]
|
||||
except IndexError:
|
||||
FreeCAD.Console.PrintMessage(translate("Arch","Crossing point not found in profile.\n"))
|
||||
FreeCAD.Console.PrintMessage(translate("Arch","Crossing point not found in profile.")+"\n")
|
||||
basepoint = basepointliste[0]
|
||||
else :
|
||||
basepoint = profile.CenterOfMass
|
||||
|
||||
@@ -141,7 +141,7 @@ class _CommandRebar:
|
||||
print("Arch: error: couldn't extract a base object")
|
||||
return
|
||||
|
||||
FreeCAD.Console.PrintMessage(translate("Arch","Please select a base face on a structural object\n"))
|
||||
FreeCAD.Console.PrintMessage(translate("Arch","Please select a base face on a structural object")+"\n")
|
||||
FreeCADGui.Control.showDialog(ArchComponent.SelectionTaskPanel())
|
||||
FreeCAD.ArchObserver = ArchComponent.ArchSelectionObserver(nextCommand="Arch_Rebar")
|
||||
FreeCADGui.Selection.addObserver(FreeCAD.ArchObserver)
|
||||
|
||||
@@ -158,7 +158,7 @@ class _CommandRoof:
|
||||
else:
|
||||
FreeCAD.Console.PrintMessage(translate("Arch","Unable to create a roof"))
|
||||
else:
|
||||
FreeCAD.Console.PrintMessage(translate("Arch","Please select a base object\n"))
|
||||
FreeCAD.Console.PrintMessage(translate("Arch","Please select a base object")+"\n")
|
||||
FreeCADGui.Control.showDialog(ArchComponent.SelectionTaskPanel())
|
||||
FreeCAD.ArchObserver = ArchComponent.ArchSelectionObserver(nextCommand="Arch_Roof")
|
||||
FreeCADGui.Selection.addObserver(FreeCAD.ArchObserver)
|
||||
|
||||
@@ -238,7 +238,7 @@ class _CommandSpace:
|
||||
FreeCAD.ActiveDocument.commitTransaction()
|
||||
FreeCAD.ActiveDocument.recompute()
|
||||
else:
|
||||
FreeCAD.Console.PrintMessage(translate("Arch","Please select a base object\n"))
|
||||
FreeCAD.Console.PrintMessage(translate("Arch","Please select a base object")+"\n")
|
||||
FreeCADGui.Control.showDialog(ArchComponent.SelectionTaskPanel())
|
||||
FreeCAD.ArchObserver = ArchComponent.ArchSelectionObserver(nextCommand="Arch_Space")
|
||||
FreeCADGui.Selection.addObserver(FreeCAD.ArchObserver)
|
||||
|
||||
@@ -784,20 +784,20 @@ class StructureTaskPanel(ArchComponent.ComponentTaskPanel):
|
||||
FreeCADGui.Selection.removeObserver(self.observer)
|
||||
self.observer = None
|
||||
if Draft.getType(other) != "Structure":
|
||||
FreeCAD.Console.PrintError(translate("Arch","The picked object is not a Structure\n"))
|
||||
FreeCAD.Console.PrintError(translate("Arch","The picked object is not a Structure")+"\n")
|
||||
else:
|
||||
if not other.Nodes:
|
||||
FreeCAD.Console.PrintError(translate("Arch","The picked object has no structural nodes\n"))
|
||||
FreeCAD.Console.PrintError(translate("Arch","The picked object has no structural nodes")+"\n")
|
||||
else:
|
||||
if (len(self.Object.Nodes) != 2) or (len(other.Nodes) != 2):
|
||||
FreeCAD.Console.PrintError(translate("Arch","One of these objects has more than 2 nodes\n"))
|
||||
FreeCAD.Console.PrintError(translate("Arch","One of these objects has more than 2 nodes")+"\n")
|
||||
else:
|
||||
import DraftGeomUtils
|
||||
nodes1 = [self.Object.Placement.multVec(v) for v in self.Object.Nodes]
|
||||
nodes2 = [other.Placement.multVec(v) for v in other.Nodes]
|
||||
intersect = DraftGeomUtils.findIntersection(nodes1[0],nodes1[1],nodes2[0],nodes2[1],True,True)
|
||||
if not intersect:
|
||||
FreeCAD.Console.PrintError(translate("Arch","Unable to find a suitable intersection point\n"))
|
||||
FreeCAD.Console.PrintError(translate("Arch","Unable to find a suitable intersection point")+"\n")
|
||||
else:
|
||||
intersect = intersect[0]
|
||||
FreeCAD.Console.PrintMessage(translate("Arch","Intersection found.\n"))
|
||||
@@ -815,23 +815,23 @@ class StructureTaskPanel(ArchComponent.ComponentTaskPanel):
|
||||
FreeCADGui.Selection.removeObserver(self.observer)
|
||||
self.observer = None
|
||||
if Draft.getType(other) != "Structure":
|
||||
FreeCAD.Console.PrintError(translate("Arch","The picked object is not a Structure\n"))
|
||||
FreeCAD.Console.PrintError(translate("Arch","The picked object is not a Structure")+"\n")
|
||||
else:
|
||||
if not other.Nodes:
|
||||
FreeCAD.Console.PrintError(translate("Arch","The picked object has no structural nodes\n"))
|
||||
FreeCAD.Console.PrintError(translate("Arch","The picked object has no structural nodes")+"\n")
|
||||
else:
|
||||
if (len(self.Object.Nodes) != 2) or (len(other.Nodes) != 2):
|
||||
FreeCAD.Console.PrintError(translate("Arch","One of these objects has more than 2 nodes\n"))
|
||||
FreeCAD.Console.PrintError(translate("Arch","One of these objects has more than 2 nodes")+"\n")
|
||||
else:
|
||||
import DraftGeomUtils
|
||||
nodes1 = [self.Object.Placement.multVec(v) for v in self.Object.Nodes]
|
||||
nodes2 = [other.Placement.multVec(v) for v in other.Nodes]
|
||||
intersect = DraftGeomUtils.findIntersection(nodes1[0],nodes1[1],nodes2[0],nodes2[1],True,True)
|
||||
if not intersect:
|
||||
FreeCAD.Console.PrintError(translate("Arch","Unable to find a suitable intersection point\n"))
|
||||
FreeCAD.Console.PrintError(translate("Arch","Unable to find a suitable intersection point")+"\n")
|
||||
else:
|
||||
intersect = intersect[0]
|
||||
FreeCAD.Console.PrintMessage(translate("Arch","Intersection found.\n"))
|
||||
FreeCAD.Console.PrintMessage(translate("Arch","Intersection found.")+"\n")
|
||||
if DraftGeomUtils.findClosest(intersect,nodes1) == 0:
|
||||
self.Object.Nodes = [self.Object.Placement.inverse().multVec(intersect),self.Object.Nodes[1]]
|
||||
else:
|
||||
|
||||
@@ -458,7 +458,7 @@ class _CommandWindow:
|
||||
self.tracker.width(self.Thickness)
|
||||
self.tracker.height(self.Height)
|
||||
self.tracker.on()
|
||||
FreeCAD.Console.PrintMessage(translate("Arch","Pick a face on an existing object or select a preset\n"))
|
||||
FreeCAD.Console.PrintMessage(translate("Arch","Pick a face on an existing object or select a preset")+"\n")
|
||||
FreeCADGui.Snapper.getPoint(callback=self.getPoint,movecallback=self.update,extradlg=self.taskbox())
|
||||
#FreeCADGui.Snapper.setSelectMode(True)
|
||||
|
||||
|
||||
@@ -112,7 +112,7 @@ def getIfcOpenShell():
|
||||
try:
|
||||
import ifc_wrapper as IfcImport
|
||||
except ImportError:
|
||||
FreeCAD.Console.PrintMessage(translate("Arch","Couldn't locate IfcOpenShell\n"))
|
||||
FreeCAD.Console.PrintMessage(translate("Arch","Couldn't locate IfcOpenShell")+"\n")
|
||||
return False
|
||||
else:
|
||||
IFCOPENSHELL5 = True
|
||||
|
||||
Reference in New Issue
Block a user