1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01:00

TranslatableString for names, labels, tooltips of wxPanelWrapper...

... and Grabber too
This commit is contained in:
Paul Licameli
2019-12-07 21:00:39 -05:00
parent 53ee9c9800
commit 681950fc61
56 changed files with 204 additions and 140 deletions

View File

@@ -271,7 +271,8 @@ void CellularPanel::HandleMotion
auto oldCell = state.mLastCell.lock();
auto oldHandle = Target();
wxString status{}, tooltip{};
wxString status{};
TranslatableString tooltip{};
wxCursor *pCursor{};
unsigned refreshCode = 0;
@@ -373,7 +374,7 @@ void CellularPanel::HandleMotion
UpdateStatusMessage(status);
#if wxUSE_TOOLTIPS
if (tooltip != GetToolTipText()) {
if (tooltip.Translation() != GetToolTipText()) {
// Unset first, by analogy with AButton
UnsetToolTip();
SetToolTip(tooltip);