From 672d8796536a82ce34d0475d0d7837cc53f41f39 Mon Sep 17 00:00:00 2001 From: Chris Hennes Date: Mon, 4 Mar 2024 22:12:39 -0600 Subject: [PATCH] Gui: Fix translation strings for Part, Group, and Link Extra HTML tags were added outside the translation NOOP. They were unnecessary, and broke translation. --- src/Gui/CommandLink.cpp | 9 +++------ src/Gui/CommandStructure.cpp | 20 ++++++-------------- 2 files changed, 9 insertions(+), 20 deletions(-) diff --git a/src/Gui/CommandLink.cpp b/src/Gui/CommandLink.cpp index 41dc31c699..d5243d5d91 100644 --- a/src/Gui/CommandLink.cpp +++ b/src/Gui/CommandLink.cpp @@ -208,12 +208,9 @@ StdCmdLinkMake::StdCmdLinkMake() { sGroup = "Link"; sMenuText = QT_TR_NOOP("Make link"); - static std::string toolTip = std::string("

") - + QT_TR_NOOP("A Link is an object that references or links to another object in the same " - "document, or in another document.Unlike Clones, Links reference the original Shape directly, " - " making them more memory efficient which helps with the creation of complex assemblies.") - + "

"; - sToolTipText = toolTip.c_str(); + sToolTipText = QT_TR_NOOP("A Link is an object that references or links to another object in the same document, " + "or in another document. Unlike Clones, Links reference the original Shape directly, " + "making them more memory-efficient, which helps with the creation of complex assemblies."); sWhatsThis = "Std_LinkMake"; sStatusTip = sToolTipText; eType = AlterDoc; diff --git a/src/Gui/CommandStructure.cpp b/src/Gui/CommandStructure.cpp index d586d909ae..fdb68d1fca 100644 --- a/src/Gui/CommandStructure.cpp +++ b/src/Gui/CommandStructure.cpp @@ -49,13 +49,9 @@ StdCmdPart::StdCmdPart() { sGroup = "Structure"; sMenuText = QT_TR_NOOP("Create part"); - static std::string toolTip = std::string("

") - + QT_TR_NOOP("A Part is is a general purpose container to keep together a " - "group of objects so that they act as a unit in the 3D view.\n" - "It is meant to arrange objects that have a Part TopoShape, like Part Primitives, PartDesign" - " Bodies, and other Parts.") - + "

"; - sToolTipText = toolTip.c_str(); + sToolTipText = QT_TR_NOOP("A Part is a general purpose container to keep together a group of objects so that they " + "act as a unit in the 3D view. It is meant to arrange objects that have a Part " + "TopoShape, like Part Primitives, PartDesign Bodies, and other Parts."); sWhatsThis = "Std_Part"; sStatusTip = sToolTipText; sPixmap = "Geofeaturegroup"; @@ -96,13 +92,9 @@ StdCmdGroup::StdCmdGroup() { sGroup = "Structure"; sMenuText = QT_TR_NOOP("Create group"); - static std::string toolTip = std::string("

") - + QT_TR_NOOP("A Group is a general purpose container to group objects in the " - "Tree view, regardless of their data type. It is a simple folder to organize " - "the objects in a model.") - + "

"; - - sToolTipText = toolTip.c_str(); + sToolTipText = QT_TR_NOOP("A Group is a general purpose container to group objects in the " + "Tree view, regardless of their data type. It is a simple folder to organize " + "the objects in a model."); sWhatsThis = "Std_Group"; sStatusTip = sToolTipText; sPixmap = "folder";