From 847ae47497964a4b258472eff46f7a4869a4cb99 Mon Sep 17 00:00:00 2001 From: Chris Hennes Date: Sat, 29 Apr 2023 13:03:02 -0500 Subject: [PATCH] Gui: Adjust tooltips for improved translation Tooltips should not be identical to the command menu entry, it prevents translators from translating them separately. --- src/Gui/CommandDoc.cpp | 4 ++-- src/Gui/CommandFeat.cpp | 4 ++-- src/Gui/CommandLink.cpp | 4 ++-- src/Gui/CommandMacro.cpp | 12 ++++++------ src/Gui/CommandTest.cpp | 4 ++-- src/Gui/CommandView.cpp | 28 ++++++++++++++-------------- src/Gui/CommandWindow.cpp | 2 +- 7 files changed, 29 insertions(+), 29 deletions(-) diff --git a/src/Gui/CommandDoc.cpp b/src/Gui/CommandDoc.cpp index 75dd9cb316..adb54d64ff 100644 --- a/src/Gui/CommandDoc.cpp +++ b/src/Gui/CommandDoc.cpp @@ -1688,9 +1688,9 @@ public: { sGroup = "Edit"; sMenuText = QT_TR_NOOP("Expression actions"); - sToolTipText = QT_TR_NOOP("Expression actions"); + sToolTipText = QT_TR_NOOP("Actions that apply to expressions"); sWhatsThis = "Std_Expressions"; - sStatusTip = QT_TR_NOOP("Expression actions"); + sStatusTip = QT_TR_NOOP("Actions that apply to expressions"); eType = ForEdit; } diff --git a/src/Gui/CommandFeat.cpp b/src/Gui/CommandFeat.cpp index 8d19c41a7a..d8b5cf1543 100644 --- a/src/Gui/CommandFeat.cpp +++ b/src/Gui/CommandFeat.cpp @@ -76,9 +76,9 @@ StdCmdRandomColor::StdCmdRandomColor() { sGroup = "File"; sMenuText = QT_TR_NOOP("Random color"); - sToolTipText = QT_TR_NOOP("Random color"); + sToolTipText = QT_TR_NOOP("Set each selected object to a randomly-selected color"); sWhatsThis = "Std_RandomColor"; - sStatusTip = QT_TR_NOOP("Random color"); + sStatusTip = QT_TR_NOOP("Set each selected object to a randomly-selected color"); sPixmap = "Std_RandomColor"; } diff --git a/src/Gui/CommandLink.cpp b/src/Gui/CommandLink.cpp index 6769641e7a..cc4f70081c 100644 --- a/src/Gui/CommandLink.cpp +++ b/src/Gui/CommandLink.cpp @@ -872,9 +872,9 @@ public: { sGroup = "View"; sMenuText = QT_TR_NOOP("Link actions"); - sToolTipText = QT_TR_NOOP("Link actions"); + sToolTipText = QT_TR_NOOP("Actions that apply to link objects"); sWhatsThis = "Std_LinkMakeRelative"; - sStatusTip = QT_TR_NOOP("Link actions"); + sStatusTip = QT_TR_NOOP("Actions that apply to link objects"); eType = AlterDoc; bCanLog = false; diff --git a/src/Gui/CommandMacro.cpp b/src/Gui/CommandMacro.cpp index 9313191e55..5d5da00aed 100644 --- a/src/Gui/CommandMacro.cpp +++ b/src/Gui/CommandMacro.cpp @@ -238,9 +238,9 @@ StdCmdMacroStepOver::StdCmdMacroStepOver() { sGroup = "Macro"; sMenuText = QT_TR_NOOP("Step over"); - sToolTipText = QT_TR_NOOP("Step over"); + sToolTipText = QT_TR_NOOP("Step to the next line in this file"); sWhatsThis = "Std_MacroStepOver"; - sStatusTip = QT_TR_NOOP("Step over"); + sStatusTip = QT_TR_NOOP("Step to the next line in this file"); sPixmap = nullptr; sAccel = "F10"; eType = 0; @@ -265,9 +265,9 @@ StdCmdMacroStepInto::StdCmdMacroStepInto() { sGroup = "Macro"; sMenuText = QT_TR_NOOP("Step into"); - sToolTipText = QT_TR_NOOP("Step into"); + sToolTipText = QT_TR_NOOP("Step to the next line executed"); //sWhatsThis = "Std_MacroStepOver"; - sStatusTip = QT_TR_NOOP("Step into"); + sStatusTip = QT_TR_NOOP("Step to the next line executed"); sPixmap = nullptr; sAccel = "F11"; eType = 0; @@ -292,9 +292,9 @@ StdCmdToggleBreakpoint::StdCmdToggleBreakpoint() { sGroup = "Macro"; sMenuText = QT_TR_NOOP("Toggle breakpoint"); - sToolTipText = QT_TR_NOOP("Toggle breakpoint"); + sToolTipText = QT_TR_NOOP("Add or remove a breakpoint at this position"); sWhatsThis = "Std_ToggleBreakpoint"; - sStatusTip = QT_TR_NOOP("Toggle breakpoint"); + sStatusTip = QT_TR_NOOP("Add or remove a breakpoint at this position"); sPixmap = nullptr; sAccel = "F9"; eType = 0; diff --git a/src/Gui/CommandTest.cpp b/src/Gui/CommandTest.cpp index b70bc59862..5e867f94da 100644 --- a/src/Gui/CommandTest.cpp +++ b/src/Gui/CommandTest.cpp @@ -715,8 +715,8 @@ CmdTestConsoleOutput::CmdTestConsoleOutput() { sGroup = "Standard-Test"; sMenuText = QT_TR_NOOP("Test console output"); - sToolTipText= QT_TR_NOOP("Test console output"); - sStatusTip = QT_TR_NOOP("Test console output"); + sToolTipText= QT_TR_NOOP("Run test cases to verify console messages"); + sStatusTip = QT_TR_NOOP("Run test cases to verify console messages"); } namespace Gui { diff --git a/src/Gui/CommandView.cpp b/src/Gui/CommandView.cpp index 5669c844c3..15841a9505 100644 --- a/src/Gui/CommandView.cpp +++ b/src/Gui/CommandView.cpp @@ -2105,8 +2105,8 @@ StdCmdAxisCross::StdCmdAxisCross() { sGroup = "Standard-View"; sMenuText = QT_TR_NOOP("Toggle axis cross"); - sToolTipText = QT_TR_NOOP("Toggle axis cross"); - sStatusTip = QT_TR_NOOP("Toggle axis cross"); + sToolTipText = QT_TR_NOOP("Turns on or off the axis cross at the origin"); + sStatusTip = QT_TR_NOOP("Turns on or off the axis cross at the origin"); sWhatsThis = "Std_AxisCross"; sPixmap = "Std_AxisCross"; sAccel = "A,C"; @@ -2428,9 +2428,9 @@ StdViewZoomIn::StdViewZoomIn() { sGroup = "Standard-View"; sMenuText = QT_TR_NOOP("Zoom In"); - sToolTipText = QT_TR_NOOP("Zoom In"); + sToolTipText = QT_TR_NOOP("Increase the zoom factor by a fixed amount"); sWhatsThis = "Std_ViewZoomIn"; - sStatusTip = QT_TR_NOOP("Zoom In"); + sStatusTip = QT_TR_NOOP("Increase the zoom factor by a fixed amount"); sPixmap = "zoom-in"; sAccel = keySequenceToAccel(QKeySequence::ZoomIn); eType = Alter3DView; @@ -2457,9 +2457,9 @@ StdViewZoomOut::StdViewZoomOut() { sGroup = "Standard-View"; sMenuText = QT_TR_NOOP("Zoom Out"); - sToolTipText = QT_TR_NOOP("Zoom Out"); + sToolTipText = QT_TR_NOOP("Decrease the zoom factor by a fixed amount"); sWhatsThis = "Std_ViewZoomOut"; - sStatusTip = QT_TR_NOOP("Zoom Out"); + sStatusTip = QT_TR_NOOP("Decrease the zoom factor by a fixed amount"); sPixmap = "zoom-out"; sAccel = keySequenceToAccel(QKeySequence::ZoomOut); eType = Alter3DView; @@ -2623,9 +2623,9 @@ StdViewBoxZoom::StdViewBoxZoom() { sGroup = "Standard-View"; sMenuText = QT_TR_NOOP("Box zoom"); - sToolTipText = QT_TR_NOOP("Box zoom"); + sToolTipText = QT_TR_NOOP("Activate the box zoom tool"); sWhatsThis = "Std_ViewBoxZoom"; - sStatusTip = QT_TR_NOOP("Box zoom"); + sStatusTip = QT_TR_NOOP("Activate the box zoom tool"); sPixmap = "zoom-border"; sAccel = "Ctrl+B"; eType = Alter3DView; @@ -2693,9 +2693,9 @@ StdBoxSelection::StdBoxSelection() { sGroup = "Standard-View"; sMenuText = QT_TR_NOOP("Box selection"); - sToolTipText = QT_TR_NOOP("Box selection"); + sToolTipText = QT_TR_NOOP("Activate the box selection tool"); sWhatsThis = "Std_BoxSelection"; - sStatusTip = QT_TR_NOOP("Box selection"); + sStatusTip = QT_TR_NOOP("Activate the box selection tool"); sPixmap = "edit-select-box"; sAccel = "Shift+B"; eType = AlterSelection; @@ -3123,9 +3123,9 @@ StdCmdMeasureDistance::StdCmdMeasureDistance() { sGroup = "View"; sMenuText = QT_TR_NOOP("Measure distance"); - sToolTipText = QT_TR_NOOP("Measure distance"); + sToolTipText = QT_TR_NOOP("Activate the distance measurement tool"); sWhatsThis = "Std_MeasureDistance"; - sStatusTip = QT_TR_NOOP("Measure distance"); + sStatusTip = QT_TR_NOOP("Activate the distance measurement tool"); sPixmap = "view-measurement"; eType = Alter3DView; } @@ -3302,7 +3302,7 @@ CmdViewMeasureClearAll::CmdViewMeasureClearAll() { sGroup = "Measure"; sMenuText = QT_TR_NOOP("Clear measurement"); - sToolTipText = QT_TR_NOOP("Clear measurement"); + sToolTipText = QT_TR_NOOP("Clear all visible measurements"); sWhatsThis = "View_Measure_Clear_All"; sStatusTip = sToolTipText; sPixmap = "Part_Measure_Clear_All"; @@ -3332,7 +3332,7 @@ CmdViewMeasureToggleAll::CmdViewMeasureToggleAll() { sGroup = "Measure"; sMenuText = QT_TR_NOOP("Toggle measurement"); - sToolTipText = QT_TR_NOOP("Toggle measurement"); + sToolTipText = QT_TR_NOOP("Turn on or off the display of all measurements"); sWhatsThis = "View_Measure_Toggle_All"; sStatusTip = sToolTipText; sPixmap = "Part_Measure_Toggle_All"; diff --git a/src/Gui/CommandWindow.cpp b/src/Gui/CommandWindow.cpp index 91df2ffce8..a2adf626a9 100644 --- a/src/Gui/CommandWindow.cpp +++ b/src/Gui/CommandWindow.cpp @@ -414,7 +414,7 @@ StdCmdWindowsMenu::StdCmdWindowsMenu() : Command("Std_WindowsMenu") { sGroup = "Window"; - sMenuText = QT_TR_NOOP("Activates this window"); + sMenuText = QT_TR_NOOP("Activate window"); // Replaced with the name of the window sToolTipText = QT_TR_NOOP("Activates this window"); sWhatsThis = "Std_WindowsMenu"; sStatusTip = QT_TR_NOOP("Activates this window");