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 f1032b47d4
commit a9cd5a4982
89 changed files with 415 additions and 420 deletions

View File

@@ -122,12 +122,12 @@ def make_arc_3points(points, placement=None, face=False,
utils.type_check([(points, (list, tuple))], name=_name)
except TypeError:
_err(translate("draft","Points:") + " {}".format(points))
_err(translate("draft","Wrong input: must be list or tuple of three points exactly."))
_err(translate("draft","Wrong input: must be a list or tuple of 3 points exactly."))
return None
if len(points) != 3:
_err(translate("draft","Points:") + " {}".format(points))
_err(translate("draft","Wrong input: must be list or tuple of three points exactly."))
_err(translate("draft","Wrong input: must be list or tuple of 3 points exactly."))
return None
if placement is not None:

View File

@@ -80,7 +80,7 @@ def make_bspline(pointslist, closed=False, placement=None, face=None, support=No
if len(pointslist) > 2:
closed = True
pointslist.pop()
_err = "Draft.make_bspline: Equal endpoints forced Closed"
_err = "Draft.make_bspline: Equal endpoints forced closed"
App.Console.PrintWarning(translate("Draft", _err) + _err + "\n")
else:
# len == 2 and first == last GIGO

View File

@@ -367,7 +367,7 @@ def make_linear_dimension_obj(edge_object, i1=1, i2=2, dim_line=None):
return None
if (not hasattr(edge_object.Shape, "Vertexes")
or len(edge_object.Shape.Vertexes) < 1):
_err(translate("draft","Wrong input: object doesn't have at least one element in 'Vertexes' to use for measuring."))
_err(translate("draft","Wrong input: object does not have at least 1 element in 'Vertexes' to use for measuring."))
return None
try:

View File

@@ -71,12 +71,12 @@ def _preprocess(objs, radius, chamfer):
edges.append(shape.Edges[0])
if len(edges) != 2:
_err(translate("draft", "Two edges are needed."))
_err(translate("draft", "2 edges are needed"))
return None, None
edges = DraftGeomUtils.fillet(edges, radius, chamfer)
if len(edges) < 3:
_err(translate("draft", "Edges are not connected or radius is too large."))
_err(translate("draft", "Edges are not connected or radius is too large"))
return None, None
return edges, del_objs

View File

@@ -97,7 +97,7 @@ def make_sketch(objects_list, autoconstraints=False, addTo=None,
if not DraftGeomUtils.is_planar(shape, tol):
App.Console.PrintError(translate("draft",
"All Shapes must be planar") + "\n")
"All shapes must be planar") + "\n")
return None
if DraftGeomUtils.get_normal(shape, tol):
@@ -113,7 +113,7 @@ def make_sketch(objects_list, autoconstraints=False, addTo=None,
for shape in shapes_list[1:]:
if not DraftGeomUtils.are_coplanar(shapes_list[0], shape, tol):
App.Console.PrintError(translate("draft",
"All Shapes must be coplanar") + "\n")
"All shapes must be coplanar") + "\n")
return None
# define sketch normal
normal = DraftGeomUtils.get_normal(shapes_list[0], tol)
@@ -130,7 +130,7 @@ def make_sketch(objects_list, autoconstraints=False, addTo=None,
else:
if not DraftGeomUtils.is_planar(poly, tol):
App.Console.PrintError(translate("draft",
"All Shapes must be coplanar") + "\n")
"All shapes must be coplanar") + "\n")
return None
normal = DraftGeomUtils.get_shape_normal(poly)
else: