From 7f8a09ea1e28da72f11c6886405fd25c36ec29ae Mon Sep 17 00:00:00 2001 From: richardash1981 Date: Sun, 10 Jun 2012 16:38:29 +0000 Subject: [PATCH] add some i18n-hint comments to the strings where the translation doesn't see (to me) to be obvious. This will probably get better when the effect has a manual entry, and with translator feedback. --- src/effects/Paulstretch.cpp | 9 ++++++++- src/effects/Paulstretch.h | 9 +++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/src/effects/Paulstretch.cpp b/src/effects/Paulstretch.cpp index 545a28c34..a2414c93b 100644 --- a/src/effects/Paulstretch.cpp +++ b/src/effects/Paulstretch.cpp @@ -163,7 +163,10 @@ bool EffectPaulstretch::ProcessOne(WaveTrack *track,double t0,double t1,int coun m_t1=mT1; if (len<=(stretch_buf_size*2+1)){//error because the selection is too short - ::wxMessageBox(_("Error on Paulstretch:\nThe selection is too short.\n It must be much longer than the Time Resolution.")); + /* i18n-hint: This is an effect error message, for the effect named Paulstretch. + * Time Resolution is a parameter of the effect, the translation should match + */ + ::wxMessageBox(_("Error in Paulstretch:\nThe selection is too short.\n It must be much longer than the Time Resolution.")); return false; }; @@ -423,6 +426,10 @@ void PaulstretchDialog::PopulateOrExchange(ShuttleGui & S){ S.EndHorizontalLay(); S.StartMultiColumn(2, wxALIGN_CENTER); { + /* i18n-hint: This is how many times longer the sound will be, e.g. applying + * the effect to a 1-second sample, with the default Stretch Factor of 10.0 + * will give an (approximately) 10 second sound + */ m_pTextCtrl_Amount = S.AddTextBox(_("Stretch Factor:"),wxT("10.0"),10); m_pTextCtrl_Amount->SetValidator(wxTextValidator(wxFILTER_NUMERIC)); diff --git a/src/effects/Paulstretch.h b/src/effects/Paulstretch.h index a2c30b648..dcb70c84b 100644 --- a/src/effects/Paulstretch.h +++ b/src/effects/Paulstretch.h @@ -23,10 +23,19 @@ class EffectPaulstretch:public Effect{ EffectPaulstretch(); virtual wxString GetEffectName() { + /* i18n-hint: This is the name of the effect, i.e. a proper noun, which + * wouldn't normally get translated. It's the combination of the author's + * name (Paul) with what it does (stretch sound) + */ return wxString(_("Paulstretch...")); } virtual wxString GetEffectAction() { + /* i18n-hint: This is the text that is shown whilst the effect is being + * processed. The effect stretches the input in time, making the sound + * much longer and spread out whilst at the same pitch. Paulstretch is the + * name of the effect (it's also translated on it's own). + */ return wxString(_("Stretching with Paulstretch")); }