1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-17 17:17:40 +02:00

fix a number of small language idosyncracies to give more idomatic usage. Make sure that spacing and capitalisation is consistent, at least within this effect and compared to a selection of our other effects

This commit is contained in:
richardash1981 2012-06-10 16:24:37 +00:00
parent 519bfb2268
commit fa2aefcfee
2 changed files with 7 additions and 7 deletions

View File

@ -5,7 +5,7 @@ Audacity: A Digital Audio Editor
Paulstretch.cpp Paulstretch.cpp
Nasca Octavian Paul Nasca Octavian Paul
Some GUI code was took from Echo effect Some GUI code was taken from the Echo effect
*******************************************************************/ *******************************************************************/
@ -52,7 +52,7 @@ EffectPaulstretch::EffectPaulstretch(){
wxString EffectPaulstretch::GetEffectDescription(){ wxString EffectPaulstretch::GetEffectDescription(){
// Note: This is useful only after values have been set. // Note: This is useful only after values have been set.
return wxString::Format(_("Applied effect: %s amount= %f times, time resolution = %f seconds"), return wxString::Format(_("Applied effect: %s stretch factor = %f times, time resolution = %f seconds"),
this->GetEffectName().c_str(), amount,time_resolution); this->GetEffectName().c_str(), amount,time_resolution);
}; };
@ -74,7 +74,7 @@ bool EffectPaulstretch::PromptUser(){
}; };
bool EffectPaulstretch::TransferParameters(Shuttle &shuttle){ bool EffectPaulstretch::TransferParameters(Shuttle &shuttle){
shuttle.TransferFloat(wxT("Amount"),amount,10.0); shuttle.TransferFloat(wxT("Stretch Factor"),amount,10.0);
shuttle.TransferFloat(wxT("Time Resolution"),time_resolution,0.25); shuttle.TransferFloat(wxT("Time Resolution"),time_resolution,0.25);
return true; return true;
@ -163,7 +163,7 @@ bool EffectPaulstretch::ProcessOne(WaveTrack *track,double t0,double t1,int coun
m_t1=mT1; m_t1=mT1;
if (len<=(stretch_buf_size*2+1)){//error because the selection is too short if (len<=(stretch_buf_size*2+1)){//error because the selection is too short
::wxMessageBox(_("Error on Paulstretch:\nThe selection is too small.\n It must be much larger than Time Resolution value.")); ::wxMessageBox(_("Error on Paulstretch:\nThe selection is too short.\n It must be much longer than the Time Resolution."));
return false; return false;
}; };
@ -423,10 +423,10 @@ void PaulstretchDialog::PopulateOrExchange(ShuttleGui & S){
S.EndHorizontalLay(); S.EndHorizontalLay();
S.StartMultiColumn(2, wxALIGN_CENTER); S.StartMultiColumn(2, wxALIGN_CENTER);
{ {
m_pTextCtrl_Amount = S.AddTextBox(_("Stretch amount:"),wxT("10.0"),10); m_pTextCtrl_Amount = S.AddTextBox(_("Stretch Factor:"),wxT("10.0"),10);
m_pTextCtrl_Amount->SetValidator(wxTextValidator(wxFILTER_NUMERIC)); m_pTextCtrl_Amount->SetValidator(wxTextValidator(wxFILTER_NUMERIC));
m_pTextCtrl_TimeResolution= S.AddTextBox(_("Time resolution(seconds):"), wxT("0.25"),10); m_pTextCtrl_TimeResolution= S.AddTextBox(_("Time Resolution (seconds):"), wxT("0.25"),10);
m_pTextCtrl_TimeResolution->SetValidator(wxTextValidator(wxFILTER_NUMERIC)); m_pTextCtrl_TimeResolution->SetValidator(wxTextValidator(wxFILTER_NUMERIC));
} }
S.EndMultiColumn(); S.EndMultiColumn();

View File

@ -27,7 +27,7 @@ class EffectPaulstretch:public Effect{
} }
virtual wxString GetEffectAction() { virtual wxString GetEffectAction() {
return wxString(_("Paulstretch")); return wxString(_("Stretching with Paulstretch"));
} }
// Useful only after PromptUser values have been set. // Useful only after PromptUser values have been set.