From 8ed0edd599a96b80045db2e435bf8f9f807a4bec Mon Sep 17 00:00:00 2001 From: James Crook Date: Fri, 31 Aug 2018 22:51:20 +0100 Subject: [PATCH] Fix two problems with Nyquist translation. 1. The 'Select a File' button (which comes from wxFileSelectorPrompt) was not being translated. 2. rhythmtrack.ny was missing an (_ ) on one string. --- plug-ins/rhythmtrack.ny | 2 +- src/effects/nyquist/Nyquist.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/plug-ins/rhythmtrack.ny b/plug-ins/rhythmtrack.ny index 2a049b269..072bba011 100644 --- a/plug-ins/rhythmtrack.ny +++ b/plug-ins/rhythmtrack.ny @@ -26,7 +26,7 @@ $control timesig (_ "Beats per bar") int (_ "1 - 20 beats/measure") 4 1 20 $control swing (_ "Swing amount") float (_ "+/- 1") 0 -1 1 $control text (_ "Set 'Number of bars' to zero to enable the 'Rhythm track duration'.") $control bars (_ "Number of bars") int (_ "1 - 1000 bars") 16 0 1000 -$control click-track-dur (_ "Rhythm track duration") time "Used if 'Number of bars' = 0" 0 0 nil +$control click-track-dur (_ "Rhythm track duration") time (_ "Used if 'Number of bars' = 0") 0 0 nil $control offset (_ "Start time offset") time (_ "Silence before first beat") 0 0 nil $control click-type (_ "Beat sound") choice (("Metronome" (_ "Metronome Tick")) (_ "Ping (short)") diff --git a/src/effects/nyquist/Nyquist.cpp b/src/effects/nyquist/Nyquist.cpp index f638800f4..94069695d 100644 --- a/src/effects/nyquist/Nyquist.cpp +++ b/src/effects/nyquist/Nyquist.cpp @@ -2705,7 +2705,8 @@ void NyquistEffect::BuildEffectWindow(ShuttleGui & S) item->SetName(prompt); if (ctrl.label == wxEmptyString) - ctrl.label = wxFileSelectorPromptStr; + // We'd expect wxFileSelectorPromptStr to already be translated, but apparently not. + ctrl.label = wxGetTranslation( wxFileSelectorPromptStr ); S.Id(ID_FILE + i).AddButton(ctrl.label, wxALIGN_LEFT); } else