1
0
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:
Paul Licameli
2017-09-11 21:11:42 -04:00
parent 954a974422
commit 731a2ac40c
6 changed files with 37 additions and 25 deletions

View File

@@ -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);
}

View File

@@ -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);