Crowdin: Path string fixes

This commit is contained in:
luz.paz
2018-04-20 09:57:24 -04:00
committed by wmayer
parent dac72f25f1
commit 0720c5e233
13 changed files with 23 additions and 23 deletions

View File

@@ -255,11 +255,11 @@ class CommandPathArray:
selection = FreeCADGui.Selection.getSelection()
if len(selection) != 1:
FreeCAD.Console.PrintError(
translate("Path_Array", "Please select exactly one path object\n"))
translate("Path_Array", "Please select exactly one path object")+"\n")
return
if not(selection[0].isDerivedFrom("Path::Feature")):
FreeCAD.Console.PrintError(
translate("Path_Array", "Please select exactly one path object\n"))
translate("Path_Array", "Please select exactly one path object")+"\n")
return
# if everything is ok, execute and register the transaction in the

View File

@@ -482,11 +482,11 @@ class CommandDressupDragknife:
selection = FreeCADGui.Selection.getSelection()
if len(selection) != 1:
FreeCAD.Console.PrintError(
translate("Path_DressupDragKnife", "Please select one path object\n"))
translate("Path_DressupDragKnife", "Please select one path object")+"\n")
return
if not selection[0].isDerivedFrom("Path::Feature"):
FreeCAD.Console.PrintError(
translate("Path_DressupDragKnife", "The selected object is not a path\n"))
translate("Path_DressupDragKnife", "The selected object is not a path")+"\n")
return
if selection[0].isDerivedFrom("Path::FeatureCompoundPython"):
FreeCAD.Console.PrintError(

View File

@@ -935,7 +935,7 @@ class ObjectTagDressup:
try:
pathData = PathData(obj)
except ValueError:
PathLog.error(translate("Path_DressupTag", "Cannot insert holding tags for this path - please select a Profile path\n"))
PathLog.error(translate("Path_DressupTag", "Cannot insert holding tags for this path - please select a Profile path")+"\n")
return None
self.toolRadius = PathDressup.toolController(obj.Base).Tool.Diameter / 2
@@ -979,7 +979,7 @@ def Create(baseObject, name='DressupTag'):
Create(basePath, name='DressupTag') ... create tag dressup object for the given base path.
'''
if not baseObject.isDerivedFrom('Path::Feature'):
PathLog.error(translate('Path_DressupTag', 'The selected object is not a path\n'))
PathLog.error(translate('Path_DressupTag', 'The selected object is not a path')+'\n')
return None
if baseObject.isDerivedFrom('Path::FeatureCompoundPython'):

View File

@@ -93,7 +93,7 @@ class ObjectDressup:
if not obj.Base.Path:
return
if obj.Length < 0:
PathLog.error(translate("Length/Radius positiv not Null\n"))
PathLog.error(translate("Length/Radius positive not Null")+"\n")
obj.Length = 0.1
self.wire, self.rapids = PathGeom.wireForPath(obj.Base.Path)
obj.Path = self.generateLeadInOutCurve(obj)
@@ -349,11 +349,11 @@ class CommandPathDressupLeadInOut:
# check that the selection contains exactly what we want
selection = FreeCADGui.Selection.getSelection()
if len(selection) != 1:
PathLog.error(translate("Please select one path object\n"))
PathLog.error(translate("Please select one path object")+"\n")
return
baseObject = selection[0]
if not baseObject.isDerivedFrom("Path::Feature"):
PathLog.error(translate("The selected object is not a path\n"))
PathLog.error(translate("The selected object is not a path")+"\n")
return
if baseObject.isDerivedFrom("Path::FeatureCompoundPython"):
PathLog.error(translate("Please select a Profile object"))

View File

@@ -616,11 +616,11 @@ class CommandPathDressupRampEntry:
# check that the selection contains exactly what we want
selection = FreeCADGui.Selection.getSelection()
if len(selection) != 1:
PathLog.error(translate("Please select one path object\n"))
PathLog.error(translate("Please select one path object")+"\n")
return
baseObject = selection[0]
if not baseObject.isDerivedFrom("Path::Feature"):
PathLog.error(translate("The selected object is not a path\n"))
PathLog.error(translate("The selected object is not a path")+"\n")
return
if baseObject.isDerivedFrom("Path::FeatureCompoundPython"):
PathLog.error(translate("Please select a Profile object"))

View File

@@ -234,7 +234,7 @@ def Create(baseObject, name='DressupTag'):
Create(basePath, name = 'DressupTag') ... create tag dressup object for the given base path.
'''
if not baseObject.isDerivedFrom('Path::Feature'):
PathLog.error(translate('Path_DressupTag', 'The selected object is not a path\n'))
PathLog.error(translate('Path_DressupTag', 'The selected object is not a path')+'\n')
return None
if baseObject.isDerivedFrom('Path::FeatureCompoundPython'):

View File

@@ -517,7 +517,7 @@ class CommandPathDressupTag:
# check that the selection contains exactly what we want
selection = FreeCADGui.Selection.getSelection()
if len(selection) != 1:
PathLog.error(translate('Path_DressupTag', 'Please select one path object\n'))
PathLog.error(translate('Path_DressupTag', 'Please select one path object')+'\n')
return
baseObject = selection[0]

View File

@@ -109,11 +109,11 @@ class CommandPathHop:
selection = FreeCADGui.Selection.getSelection()
if len(selection) != 1:
FreeCAD.Console.PrintError(
translate("Path_Hop", "Please select one path object\n"))
translate("Path_Hop", "Please select one path object")+"\n")
return
if not selection[0].isDerivedFrom("Path::Feature"):
FreeCAD.Console.PrintError(
translate("Path_Hop", "The selected object is not a path\n"))
translate("Path_Hop", "The selected object is not a path")+"\n")
return
FreeCAD.ActiveDocument.openTransaction(

View File

@@ -231,11 +231,11 @@ class CommandPathInspect:
selection = FreeCADGui.Selection.getSelection()
if len(selection) != 1:
FreeCAD.Console.PrintError(
translate("Path_Inspect", "Please select exactly one path object\n"))
translate("Path_Inspect", "Please select exactly one path object")+"\n")
return
if not(selection[0].isDerivedFrom("Path::Feature")):
FreeCAD.Console.PrintError(
translate("Path_Inspect", "Please select exactly one path object\n"))
translate("Path_Inspect", "Please select exactly one path object")+"\n")
return
# if everything is ok, execute

View File

@@ -438,7 +438,7 @@ class ObjectOp(object):
baselist = []
item = (base, sub)
if item in baselist:
PathLog.notice(translate("Path", "this object already in the list" + "\n"))
PathLog.notice(translate("Path", "This object already in the list")+"\n")
else:
baselist.append(item)
obj.Base = baselist

View File

@@ -76,7 +76,7 @@ class ObjectPocket(PathAreaOp.ObjectOp):
obj.StartAt = ['Center', 'Edge']
obj.addProperty("App::PropertyPercent", "StepOver", "Pocket", QtCore.QT_TRANSLATE_NOOP("App::Property", "Percent of cutter diameter to step over on each pass"))
obj.addProperty("App::PropertyFloat", "ZigZagAngle", "Pocket", QtCore.QT_TRANSLATE_NOOP("App::Property", "Angle of the zigzag pattern"))
obj.addProperty("App::PropertyEnumeration", "OffsetPattern", "Face", QtCore.QT_TRANSLATE_NOOP("App::Property", "clearing pattern to use"))
obj.addProperty("App::PropertyEnumeration", "OffsetPattern", "Face", QtCore.QT_TRANSLATE_NOOP("App::Property", "Clearing pattern to use"))
obj.OffsetPattern = ['ZigZag', 'Offset', 'Spiral', 'ZigZagOffset', 'Line', 'Grid', 'Triangle']
obj.addProperty("App::PropertyBool", "MinTravel", "Pocket", QtCore.QT_TRANSLATE_NOOP("App::Property", "Use 3D Sorting of Path"))
obj.addProperty("App::PropertyBool", "KeepToolDown", "Face", QtCore.QT_TRANSLATE_NOOP("App::Property", "Attempts to avoid unnecessary retractions."))

View File

@@ -55,11 +55,11 @@ class CommandPathSimpleCopy:
selection = FreeCADGui.Selection.getSelection()
if len(selection) != 1:
FreeCAD.Console.PrintError(
translate("Path_SimpleCopy", "Please select exactly one path object\n"))
translate("Path_SimpleCopy", "Please select exactly one path object")+"\n")
return
if not(selection[0].isDerivedFrom("Path::Feature")):
FreeCAD.Console.PrintError(
translate("Path_SimpleCopy", "Please select exactly one path object\n"))
translate("Path_SimpleCopy", "Please select exactly one path object")+"\n")
return
FreeCAD.ActiveDocument.openTransaction(

View File

@@ -70,7 +70,7 @@ class ObjectSurface(PathOp.ObjectOp):
'''initPocketOp(obj) ... create facing specific properties'''
obj.addProperty("App::PropertyEnumeration", "Algorithm", "Algorithm", QtCore.QT_TRANSLATE_NOOP("App::Property", "The library to use to generate the path"))
obj.Algorithm = ['OCL Dropcutter', 'OCL Waterline']
obj.addProperty("App::PropertyFloatConstraint", "SampleInterval", "Surface", QtCore.QT_TRANSLATE_NOOP("App::Property", "The Sample Interval. Small values cause long wait"))
obj.addProperty("App::PropertyFloatConstraint", "SampleInterval", "Surface", QtCore.QT_TRANSLATE_NOOP("App::Property", "The Sample Interval. Small values cause long wait times"))
obj.SampleInterval = (0.04, 0.01, 1.0, 0.01)
def opExecute(self, obj):
@@ -97,7 +97,7 @@ class ObjectSurface(PathOp.ObjectOp):
import ocl
except:
FreeCAD.Console.PrintError(
translate("Path_Surface", "This operation requires OpenCamLib to be installed.\n"))
translate("Path_Surface", "This operation requires OpenCamLib to be installed.")+"\n")
return
if self.baseobject.TypeId.startswith('Mesh'):