From 63c7d47378a298dd0eacd5b1f1185939d15eafc1 Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Thu, 2 Jun 2016 11:22:42 -0400 Subject: [PATCH] A certain string does not need translation --- src/widgets/Ruler.cpp | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/widgets/Ruler.cpp b/src/widgets/Ruler.cpp index db55268b5..a28e84912 100644 --- a/src/widgets/Ruler.cpp +++ b/src/widgets/Ruler.cpp @@ -2767,18 +2767,20 @@ void AdornedRulerPanel::OnContextMenu(wxContextMenuEvent & WXUNUSED(event)) void AdornedRulerPanel::UpdateButtonStates() { - bool state = PlaybackPrefs::GetPinnedHeadPreference(); - auto pinButton = static_cast(FindWindow(OnTogglePinnedStateID)); - pinButton->PopUp(); - pinButton->SetAlternateIdx(state ? 0 : 1); - const auto label = state + { + bool state = PlaybackPrefs::GetPinnedHeadPreference(); + auto pinButton = static_cast(FindWindow(OnTogglePinnedStateID)); + pinButton->PopUp(); + pinButton->SetAlternateIdx(state ? 0 : 1); + const auto label = state // Label descibes the present state, not what the click does // (which is, to toggle the state) ? _("Pinned play/record Head") : _("Unpinned play/record Head"); - const auto &fullLabel = ComposeButtonLabel(*mProject, _("PinnedHead"), label); - pinButton->SetLabel(fullLabel); - pinButton->SetToolTip(fullLabel); + const auto &fullLabel = ComposeButtonLabel(*mProject, wxT("PinnedHead"), label); + pinButton->SetLabel(fullLabel); + pinButton->SetToolTip(fullLabel); + } } void AdornedRulerPanel::OnTogglePinnedState(wxCommandEvent & event)