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.
This commit is contained in:
James Crook 2018-08-31 22:51:20 +01:00
parent af276ac4f9
commit 8ed0edd599
2 changed files with 3 additions and 2 deletions

View File

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

View File

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