Draft: Update UI strings for consistency (#22331)

* Draft: Update UI strings for consistency

* Apply suggestions from code review

* Apply suggestions from code review

Co-authored-by: Ryan K <114723629+ryankembrey@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Ryan K <114723629+ryankembrey@users.noreply.github.com>

* Apply suggestions from code review

* Apply suggestions from code review

* Apply suggestions from code review

Co-authored-by: Roy-043 <70520633+Roy-043@users.noreply.github.com>

* Apply suggestions from code review

* Apply suggestions from code review

Co-authored-by: Roy-043 <70520633+Roy-043@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Roy-043 <70520633+Roy-043@users.noreply.github.com>

* Apply suggestions from code review

---------

Co-authored-by: Ryan K <114723629+ryankembrey@users.noreply.github.com>
Co-authored-by: Roy-043 <70520633+Roy-043@users.noreply.github.com>
This commit is contained in:
Max Wilfinger
2025-08-06 23:02:16 +02:00
committed by GitHub
parent e50544d985
commit 386c5cd910
89 changed files with 415 additions and 420 deletions

View File

@@ -125,13 +125,13 @@ class Facebinder(DraftObject):
self.props_changed_clear()
def _report_build_error(self, obj):
_err(obj.Label + ": " + translate("draft", "Unable to build Facebinder"))
_err(obj.Label + ": " + translate("draft", "Unable to build facebinder"))
def _report_face_error(self, obj):
_wrn(obj.Label + ": " + translate("draft", "No valid faces for Facebinder"))
_wrn(obj.Label + ": " + translate("draft", "No valid faces for facebinder"))
def _report_sew_error(self, obj):
_wrn(obj.Label + ": " + translate("draft", "Unable to build Facebinder, resuming with Sew disabled"))
_wrn(obj.Label + ": " + translate("draft", "Unable to build facebinder, resuming with sew disabled"))
def _build_shape(self, obj, faces, sew=False):
"""returns the built shape and the area of the offset faces"""
@@ -197,7 +197,7 @@ class Facebinder(DraftObject):
if solid.isValid():
return solid
_msg(obj.Label + ": " + translate("draft",
"Converting flat B-spline faces of Facebinder to planar faces failed"
"Converting flat B-spline faces of facebinder to planar faces failed"
))
return shp

View File

@@ -439,7 +439,7 @@ class PathArray(DraftLink):
w = self.get_wires(obj.PathObject, obj.PathSubelements)
if not w:
_err(obj.PathObject.Label
+ translate("draft",", path object doesn't have 'Edges'."))
+ translate("draft",", path object does not have 'Edges'."))
return
base_rotation = obj.Base.Shape.Placement.Rotation
@@ -652,7 +652,7 @@ def placements_on_path(shapeRotation, pathwire, count, xlate, align,
_wrn(
translate(
"draft",
"Start Offset too large for path length. Using zero instead."
"Start Offset too large for path length. Using 0 instead."
)
)
startOffset = 0
@@ -662,7 +662,7 @@ def placements_on_path(shapeRotation, pathwire, count, xlate, align,
_wrn(
translate(
"draft",
"End Offset too large for path length minus Start Offset. Using zero instead."
"End Offset too large for path length minus Start Offset. Using 0 instead."
)
)
endOffset = 0
@@ -789,7 +789,7 @@ def calculate_placement(globalRotation,
t = edge.tangentAt(get_parameter_from_v0(edge, offset))
if t.isEqual(nullv, tol):
_wrn(translate("draft", "Length of tangent vector is zero. Copy not aligned."))
_wrn(translate("draft", "Length of tangent vector is 0. Copy not aligned."))
return placement
if reversePath:
@@ -806,7 +806,7 @@ def calculate_placement(globalRotation,
if mode in ("Original", "Tangent"):
n = normal
if n.isEqual(nullv, tol):
_wrn(translate("draft", "Length of normal vector is zero. Using a default axis instead."))
_wrn(translate("draft", "Length of normal vector is 0. Using a default axis instead."))
n = t
else:
n_nor = n.normalize()
@@ -828,7 +828,7 @@ def calculate_placement(globalRotation,
n = normal
if n.isEqual(nullv, tol):
_wrn(translate("draft", "Length of normal vector is zero. Using a default axis instead."))
_wrn(translate("draft", "Length of normal vector is 0. Using a default axis instead."))
n = t
else:
n_nor = n.normalize()

View File

@@ -228,8 +228,8 @@ def build_placements(base_object, pt_list=None, placement=App.Placement()):
"""
if not pt_list:
_err(translate("Draft",
"Point object doesn't have a discrete point, "
"it cannot be used for an array."))
"Point object does not have a discrete point, "
"it cannot be used for an array"))
return []
pls = list()