Merge pull request #4557 from luzpaz/crowdin/whitespaces-substituted-into-code

Crowdin: represent whitespace in code instead of in string
This commit is contained in:
Yorik van Havre
2021-05-05 17:18:35 +02:00
committed by GitHub
17 changed files with 38 additions and 46 deletions

View File

@@ -930,8 +930,8 @@ class Edit(gui_base_original.Modifier):
selection = Gui.Selection.getSelection()
self.edited_objects = []
if len(selection) > self.maxObjects:
_err = translate("draft", "Too many objects selected, max number set to: ")
App.Console.PrintMessage(_err + str(self.maxObjects) + "\n")
_err = translate("draft", "Too many objects selected, max number set to:")
App.Console.PrintMessage(_err + " " + str(self.maxObjects) + "\n")
return None
for obj in selection:

View File

@@ -329,10 +329,12 @@ class Scale(gui_base_original.Modifier):
bads.append(obj)
if bads:
if len(bads) == 1:
m = translate("draft", "Unable to scale object: ")
m = translate("draft", "Unable to scale object:")
m += " "
m += bads[0].Label
else:
m = translate("draft", "Unable to scale objects: ")
m = translate("draft", "Unable to scale objects:")
m += " "
m += ", ".join([o.Label for o in bads])
m += " - " + translate("draft","This object type cannot be scaled directly. Please use the clone method.")
_err(m)