From 9640ff94232e0104722c83df6fb236594f4d9402 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Sat, 9 Feb 2019 19:52:52 -0200 Subject: [PATCH] Draft: Fix for translation --- src/Mod/Draft/Draft.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Draft/Draft.py b/src/Mod/Draft/Draft.py index 58c7ab87e8..396a00c2c2 100644 --- a/src/Mod/Draft/Draft.py +++ b/src/Mod/Draft/Draft.py @@ -1618,13 +1618,13 @@ def filterObjectsForModifiers(objects, isCopied=False): if parent.isDerivedFrom("Part::Feature"): parents.append(parent.Name) if len(parents) > 1: - warningMessage = object.Name+" shares a base with {} other objects. Please check if you want to modify this.".format(len(parents) - 1) + warningMessage = translate("draft","%s shares a base with %d other objects. Please check if you want to modify this.") % (object.Name,len(parents) - 1) FreeCAD.Console.PrintError(warningMessage) if FreeCAD.GuiUp: FreeCADGui.getMainWindow().showMessage(warningMessage, 0) filteredObjects.append(object.Base) elif hasattr(object,"Placement") and object.getEditorMode("Placement") == ["ReadOnly"] and not isCopied: - FreeCAD.Console.PrintError(obj.Name+" cannot be modified because its placement is readonly.") + FreeCAD.Console.PrintError(translate("%s cannot be modified because its placement is readonly.") % obj.Name) continue else: filteredObjects.append(object)