Improve tooltips and remove the html from the translate.

This commit is contained in:
Paddle
2023-09-20 15:33:35 +02:00
parent 5dc8c42e95
commit a515bd0244
3 changed files with 30 additions and 20 deletions

View File

@@ -206,11 +206,12 @@ StdCmdLinkMake::StdCmdLinkMake()
{
sGroup = "Link";
sMenuText = QT_TR_NOOP("Make link");
sToolTipText = QT_TR_NOOP("<p>An App::Link is a type of object that references or links"
" to another object, in the same document, or in another document. Unlike Clones, Link"
" references directly the original Shape, so it is more memory efficient which helps "
"with the creation of complex assemblies from smaller subassemblies, and from multiple"
" reusable components like screws, nuts, and similar fasteners.</p>");
static std::string toolTip = std::string("<p>")
+ 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.")
+ "</p>";
sToolTipText = toolTip.c_str();
sWhatsThis = "Std_LinkMake";
sStatusTip = sToolTipText;
eType = AlterDoc;

View File

@@ -49,11 +49,13 @@ StdCmdPart::StdCmdPart()
{
sGroup = "Structure";
sMenuText = QT_TR_NOOP("Create part");
sToolTipText = QT_TR_NOOP("<p>An App::Part is is a general purpose container that keeps together a "
"group of objects so that they can be moved together 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 Part Features. In addition, Std Parts may be nested inside other"
" Std Parts to create a big assembly from smaller sub-assemblies.</p>");
static std::string toolTip = std::string("<p>")
+ 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.")
+ "</p>";
sToolTipText = toolTip.c_str();
sWhatsThis = "Std_Part";
sStatusTip = sToolTipText;
sPixmap = "Geofeaturegroup";
@@ -94,10 +96,13 @@ StdCmdGroup::StdCmdGroup()
{
sGroup = "Structure";
sMenuText = QT_TR_NOOP("Create group");
sToolTipText = QT_TR_NOOP("<p>Group is a general purpose container that allows you to "
"group different types of objects in the Tree view, regardless of their data type. "
"It is used as a simple folder to categorize and organize the objects in your model, "
"in order to keep a logical structure. Std Groups may be nested inside other Std Groups.</p>");
static std::string toolTip = std::string("<p>")
+ 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.")
+ "</p>";
sToolTipText = toolTip.c_str();
sWhatsThis = "Std_Group";
sStatusTip = sToolTipText;
sPixmap = "folder";

View File

@@ -3578,9 +3578,11 @@ StdCmdSelBack::StdCmdSelBack()
{
sGroup = "View";
sMenuText = QT_TR_NOOP("Selection Back");
sToolTipText = QT_TR_NOOP("<p>The Std SelBack command restores the previous"
" recorded Tree view selection. Note that selections are only recorded if"
" Tree RecordSelection mode is switched on.</p>");
static std::string toolTip = std::string("<p>")
+ QT_TR_NOOP("Restore the previous Tree view selection. "
"Only works if Tree RecordSelection mode is switched on.")
+ "</p>";
sToolTipText = toolTip.c_str();
sWhatsThis = "Std_SelBack";
sStatusTip = sToolTipText;
sPixmap = "sel-back";
@@ -3610,9 +3612,11 @@ StdCmdSelForward::StdCmdSelForward()
{
sGroup = "View";
sMenuText = QT_TR_NOOP("Selection Forward");
sToolTipText = QT_TR_NOOP("<p>The Std SelForward command restores the next "
"recorded Tree view selection. Note that selections are only recorded if "
"Tree RecordSelection mode is switched on.</p>");
static std::string toolTip = std::string("<p>")
+ QT_TR_NOOP("Restore the next Tree view selection. "
"Only works if Tree RecordSelection mode is switched on.")
+ "</p>";
sToolTipText = toolTip.c_str();
sWhatsThis = "Std_SelForward";
sStatusTip = sToolTipText;
sPixmap = "sel-forward";