Draft: Remove trailing spaces from translations

This commit is contained in:
Chris Hennes
2024-03-12 22:41:44 -05:00
parent 830c59b2e6
commit 7b07447cce
4 changed files with 9 additions and 12 deletions

View File

@@ -705,8 +705,8 @@ def compare_objects(obj1, obj2):
elif p == "Placement":
delta = obj1.Placement.Base.sub(obj2.Placement.Base)
text = translate("draft", "Objects have different placements. "
"Distance between the two base points: ")
_msg(text + str(delta.Length))
"Distance between the two base points:")
_msg(text + " " + str(delta.Length))
else:
if getattr(obj1, p) != getattr(obj2, p):
_msg("'{}' ".format(p) + translate("draft", "has a different value"))
@@ -1106,11 +1106,8 @@ def use_instead(function, version=""):
then we should not give a version.
"""
if version:
_wrn(translate("draft", "This function will be deprecated in ")
+ "{}. ".format(version)
+ translate("draft", "Please use ") + "'{}'.".format(function))
_wrn(translate("draft", "This function will be deprecated in {}. Please use '{}'.") .format(version, function))
else:
_wrn(translate("draft", "This function will be deprecated. ")
+ translate("draft", "Please use ") + "'{}'.".format(function))
_wrn(translate("draft", "This function will be deprecated. Please use '{}'.") .format(function))
## @}