mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-09 06:06:24 +01:00
Fix format of tooltip text for toolbar buttons in RTL languages...
... No translatable strings were added, two were removed
This commit is contained in:
@@ -832,7 +832,7 @@ void ToolBar::MakeAlternateImages(AButton &button, int idx,
|
||||
}
|
||||
|
||||
void ToolBar::SetButtonToolTip
|
||||
(AButton &button, const std::vector<wxString> &commands, const wxString &separator)
|
||||
(AButton &button, const std::vector<wxString> &commands)
|
||||
{
|
||||
wxString result;
|
||||
const auto project = GetActiveProject();
|
||||
@@ -840,7 +840,7 @@ void ToolBar::SetButtonToolTip
|
||||
project ? project->GetCommandManager() : nullptr;
|
||||
if (commandManager)
|
||||
result =
|
||||
commandManager->DescribeCommandsAndShortcuts(commands, separator);
|
||||
commandManager->DescribeCommandsAndShortcuts(commands);
|
||||
button.SetToolTip(result);
|
||||
}
|
||||
|
||||
|
||||
@@ -161,9 +161,7 @@ class ToolBar /* not final */ : public wxPanelWrapper
|
||||
// non-user-visible command names. If a shortcut key is defined
|
||||
// for the command, then it is appended, parenthesized, after the
|
||||
// user-visible string.
|
||||
const std::vector<wxString> &commands,
|
||||
// If more than one pair of strings is given, then use this separator.
|
||||
const wxString &separator = wxT(" / "));
|
||||
const std::vector<wxString> &commands);
|
||||
|
||||
protected:
|
||||
void SetButton(bool down, AButton *button);
|
||||
|
||||
Reference in New Issue
Block a user