From b4d799b0edd9a938478a84edcbd004ec1f13d49d Mon Sep 17 00:00:00 2001 From: PaddleStroke Date: Mon, 25 Aug 2025 16:38:33 +0200 Subject: [PATCH] Assembly: Fix untranslatable string in CommandInsertNewPart.py (#23355) * Assembly: Fix untranslatable string in CommandInsertNewPart.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- src/Mod/Assembly/CommandInsertNewPart.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Mod/Assembly/CommandInsertNewPart.py b/src/Mod/Assembly/CommandInsertNewPart.py index f99fecda01..212c887832 100644 --- a/src/Mod/Assembly/CommandInsertNewPart.py +++ b/src/Mod/Assembly/CommandInsertNewPart.py @@ -133,7 +133,10 @@ class TaskAssemblyNewPart(JointObject.TaskAssemblyCreateJoint): msgBox = QtWidgets.QMessageBox() msgBox.setIcon(QtWidgets.QMessageBox.Warning) msgBox.setText( - "If the new document is not saved the new part cannot be linked in the assembly." + translate( + "Assembly", + "If the new document is not saved the new part cannot be linked in the assembly.", + ) ) msgBox.setWindowTitle(translate("Assembly", "Save Document")) saveButton = msgBox.addButton(