Convert all wxTRANSLATE() to XO()

XO() can be used anywhere a string must be extracted for translation
but not automatically translated at runtime.
This commit is contained in:
Leland Lucius 2015-04-18 22:49:05 -05:00
parent f0ab978dbf
commit 7a0aa43a82
73 changed files with 283 additions and 284 deletions

View File

@ -8,7 +8,7 @@ subdir = po
top_builddir = ..
# These options get passed to xgettext.
XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ --keyword=wxTRANSLATE
XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ --keyword=XO
# This is the copyright holder that gets inserted into the header of the
# $(DOMAIN).pot file. Set this to the copyright holder of the surrounding

View File

@ -155,4 +155,7 @@ void QuitAudacity();
// This macro is used widely, so declared here.
#define QUANTIZED_TIME(time, rate) ((double)((sampleCount)floor(((double)(time) * (rate)) + 0.5))) / (rate)
// Marks strings for extraction only...must use wxGetTranslation() to translate.
#define XO(s) wxT(s)
#endif // __AUDACITY_H__

View File

@ -74,7 +74,7 @@ public:
void SetPath(const wxString & path);
void SetSymbol(const wxString & symbol);
// These should be passed an untranslated value wrapped in wxTRANSLATE() so
// These should be passed an untranslated value wrapped in XO() so
// the value will still be extracted for translation
void SetName(const wxString & name);
void SetVersion(const wxString & version);

View File

@ -45,10 +45,10 @@ enum
// Define keys, defaults, minimums, and maximums for the effect parameters
//
// Name Type Key Def Min Max Scale
Param( Ratio, float, wxTRANSLATE("Ratio"), 0.9f, -FLT_MAX, FLT_MAX, 1.0f );
Param( NoClip, bool, wxTRANSLATE("Allow Clipping"), false, false, true, 1.0f );
Param( Amp, float, wxT(""), -0.91515f, -50.0, 50.0, 10.0f );
// Name Type Key Def Min Max Scale
Param( Ratio, float, XO("Ratio"), 0.9f, -FLT_MAX, FLT_MAX, 1.0f );
Param( NoClip, bool, XO("Allow Clipping"), false, false, true, 1.0f );
Param( Amp, float, wxT(""), -0.91515f, -50.0, 50.0, 10.0f );
//
// EffectAmplify
@ -83,7 +83,7 @@ wxString EffectAmplify::GetSymbol()
wxString EffectAmplify::GetDescription()
{
// Note: This is useful only after ratio has been set.
return wxTRANSLATE("Increases or decreases the volume of the audio you have selected");
return XO("Increases or decreases the volume of the audio you have selected");
}
// EffectIdentInterface implementation

View File

@ -25,7 +25,7 @@
#include "Effect.h"
#define AMPLIFY_PLUGIN_SYMBOL wxTRANSLATE("Amplify")
#define AMPLIFY_PLUGIN_SYMBOL XO("Amplify")
class EffectAmplify : public Effect
{

View File

@ -35,14 +35,14 @@
// Define keys, defaults, minimums, and maximums for the effect parameters
//
// Name Type Key Def Min Max Scale
Param( DuckAmountDb, double, wxTRANSLATE("DuckAmountDb"), -12.0, -24.0, 0.0, 1 );
Param( InnerFadeDownLen, double, wxTRANSLATE("InnerFadeDownLen"), 0.0, 0.0, 3.0, 1 );
Param( InnerFadeUpLen, double, wxTRANSLATE("InnerFadeUpLen"), 0.0, 0.0, 3.0, 1 );
Param( OuterFadeDownLen, double, wxTRANSLATE("OuterFadeDownLen"), 0.5, 0.0, 3.0, 1 );
Param( OuterFadeUpLen, double, wxTRANSLATE("OuterFadeUpLen"), 0.5, 0.0, 3.0, 1 );
Param( ThresholdDb, double, wxTRANSLATE("ThresholdDb"), -30.0, -100.0, 0.0, 1 );
Param( MaximumPause, double, wxTRANSLATE("MaximumPause"), 1.0, 0.0, DBL_MAX, 1 );
// Name Type Key Def Min Max Scale
Param( DuckAmountDb, double, XO("DuckAmountDb"), -12.0, -24.0, 0.0, 1 );
Param( InnerFadeDownLen, double, XO("InnerFadeDownLen"), 0.0, 0.0, 3.0, 1 );
Param( InnerFadeUpLen, double, XO("InnerFadeUpLen"), 0.0, 0.0, 3.0, 1 );
Param( OuterFadeDownLen, double, XO("OuterFadeDownLen"), 0.5, 0.0, 3.0, 1 );
Param( OuterFadeUpLen, double, XO("OuterFadeUpLen"), 0.5, 0.0, 3.0, 1 );
Param( ThresholdDb, double, XO("ThresholdDb"), -30.0, -100.0, 0.0, 1 );
Param( MaximumPause, double, XO("MaximumPause"), 1.0, 0.0, DBL_MAX, 1 );
/*
* Common constants
@ -108,7 +108,7 @@ wxString EffectAutoDuck::GetSymbol()
wxString EffectAutoDuck::GetDescription()
{
return wxTRANSLATE("Reduces (ducks) the volume of one or more tracks whenever the volume of a specified \"control\" track reaches a particular level");
return XO("Reduces (ducks) the volume of one or more tracks whenever the volume of a specified \"control\" track reaches a particular level");
}
// EffectIdentInterface implementation

View File

@ -28,7 +28,7 @@ class EffectAutoDuckPanel;
#define AUTO_DUCK_PANEL_NUM_CONTROL_POINTS 5
#define AUTODUCK_PLUGIN_SYMBOL wxTRANSLATE("Auto Duck")
#define AUTODUCK_PLUGIN_SYMBOL XO("Auto Duck")
class EffectAutoDuck : public Effect
{

View File

@ -43,11 +43,11 @@ enum
// Define keys, defaults, minimums, and maximums for the effect parameters
//
// Name Type Key Def Min Max Scale
Param( Bass, double, wxTRANSLATE("Bass"), 0.0, -15.0, 15.0, 1 );
Param( Treble, double, wxTRANSLATE("Treble"), 0.0, -15.0, 15.0, 1 );
Param( Level, double, wxTRANSLATE("Level"), -1.0, -30.0, 0.0, 1 );
Param( Normalize, bool, wxTRANSLATE("Normalize"), true, false, true, 1 );
// Name Type Key Def Min Max Scale
Param( Bass, double, XO("Bass"), 0.0, -15.0, 15.0, 1 );
Param( Treble, double, XO("Treble"), 0.0, -15.0, 15.0, 1 );
Param( Level, double, XO("Level"), -1.0, -30.0, 0.0, 1 );
Param( Normalize, bool, XO("Normalize"), true, false, true, 1 );
// Sliders are integer, so range is x 10
// to allow 1 decimal place resolution
@ -91,7 +91,7 @@ wxString EffectBassTreble::GetSymbol()
wxString EffectBassTreble::GetDescription()
{
return wxTRANSLATE("Increases or decreases the lower frequencies and higher frequencies of your audio independently");
return XO("Increases or decreases the lower frequencies and higher frequencies of your audio independently");
}
// EffectIdentInterface implementation

View File

@ -23,7 +23,7 @@
#include "Effect.h"
#define BASSTREBLE_PLUGIN_SYMBOL wxTRANSLATE("Bass and Treble")
#define BASSTREBLE_PLUGIN_SYMBOL XO("Bass and Treble")
class EffectBassTreble : public Effect
{

View File

@ -48,8 +48,8 @@ enum {
// Define keys, defaults, minimums, and maximums for the effect parameters
//
// Name Type Key Def Min Max Scale
Param( Percentage, double, wxTRANSLATE("Percentage"), 0.0, -99.0, 3000.0, 1 );
// Name Type Key Def Min Max Scale
Param( Percentage, double, XO("Percentage"), 0.0, -99.0, 3000.0, 1 );
// We warp the slider to go up to 400%, but user can enter up to 3000%
static const double kSliderMax = 100.0; // warped above zero to actually go up to 400%
@ -109,7 +109,7 @@ wxString EffectChangePitch::GetSymbol()
wxString EffectChangePitch::GetDescription()
{
return wxTRANSLATE("Change the pitch of a track without changing its tempo");
return XO("Change the pitch of a track without changing its tempo");
}
// EffectIdentInterface implementation

View File

@ -31,7 +31,7 @@ the pitch without changing the tempo.
#include "SoundTouchEffect.h"
#define CHANGEPITCH_PLUGIN_SYMBOL wxTRANSLATE("Change Pitch")
#define CHANGEPITCH_PLUGIN_SYMBOL XO("Change Pitch")
class EffectChangePitch : public EffectSoundTouch
{

View File

@ -57,15 +57,15 @@ static const wxChar *kVinylStrings[kNumVinyl] =
wxT("45"),
wxT("78"),
/* i18n-hint: n/a is an English abbreviation meaning "not applicable". */
wxTRANSLATE("n/a"),
XO("n/a"),
};
// Soundtouch is not reasonable below -99% or above 3000%.
// Define keys, defaults, minimums, and maximums for the effect parameters
//
// Name Type Key Def Min Max Scale
Param( Percentage, double, wxTRANSLATE("Percentage"), 0.0, -99.0, 4900.0, 1 );
// Name Type Key Def Min Max Scale
Param( Percentage, double, XO("Percentage"), 0.0, -99.0, 4900.0, 1 );
// We warp the slider to go up to 400%, but user can enter higher values
static const double kSliderMax = 100.0; // warped above zero to actually go up to 400%
@ -111,7 +111,7 @@ wxString EffectChangeSpeed::GetSymbol()
wxString EffectChangeSpeed::GetDescription()
{
return wxTRANSLATE("Change the speed of a track, also changing its pitch");
return XO("Change the speed of a track, also changing its pitch");
}
// EffectIdentInterface implementation

View File

@ -26,7 +26,7 @@
#include "Effect.h"
#define CHANGESPEED_PLUGIN_SYMBOL wxTRANSLATE("Change Speed")
#define CHANGESPEED_PLUGIN_SYMBOL XO("Change Speed")
class EffectChangeSpeed : public Effect
{

View File

@ -42,8 +42,8 @@ enum
// Define keys, defaults, minimums, and maximums for the effect parameters
//
// Name Type Key Def Min Max Scale
Param( Percentage, double, wxTRANSLATE("Percentage"), 0.0, -99.0, 3000.0, 1 );
// Name Type Key Def Min Max Scale
Param( Percentage, double, XO("Percentage"), 0.0, -99.0, 3000.0, 1 );
// We warp the slider to go up to 400%, but user can enter higher values.
static const double kSliderMax = 100.0; // warped above zero to actually go up to 400%
@ -85,7 +85,7 @@ wxString EffectChangeTempo::GetSymbol()
wxString EffectChangeTempo::GetDescription()
{
return wxTRANSLATE("Change the tempo of a selection without changing its pitch");
return XO("Change the tempo of a selection without changing its pitch");
}
// EffectIdentInterface implementation

View File

@ -25,7 +25,7 @@
#include "SoundTouchEffect.h"
#define CHANGETEMPO_PLUGIN_SYMBOL wxTRANSLATE("Change Tempo")
#define CHANGETEMPO_PLUGIN_SYMBOL XO("Change Tempo")
class EffectChangeTempo : public EffectSoundTouch
{

View File

@ -45,9 +45,9 @@ enum
// Define keys, defaults, minimums, and maximums for the effect parameters
//
// Name Type Key Def Min Max Scale
Param( Threshold, int, wxTRANSLATE("Threshold"), 200, 0, 900, 1 );
Param( Width, int, wxTRANSLATE("Width"), 20, 0, 40, 1 );
// Name Type Key Def Min Max Scale
Param( Threshold, int, XO("Threshold"), 200, 0, 900, 1 );
Param( Width, int, XO("Width"), 20, 0, 40, 1 );
BEGIN_EVENT_TABLE(EffectClickRemoval, wxEvtHandler)
EVT_SLIDER(ID_Thresh, EffectClickRemoval::OnThreshSlider)
@ -78,7 +78,7 @@ wxString EffectClickRemoval::GetSymbol()
wxString EffectClickRemoval::GetDescription()
{
return wxTRANSLATE("Click Removal is designed to remove clicks on audio tracks");
return XO("Click Removal is designed to remove clicks on audio tracks");
}
// EffectIdentInterface implementation

View File

@ -27,7 +27,7 @@
#include "Effect.h"
#define CLICKREMOVAL_PLUGIN_SYMBOL wxTRANSLATE("Click Removal")
#define CLICKREMOVAL_PLUGIN_SYMBOL XO("Click Removal")
class EffectClickRemoval : public Effect
{

View File

@ -51,14 +51,14 @@ enum
// Define keys, defaults, minimums, and maximums for the effect parameters
//
// Name Type Key Def Min Max Scale
Param( Threshold, double, wxTRANSLATE("Threshold"), -12.0, -60.0, -1.0, 1 );
Param( NoiseFloor, double, wxTRANSLATE("NoiseFloor"), -40.0, -80.0, -20.0, 5 );
Param( Ratio, double, wxTRANSLATE("Ratio"), 2.0, 1.5, 10.0, 2 );
Param( AttackTime, double, wxTRANSLATE("AttackTime"), 0.2, 0.1, 5.0, 100 );
Param( ReleaseTime, double, wxTRANSLATE("ReleaseTime"), 1.0, 1.0, 30.0, 10 );
Param( Normalize, bool, wxTRANSLATE("Normalize"), true, false, true, 1 );
Param( UsePeak, bool, wxTRANSLATE("UsePeak"), false, false, true, 1 );
// Name Type Key Def Min Max Scale
Param( Threshold, double, XO("Threshold"), -12.0, -60.0, -1.0, 1 );
Param( NoiseFloor, double, XO("NoiseFloor"), -40.0, -80.0, -20.0, 5 );
Param( Ratio, double, XO("Ratio"), 2.0, 1.5, 10.0, 2 );
Param( AttackTime, double, XO("AttackTime"), 0.2, 0.1, 5.0, 100 );
Param( ReleaseTime, double, XO("ReleaseTime"), 1.0, 1.0, 30.0, 10 );
Param( Normalize, bool, XO("Normalize"), true, false, true, 1 );
Param( UsePeak, bool, XO("UsePeak"), false, false, true, 1 );
//----------------------------------------------------------------------------
// EffectCompressor
@ -112,7 +112,7 @@ wxString EffectCompressor::GetSymbol()
wxString EffectCompressor::GetDescription()
{
return wxTRANSLATE("Compresses the dynamic range of audio");
return XO("Compresses the dynamic range of audio");
}
// EffectIdentInterface implementation

View File

@ -27,7 +27,7 @@
class EffectCompressorPanel;
#define COMPRESSOR_PLUGIN_SYMBOL wxTRANSLATE("Compressor")
#define COMPRESSOR_PLUGIN_SYMBOL XO("Compressor")
class EffectCompressor : public EffectTwoPassSimpleMono
{

View File

@ -26,10 +26,10 @@
// Define keys, defaults, minimums, and maximums for the effect parameters
//
// Name Type Key Def Min Max Scale
Param( Sequence, wxString, wxTRANSLATE("Sequence"), wxT("audacity"), wxT(""), wxT(""), wxT(""));
Param( DutyCycle, double, wxTRANSLATE("Duty Cycle"), 55.0, 0.0, 100.0, 10.0 );
Param( Amplitude, double, wxTRANSLATE("Amplitude"), 0.8, 0.0, 1.0, 1 );
// Name Type Key Def Min Max Scale
Param( Sequence, wxString, XO("Sequence"), wxT("audacity"), wxT(""), wxT(""), wxT(""));
Param( DutyCycle, double, XO("Duty Cycle"), 55.0, 0.0, 100.0, 10.0 );
Param( Amplitude, double, XO("Amplitude"), 0.8, 0.0, 1.0, 1 );
static const double kFadeInOut = 250.0; // used for fadein/out needed to remove clicking noise
@ -79,7 +79,7 @@ wxString EffectDtmf::GetSymbol()
wxString EffectDtmf::GetDescription()
{
return wxTRANSLATE("Generates dual-tone multi-frequency (DTMF) tones like those produced by the keypad on telephones");
return XO("Generates dual-tone multi-frequency (DTMF) tones like those produced by the keypad on telephones");
}
// EffectIdentInterface implementation

View File

@ -24,7 +24,7 @@
#include "Effect.h"
#define DTMFTONES_PLUGIN_SYMBOL wxTRANSLATE("DTMF Tones")
#define DTMFTONES_PLUGIN_SYMBOL XO("DTMF Tones")
class EffectDtmf : public Effect
{

View File

@ -31,9 +31,9 @@
// Define keys, defaults, minimums, and maximums for the effect parameters
//
// Name Type Key Def Min Max Scale
Param( Delay, float, wxTRANSLATE("Delay"), 1.0, 0.0, FLT_MAX, 1 );
Param( Decay, float, wxTRANSLATE("Decay"), 0.5, 1.0, 1.0, 1 );
// Name Type Key Def Min Max Scale
Param( Delay, float, XO("Delay"), 1.0, 0.0, FLT_MAX, 1 );
Param( Decay, float, XO("Decay"), 0.5, 1.0, 1.0, 1 );
EffectEcho::EffectEcho()
{
@ -54,7 +54,7 @@ wxString EffectEcho::GetSymbol()
wxString EffectEcho::GetDescription()
{
return wxTRANSLATE("Repeats the selected audio again and again");
return XO("Repeats the selected audio again and again");
}
// EffectIdentInterface implementation

View File

@ -20,7 +20,7 @@
#include "Effect.h"
#define ECHO_PLUGIN_SYMBOL wxTRANSLATE("Echo")
#define ECHO_PLUGIN_SYMBOL XO("Echo")
class EffectEcho : public Effect
{

View File

@ -143,9 +143,9 @@ enum kInterpolations
static const wxString kInterpStrings[kNumInterpolations] =
{
/* i18n-hint: Technical term for a kind of curve.*/
wxTRANSLATE("B-spline"),
wxTRANSLATE("Cosine"),
wxTRANSLATE("Cubic")
XO("B-spline"),
XO("Cosine"),
XO("Cubic")
};
static const double kThirdOct[] =
@ -157,15 +157,15 @@ static const double kThirdOct[] =
// Define keys, defaults, minimums, and maximums for the effect parameters
//
// Name Type Key Def Min Max Scale
Param( FilterLength, int, wxTRANSLATE("FilterLength"), 4001, 21, 8191, 0 );
Param( CurveName, wxChar*, wxTRANSLATE("CurveName"), wxT("unnamed"), wxT(""), wxT(""), wxT(""));
Param( InterpLin, bool, wxTRANSLATE("InterpolateLin"), false, false, true, false );
Param( InterpMeth, int, wxTRANSLATE("InterpolationMethod"), 0, 0, 0, 0 );
Param( DrawMode, bool, wxT(""), true, false, true, false );
Param( DrawGrid, bool, wxT(""), true, false, true, false );
Param( dBMin, float, wxT(""), -30.0, -120.0, -10.0, 0 );
Param( dBMax, float, wxT(""), 30.0, 0.0, 60.0, 0 );
// Name Type Key Def Min Max Scale
Param( FilterLength, int, XO("FilterLength"), 4001, 21, 8191, 0 );
Param( CurveName, wxChar*, XO("CurveName"), wxT("unnamed"), wxT(""), wxT(""), wxT(""));
Param( InterpLin, bool, XO("InterpolateLin"), false, false, true, false );
Param( InterpMeth, int, XO("InterpolationMethod"), 0, 0, 0, 0 );
Param( DrawMode, bool, wxT(""), true, false, true, false );
Param( DrawGrid, bool, wxT(""), true, false, true, false );
Param( dBMin, float, wxT(""), -30.0, -120.0, -10.0, 0 );
Param( dBMax, float, wxT(""), 30.0, 0.0, 60.0, 0 );
#include <wx/arrimpl.cpp>
WX_DEFINE_OBJARRAY( EQPointArray );
@ -323,7 +323,7 @@ wxString EffectEqualization::GetSymbol()
wxString EffectEqualization::GetDescription()
{
return wxTRANSLATE("Adjusts the volume levels of particular frequencies");
return XO("Adjusts the volume levels of particular frequencies");
}
// EffectIdentInterface implementation

View File

@ -42,7 +42,7 @@
#include "../widgets/Ruler.h"
#include "../RealFFTf.h"
#define EQUALIZATION_PLUGIN_SYMBOL wxTRANSLATE("Equalization")
#define EQUALIZATION_PLUGIN_SYMBOL XO("Equalization")
class EqualizationPanel;

View File

@ -40,8 +40,8 @@ wxString EffectFade::GetSymbol()
wxString EffectFade::GetDescription()
{
return mFadeIn
? wxTRANSLATE("Applies a linear fade-in to the selected audio")
: wxTRANSLATE("Applies a linear fade-out to the selected audio");
? XO("Applies a linear fade-in to the selected audio")
: XO("Applies a linear fade-out to the selected audio");
}
// EffectIdentInterface implementation

View File

@ -15,8 +15,8 @@
#include "Effect.h"
#define FADEIN_PLUGIN_SYMBOL wxTRANSLATE("Fade In")
#define FADEOUT_PLUGIN_SYMBOL wxTRANSLATE("Fade Out")
#define FADEIN_PLUGIN_SYMBOL XO("Fade In")
#define FADEOUT_PLUGIN_SYMBOL XO("Fade Out")
class EffectFade : public Effect
{

View File

@ -30,11 +30,11 @@
#include "FindClipping.h"
#define DEF_Start 3
#define MIN_Start 1
#define DEF_Stop 3
#define MIN_Stop 1
// Define keys, defaults, minimums, and maximums for the effect parameters
//
// Name Type Key Def Min Max Scale
Param( Start, int, XO("Duty Cycle"), 3, 1, INT_MAX, 1 );
Param( Stop, int, XO("Duty Cycle"), 3, 1, INT_MAX, 1 );
EffectFindClipping::EffectFindClipping()
{
@ -55,7 +55,7 @@ wxString EffectFindClipping::GetSymbol()
wxString EffectFindClipping::GetDescription()
{
return wxTRANSLATE("This displays runs of clipped samples in a Label Track");
return XO("This displays runs of clipped samples in a Label Track");
}
// EffectIdentInterface implementation
@ -69,24 +69,19 @@ EffectType EffectFindClipping::GetType()
bool EffectFindClipping::GetAutomationParameters(EffectAutomationParameters & parms)
{
parms.Write(wxT("Start"), mStart);
parms.Write(wxT("Stop"), mStop);
parms.Write(KEY_Start, mStart);
parms.Write(KEY_Stop, mStop);
return true;
}
bool EffectFindClipping::SetAutomationParameters(EffectAutomationParameters & parms)
{
int start;
int stop;
ReadAndVerifyInt(Start);
ReadAndVerifyInt(Stop);
parms.Read(wxT("Start"), &start, DEF_Start);
parms.Read(wxT("Stop"), &stop, DEF_Stop);
if (start < MIN_Start || stop < MIN_Stop)
{
return false;
}
mStart = Start;
mStop = Stop;
return true;
}

View File

@ -21,7 +21,7 @@ class wxString;
#include "Effect.h"
#define FINDCLIPPING_PLUGIN_SYMBOL wxTRANSLATE("Find Clipping")
#define FINDCLIPPING_PLUGIN_SYMBOL XO("Find Clipping")
class EffectFindClipping : public Effect
{

View File

@ -37,7 +37,7 @@ wxString EffectInvert::GetSymbol()
wxString EffectInvert::GetDescription()
{
return wxTRANSLATE("Flips the audio samples upside-down, reversing their polarity");
return XO("Flips the audio samples upside-down, reversing their polarity");
}
// EffectIdentInterface implementation

View File

@ -17,7 +17,7 @@
#include "Effect.h"
#define INVERT_PLUGIN_SYMBOL wxTRANSLATE("Invert")
#define INVERT_PLUGIN_SYMBOL XO("Invert")
class EffectInvert : public Effect
{

View File

@ -38,19 +38,19 @@ enum kPasses
static const wxString kPassStrings[kNumPasses] =
{
/* i18n-hint: Of strength of an effect. Not strongly.*/
wxTRANSLATE("Light"),
wxTRANSLATE("Moderate"),
XO("Light"),
XO("Moderate"),
/* i18n-hint: Of strength of an effect. Strongly.*/
wxTRANSLATE("Heavy"),
wxTRANSLATE("Heavier"),
wxTRANSLATE("Heaviest"),
XO("Heavy"),
XO("Heavier"),
XO("Heaviest"),
};
// Define keys, defaults, minimums, and maximums for the effect parameters
//
// Name Type Key Def Min Max Scale
Param( Level, int, wxTRANSLATE("dB"), 10, 0, Enums::NumDbChoices - 1, 1 );
Param( Passes, int, wxTRANSLATE("Passes"), kModerate, 0, kNumPasses - 1, 1 );
// Name Type Key Def Min Max Scale
Param( Level, int, XO("dB"), 10, 0, Enums::NumDbChoices - 1, 1 );
Param( Passes, int, XO("Passes"), kModerate, 0, kNumPasses - 1, 1 );
//
// EffectLeveller
@ -80,7 +80,7 @@ wxString EffectLeveller::GetSymbol()
wxString EffectLeveller::GetDescription()
{
return wxTRANSLATE("Leveler is a simple, combined compressor and limiter effect for reducing the dynamic range of audio");
return XO("Leveler is a simple, combined compressor and limiter effect for reducing the dynamic range of audio");
}
// EffectIdentInterface implementation

View File

@ -18,7 +18,7 @@
#include "Effect.h"
#define LEVELLER_PLUGIN_SYMBOL wxTRANSLATE("Leveller")
#define LEVELLER_PLUGIN_SYMBOL XO("Leveller")
class EffectLeveller : public Effect
{

View File

@ -220,17 +220,17 @@ wxString BuiltinEffectsModule::GetPath()
wxString BuiltinEffectsModule::GetSymbol()
{
return wxTRANSLATE("Builtin Effects");
return XO("Builtin Effects");
}
wxString BuiltinEffectsModule::GetName()
{
return wxTRANSLATE("Builtin Effects");
return XO("Builtin Effects");
}
wxString BuiltinEffectsModule::GetVendor()
{
return wxTRANSLATE("The Audacity Team");
return XO("The Audacity Team");
}
wxString BuiltinEffectsModule::GetVersion()
@ -241,7 +241,7 @@ wxString BuiltinEffectsModule::GetVersion()
wxString BuiltinEffectsModule::GetDescription()
{
return wxTRANSLATE("Provides builtin effects to Audacity");
return XO("Provides builtin effects to Audacity");
}
// ============================================================================

View File

@ -37,14 +37,16 @@ enum kTypes
static const wxChar *kTypeStrings[kNumTypes] =
{
wxTRANSLATE("White"),
wxTRANSLATE("Pink"),
wxTRANSLATE("Brownian")
XO("White"),
XO("Pink"),
XO("Brownian")
};
// Name Type Key Def Min Max Scale
Param( Type, int, wxTRANSLATE("Type"), kWhite, 0, kNumTypes - 1, 1 );
Param( Amp, double, wxTRANSLATE("Amplitude"), 0.8, 0.0, 1.0, 1 );
// Define keys, defaults, minimums, and maximums for the effect parameters
//
// Name Type Key Def Min Max Scale
Param( Type, int, XO("Type"), kWhite, 0, kNumTypes - 1, 1 );
Param( Amp, double, XO("Amplitude"), 0.8, 0.0, 1.0, 1 );
//
// EffectNoise
@ -72,7 +74,7 @@ wxString EffectNoise::GetSymbol()
wxString EffectNoise::GetDescription()
{
return wxTRANSLATE("Generates one of three different types of noise");
return XO("Generates one of three different types of noise");
}
// EffectIdentInterface implementation

View File

@ -20,7 +20,7 @@
#include "Effect.h"
#define NOISE_PLUGIN_SYMBOL wxTRANSLATE("Noise")
#define NOISE_PLUGIN_SYMBOL XO("Noise")
class EffectNoise : public Effect
{

View File

@ -426,7 +426,7 @@ wxString EffectNoiseReduction::GetSymbol()
wxString EffectNoiseReduction::GetDescription()
{
return wxTRANSLATE("Removes background noise such as fans, tape noise, or hums");
return XO("Removes background noise such as fans, tape noise, or hums");
}
// EffectIdentInterface implementation
@ -1451,26 +1451,26 @@ const ControlInfo *controlInfo() {
static const ControlInfo table[] = {
ControlInfo(&EffectNoiseReduction::Settings::mNoiseGain,
0.0, 48.0, 48, wxT("%d"), true,
wxTRANSLATE("&Noise reduction (dB):"), wxTRANSLATE("Noise reduction")),
XO("&Noise reduction (dB):"), XO("Noise reduction")),
ControlInfo(&EffectNoiseReduction::Settings::mNewSensitivity,
0.0, 24.0, 48, wxT("%.2f"), false,
wxTRANSLATE("&Sensitivity:"), wxTRANSLATE("Sensitivity")),
XO("&Sensitivity:"), XO("Sensitivity")),
#ifdef ATTACK_AND_RELEASE
ControlInfo(&EffectNoiseReduction::Settings::mAttackTime,
0, 1.0, 100, wxT("%.2f"), false,
wxTRANSLATE("Attac&k time (secs):"), wxTRANSLATE("Attack time")),
XO("Attac&k time (secs):"), XO("Attack time")),
ControlInfo(&EffectNoiseReduction::Settings::mReleaseTime,
0, 1.0, 100, wxT("%.2f"), false,
wxTRANSLATE("R&elease time (secs):"), wxTRANSLATE("Release time")),
XO("R&elease time (secs):"), XO("Release time")),
#endif
ControlInfo(&EffectNoiseReduction::Settings::mFreqSmoothingBands,
0, 6, 6, wxT("%d"), true,
wxTRANSLATE("&Frequency smoothing (bands):"), wxTRANSLATE("Frequency smoothing")),
XO("&Frequency smoothing (bands):"), XO("Frequency smoothing")),
#ifdef ADVANCED_SETTINGS
ControlInfo(&EffectNoiseReduction::Settings::mOldSensitivity,
-20.0, 20.0, 4000, wxT("%.2f"), false,
wxTRANSLATE("Sensiti&vity (dB):"), wxTRANSLATE("Old Sensitivity")),
XO("Sensiti&vity (dB):"), XO("Old Sensitivity")),
// add here
#endif
};

View File

@ -17,7 +17,7 @@
#include <memory>
#define NOISEREDUCTION_PLUGIN_SYMBOL wxTRANSLATE("Noise Reduction")
#define NOISEREDUCTION_PLUGIN_SYMBOL XO("Noise Reduction")
class EffectNoiseReduction: public Effect {
public:

View File

@ -115,12 +115,12 @@ EffectNoiseRemoval::~EffectNoiseRemoval()
wxString EffectNoiseRemoval::GetSymbol()
{
return wxTRANSLATE("Noise Removal");
return XO("Noise Removal");
}
wxString EffectNoiseRemoval::GetDescription()
{
return wxTRANSLATE("Removes constant background noise such as fans, tape noise, or hums");
return XO("Removes constant background noise such as fans, tape noise, or hums");
}
// EffectIdentInterface implementation

View File

@ -32,11 +32,11 @@
// Define keys, defaults, minimums, and maximums for the effect parameters
//
// Name Type Key Def Min Max Scale
Param( Level, double, wxTRANSLATE("Level"), 0.0, -145.0, 0.0, 1 );
Param( RemoveDC, bool, wxTRANSLATE("RemoveDcOffset"), true, false, true, 1 );
Param( ApplyGain, bool, wxTRANSLATE("ApplyGain"), true, false, true, 1 );
Param( StereoInd, bool, wxTRANSLATE("StereoIndependent"), false, false, true, 1 );
// Name Type Key Def Min Max Scale
Param( Level, double, XO("Level"), 0.0, -145.0, 0.0, 1 );
Param( RemoveDC, bool, XO("RemoveDcOffset"), true, false, true, 1 );
Param( ApplyGain, bool, XO("ApplyGain"), true, false, true, 1 );
Param( StereoInd, bool, XO("StereoIndependent"), false, false, true, 1 );
BEGIN_EVENT_TABLE(EffectNormalize, wxEvtHandler)
EVT_CHECKBOX(wxID_ANY, EffectNormalize::OnUpdateUI)
@ -64,7 +64,7 @@ wxString EffectNormalize::GetSymbol()
wxString EffectNormalize::GetDescription()
{
return wxTRANSLATE("Sets the peak amplitude of a one or more tracks");
return XO("Sets the peak amplitude of a one or more tracks");
}
// EffectIdentInterface implementation

View File

@ -23,7 +23,7 @@
#include "Effect.h"
#define NORMALIZE_PLUGIN_SYMBOL wxTRANSLATE("Normalize")
#define NORMALIZE_PLUGIN_SYMBOL XO("Normalize")
class EffectNormalize : public Effect
{

View File

@ -28,11 +28,10 @@
#include "Paulstretch.h"
// Define keys, defaults, minimums, and maximums for the effect parameters
//
// Name Type Key Def Min Max Scale
Param( Amount, float, wxTRANSLATE("Stretch Factor"), 10.0, 1.0, FLT_MAX, 1 );
Param( Time, float, wxTRANSLATE("Time Resolution"), 0.25f, 0.001f, FLT_MAX, 1 );
// Name Type Key Def Min Max Scale
Param( Amount, float, XO("Stretch Factor"), 10.0, 1.0, FLT_MAX, 1 );
Param( Time, float, XO("Time Resolution"), 0.25f, 0.001f, FLT_MAX, 1 );
class PaulStretch
{
@ -95,7 +94,7 @@ wxString EffectPaulstretch::GetSymbol()
wxString EffectPaulstretch::GetDescription()
{
return wxTRANSLATE("Use Paulstretch only for an extreme time-stretch or \"stasis\" effect");
return XO("Use Paulstretch only for an extreme time-stretch or \"stasis\" effect");
}
// EffectIdentInterface implementation

View File

@ -17,7 +17,7 @@
#include "Effect.h"
#define PAULSTRETCH_PLUGIN_SYMBOL wxTRANSLATE("Paulstretch")
#define PAULSTRETCH_PLUGIN_SYMBOL XO("Paulstretch")
class EffectPaulstretch : public Effect
{

View File

@ -39,13 +39,15 @@ enum
ID_Feedback
};
// Name Type Key Def Min Max Scale
Param( Stages, int, wxTRANSLATE("Stages"), 2, 2, NUM_STAGES, 1 );
Param( DryWet, int, wxTRANSLATE("DryWet"), 128, 0, 255, 1 );
Param( Freq, double, wxTRANSLATE("Freq"), 0.4, 0.1, 4.0, 10 );
Param( Phase, double, wxTRANSLATE("Phase"), 0.0, 0.0, 359.0, 1 );
Param( Depth, int, wxTRANSLATE("Depth"), 100, 0, 255, 1 );
Param( Feedback, int, wxTRANSLATE("Feedback"), 0, -100, 100, 1 );
// Define keys, defaults, minimums, and maximums for the effect parameters
//
// Name Type Key Def Min Max Scale
Param( Stages, int, XO("Stages"), 2, 2, NUM_STAGES, 1 );
Param( DryWet, int, XO("DryWet"), 128, 0, 255, 1 );
Param( Freq, double, XO("Freq"), 0.4, 0.1, 4.0, 10 );
Param( Phase, double, XO("Phase"), 0.0, 0.0, 359.0, 1 );
Param( Depth, int, XO("Depth"), 100, 0, 255, 1 );
Param( Feedback, int, XO("Feedback"), 0, -100, 100, 1 );
//
#define phaserlfoshape 4.0
@ -95,7 +97,7 @@ wxString EffectPhaser::GetSymbol()
wxString EffectPhaser::GetDescription()
{
return wxTRANSLATE("Combines phase-shifted signals with the original signal");
return XO("Combines phase-shifted signals with the original signal");
}
// EffectIdentInterface implementation

View File

@ -27,7 +27,7 @@
#define NUM_STAGES 24
#define PHASER_PLUGIN_SYMBOL wxTRANSLATE("Phaser")
#define PHASER_PLUGIN_SYMBOL XO("Phaser")
class EffectPhaser : public Effect
{

View File

@ -50,7 +50,7 @@ wxString EffectRepair::GetSymbol()
wxString EffectRepair::GetDescription()
{
return wxTRANSLATE("Sets the peak amplitude of a one or more tracks");
return XO("Sets the peak amplitude of a one or more tracks");
}
// EffectIdentInterface implementation

View File

@ -15,7 +15,7 @@
#include "Effect.h"
#define REPAIR_PLUGIN_SYMBOL wxTRANSLATE("Repair")
#define REPAIR_PLUGIN_SYMBOL XO("Repair")
class WaveTrack;

View File

@ -35,6 +35,11 @@
#include "Repeat.h"
// Define keys, defaults, minimums, and maximums for the effect parameters
//
// Name Type Key Def Min Max Scale
Param( Count, int, XO("Count"), 10, 2, INT_MAX, 1 );
BEGIN_EVENT_TABLE(EffectRepeat, wxEvtHandler)
EVT_TEXT(wxID_ANY, EffectRepeat::OnRepeatTextChange)
END_EVENT_TABLE()
@ -57,7 +62,7 @@ wxString EffectRepeat::GetSymbol()
wxString EffectRepeat::GetDescription()
{
return wxTRANSLATE("Repeats the selection the specified number of times");
return XO("Repeats the selection the specified number of times");
}
// EffectIdentInterface implementation
@ -71,23 +76,16 @@ EffectType EffectRepeat::GetType()
bool EffectRepeat::GetAutomationParameters(EffectAutomationParameters & parms)
{
parms.Write(wxT("Count"), repeatCount);
parms.Write(KEY_Count, repeatCount);
return true;
}
bool EffectRepeat::SetAutomationParameters(EffectAutomationParameters & parms)
{
int count;
ReadAndVerifyInt(Count);
parms.Read(wxT("Count"), &count, 10);
if (count < 0 || count > 2147483647 / mProjectRate)
{
return false;
}
repeatCount = count;
repeatCount = Count;
return true;
}
@ -174,7 +172,7 @@ void EffectRepeat::PopulateOrExchange(ShuttleGui & S)
S.StartHorizontalLay(wxCENTER, false);
{
IntegerValidator<int> vldRepeatCount(&repeatCount);
vldRepeatCount.SetRange(1, 2147483647 / mProjectRate);
vldRepeatCount.SetRange(MIN_Count, 2147483647 / mProjectRate);
mRepeatCount = S.AddTextBox(_("Number of times to repeat:"), wxT(""), 12);
mRepeatCount->SetValidator(vldRepeatCount);
}

View File

@ -20,7 +20,7 @@
#include "Effect.h"
#define REPEAT_PLUGIN_SYMBOL wxTRANSLATE("Repeat")
#define REPEAT_PLUGIN_SYMBOL XO("Repeat")
class EffectRepeat : public Effect
{

View File

@ -42,17 +42,17 @@ enum
// Define keys, defaults, minimums, and maximums for the effect parameters
//
// Name Type Key Def Min Max Scale
Param( RoomSize, double, wxTRANSLATE("RoomSize"), 75, 0, 100, 1 );
Param( PreDelay, double, wxTRANSLATE("Delay"), 10, 0, 200, 1 );
Param( Reverberance, double, wxTRANSLATE("Reverberance"), 50, 0, 100, 1 );
Param( HfDamping, double, wxTRANSLATE("HfDamping"), 50, 0, 100, 1 );
Param( ToneLow, double, wxTRANSLATE("ToneLow"), 100, 0, 100, 1 );
Param( ToneHigh, double, wxTRANSLATE("ToneHigh"), 100, 0, 100, 1 );
Param( WetGain, double, wxTRANSLATE("WetGain"), -1, -20, 10, 1 );
Param( DryGain, double, wxTRANSLATE("DryGain"), -1, -20, 10, 1 );
Param( StereoWidth, double, wxTRANSLATE("StereoWidth"), 100, 0, 100, 1 );
Param( WetOnly, bool, wxTRANSLATE("WetOnly"), false, false, true, 1 );
// Name Type Key Def Min Max Scale
Param( RoomSize, double, XO("RoomSize"), 75, 0, 100, 1 );
Param( PreDelay, double, XO("Delay"), 10, 0, 200, 1 );
Param( Reverberance, double, XO("Reverberance"), 50, 0, 100, 1 );
Param( HfDamping, double, XO("HfDamping"), 50, 0, 100, 1 );
Param( ToneLow, double, XO("ToneLow"), 100, 0, 100, 1 );
Param( ToneHigh, double, XO("ToneHigh"), 100, 0, 100, 1 );
Param( WetGain, double, XO("WetGain"), -1, -20, 10, 1 );
Param( DryGain, double, XO("DryGain"), -1, -20, 10, 1 );
Param( StereoWidth, double, XO("StereoWidth"), 100, 0, 100, 1 );
Param( WetOnly, bool, XO("WetOnly"), false, false, true, 1 );
static const struct
{
@ -61,17 +61,17 @@ static const struct
}
FactoryPresets[] =
{
// Room Pre Hf Tone Tone Wet Dry Stereo Wet
// Name Size, Delay, Reverb, Damping, Low, High, Gain, Gain, Width, Only
wxTRANSLATE("Vocal I" ), { 70, 20, 40, 99, 100, 50, -12, 0, 70, false },
wxTRANSLATE("Vocal II"), { 50, 0, 50, 99, 50, 100, -1, -1, 70, false },
wxTRANSLATE("Bathroom"), { 16, 8, 80, 0, 0, 100, -6, 0, 100, false },
wxTRANSLATE("Small Room Bright"), { 30, 10, 50, 50, 50, 100, -1, -1, 100, false },
wxTRANSLATE("Small Room Dark"), { 30, 10, 50, 50, 100, 0, -1, -1, 100, false },
wxTRANSLATE("Medium Room"), { 75, 10, 40, 50, 100, 70, -1, -1, 70, false },
wxTRANSLATE("Large Room"), { 85, 10, 40, 50, 100, 80, 0, -6, 90, false },
wxTRANSLATE("Church Hall"), { 90, 32, 60, 50, 100, 50, 0, -12, 100, false },
wxTRANSLATE("Cathedral"), { 90, 16, 90, 50, 100, 0, 0, -20, 100, false },
// Room Pre Hf Tone Tone Wet Dry Stereo Wet
// Name Size, Delay, Reverb, Damping, Low, High, Gain, Gain, Width, Only
XO("Vocal I" ), { 70, 20, 40, 99, 100, 50, -12, 0, 70, false },
XO("Vocal II"), { 50, 0, 50, 99, 50, 100, -1, -1, 70, false },
XO("Bathroom"), { 16, 8, 80, 0, 0, 100, -6, 0, 100, false },
XO("Small Room Bright"), { 30, 10, 50, 50, 50, 100, -1, -1, 100, false },
XO("Small Room Dark"), { 30, 10, 50, 50, 100, 0, -1, -1, 100, false },
XO("Medium Room"), { 75, 10, 40, 50, 100, 70, -1, -1, 70, false },
XO("Large Room"), { 85, 10, 40, 50, 100, 80, 0, -6, 90, false },
XO("Church Hall"), { 90, 32, 60, 50, 100, 50, 0, -12, 100, false },
XO("Cathedral"), { 90, 16, 90, 50, 100, 0, 0, -20, 100, false },
};
struct Reverb_priv_t
@ -134,7 +134,7 @@ wxString EffectReverb::GetSymbol()
wxString EffectReverb::GetDescription()
{
return wxTRANSLATE("Adds ambience or a \"hall effect\"");
return XO("Adds ambience or a \"hall effect\"");
}
// EffectIdentInterface implementation

View File

@ -22,7 +22,7 @@
#include "Effect.h"
#define REVERB_PLUGIN_SYMBOL wxTRANSLATE("Reverb")
#define REVERB_PLUGIN_SYMBOL XO("Reverb")
struct Reverb_priv_t;

View File

@ -45,7 +45,7 @@ wxString EffectReverse::GetSymbol()
wxString EffectReverse::GetDescription()
{
return wxTRANSLATE("Reverses the selected audio");
return XO("Reverses the selected audio");
}
// EffectIdentInterface implementation

View File

@ -19,7 +19,7 @@
#include "Effect.h"
#define REVERSE_PLUGIN_SYMBOL wxTRANSLATE("Reverse")
#define REVERSE_PLUGIN_SYMBOL XO("Reverse")
class EffectReverse : public Effect
{

View File

@ -88,11 +88,11 @@ enum kTypes
static const wxChar *kTypeStrings[] =
{
/*i18n-hint: Butterworth is the name of the person after whom the filter type is named.*/
wxTRANSLATE("Butterworth"),
XO("Butterworth"),
/*i18n-hint: Chebyshev is the name of the person after whom the filter type is named.*/
wxTRANSLATE("Chebyshev Type I"),
XO("Chebyshev Type I"),
/*i18n-hint: Chebyshev is the name of the person after whom the filter type is named.*/
wxTRANSLATE("Chebyshev Type II")
XO("Chebyshev Type II")
};
enum kSubTypes
@ -104,19 +104,19 @@ enum kSubTypes
static const wxChar *kSubTypeStrings[] =
{
wxTRANSLATE("Lowpass"),
wxTRANSLATE("Highpass")
XO("Lowpass"),
XO("Highpass")
};
// Define keys, defaults, minimums, and maximums for the effect parameters
//
// Name Type Key Def Min Max Scale
Param( Type, int, wxTRANSLATE("FilterType"), kButterworth, 0, kNumTypes - 1, 1 );
Param( Subtype, int, wxTRANSLATE("FilterSubtype"), kLowPass, 0, kNumSubTypes - 1, 1 );
Param( Order, int, wxTRANSLATE("Order"), 1, 1, 10, 1 );
Param( Cutoff, float, wxTRANSLATE("Cutoff"), 1000.0, 1.0, FLT_MAX, 1 );
Param( Passband, float, wxTRANSLATE("PassbandRipple"), 1.0, 0.0, 100.0, 1 );
Param( Stopband, float, wxTRANSLATE("StopbandRipple"), 30.0, 0.0, 100.0, 1 );
// Name Type Key Def Min Max Scale
Param( Type, int, XO("FilterType"), kButterworth, 0, kNumTypes - 1, 1 );
Param( Subtype, int, XO("FilterSubtype"), kLowPass, 0, kNumSubTypes - 1, 1 );
Param( Order, int, XO("Order"), 1, 1, 10, 1 );
Param( Cutoff, float, XO("Cutoff"), 1000.0, 1.0, FLT_MAX, 1 );
Param( Passband, float, XO("PassbandRipple"), 1.0, 0.0, 100.0, 1 );
Param( Stopband, float, XO("StopbandRipple"), 30.0, 0.0, 100.0, 1 );
static const double s_fChebyCoeffs[MAX_Order][MAX_Order + 1] =
{
@ -190,7 +190,7 @@ wxString EffectScienFilter::GetSymbol()
wxString EffectScienFilter::GetDescription()
{
return wxTRANSLATE("Performs IIR filtering that emulates analog filters");
return XO("Performs IIR filtering that emulates analog filters");
}
// EffectIdentInterface implementation

View File

@ -29,7 +29,7 @@ Vaughan Johnson (Preview)
#include "Effect.h"
#define CLASSICFILTERS_PLUGIN_SYMBOL wxTRANSLATE("Classic Filters")
#define CLASSICFILTERS_PLUGIN_SYMBOL XO("Classic Filters")
class EffectScienFilterPanel;

View File

@ -36,7 +36,7 @@ wxString EffectSilence::GetSymbol()
wxString EffectSilence::GetDescription()
{
return wxTRANSLATE("Creates audio of zero amplitude");
return XO("Creates audio of zero amplitude");
}
// EffectIdentInterface implementation

View File

@ -20,7 +20,7 @@
#include "Generator.h"
#define SILENCE_PLUGIN_SYMBOL wxTRANSLATE("Silence")
#define SILENCE_PLUGIN_SYMBOL XO("Silence")
class EffectSilence : public Generator
{

View File

@ -36,7 +36,7 @@ wxString EffectStereoToMono::GetSymbol()
wxString EffectStereoToMono::GetDescription()
{
return wxTRANSLATE("Converts stereo tracks to mono");
return XO("Converts stereo tracks to mono");
}
// EffectIdentInterface implementation

View File

@ -15,7 +15,7 @@
#include "Effect.h"
#define STEREOTOMONO_PLUGIN_SYMBOL wxTRANSLATE("Stereo To Mono")
#define STEREOTOMONO_PLUGIN_SYMBOL XO("Stereo To Mono")
class EffectStereoToMono : public Effect
{

View File

@ -38,13 +38,13 @@ enum
// Define keys, defaults, minimums, and maximums for the effect parameters
//
// Name Type Key Def Min Max Scale
Param( RatePercentStart, double, wxTRANSLATE("RatePercentChangeStart"), 0.0, -90.0, 500, 1 );
Param( RatePercentEnd, double, wxTRANSLATE("RatePercentChangeEnd"), 0.0, -90.0, 500, 1 );
Param( HalfStepsStart, double, wxTRANSLATE("PitchHalfStepsStart"), 0.0, -12.0, 12.0, 1 );
Param( HalfStepsEnd, double, wxTRANSLATE("PitchHalfStepsEnd"), 0.0, -12.0, 12.0, 1 );
Param( PitchPercentStart, double, wxTRANSLATE("PitchPercentChangeStart"), 0.0, -50.0, 100.0, 1 );
Param( PitchPercentEnd, double, wxTRANSLATE("PitchPercentChangeEnd"), 0.0, -50.0, 100.0, 1 );
// Name Type Key Def Min Max Scale
Param( RatePercentStart, double, XO("RatePercentChangeStart"), 0.0, -90.0, 500, 1 );
Param( RatePercentEnd, double, XO("RatePercentChangeEnd"), 0.0, -90.0, 500, 1 );
Param( HalfStepsStart, double, XO("PitchHalfStepsStart"), 0.0, -12.0, 12.0, 1 );
Param( HalfStepsEnd, double, XO("PitchHalfStepsEnd"), 0.0, -12.0, 12.0, 1 );
Param( PitchPercentStart, double, XO("PitchPercentChangeStart"), 0.0, -50.0, 100.0, 1 );
Param( PitchPercentEnd, double, XO("PitchPercentChangeEnd"), 0.0, -50.0, 100.0, 1 );
//
// EffectTimeScale
@ -84,12 +84,12 @@ wxString EffectTimeScale::GetSymbol()
wxString EffectTimeScale::GetName()
{
return wxTRANSLATE("Sliding Time Scale/Pitch Shift");
return XO("Sliding Time Scale/Pitch Shift");
}
wxString EffectTimeScale::GetDescription()
{
return wxTRANSLATE("Allows continuous changes to the tempo and/or pitch");
return XO("Allows continuous changes to the tempo and/or pitch");
}
// EffectIdentInterface implementation

View File

@ -24,7 +24,7 @@
#include "SBSMSEffect.h"
#define TIMESCALE_PLUGIN_SYMBOL wxTRANSLATE("Time Scale")
#define TIMESCALE_PLUGIN_SYMBOL XO("Time Scale")
class EffectTimeScale : public EffectSBSMS
{

View File

@ -41,8 +41,8 @@ enum kInterpolations
static const wxString kInterStrings[kNumInterpolations] =
{
wxTRANSLATE("Linear"),
wxTRANSLATE("Logarithmic")
XO("Linear"),
XO("Logarithmic")
};
enum kWaveforms
@ -56,23 +56,23 @@ enum kWaveforms
static const wxString kWaveStrings[kNumWaveforms] =
{
wxTRANSLATE("Sine"),
wxTRANSLATE("Square"),
wxTRANSLATE("Sawtooth"),
wxTRANSLATE("Square, no alias")
XO("Sine"),
XO("Square"),
XO("Sawtooth"),
XO("Square, no alias")
};
// Define keys, defaults, minimums, and maximums for the effect parameters
//
// Name Type Key Def Min Max Scale
Param( StartFreq, double, wxTRANSLATE("StartFreq"), 440.0, 1.0, DBL_MAX, 1 );
Param( EndFreq, double, wxTRANSLATE("EndFreq"), 1320.0, 1.0, DBL_MAX, 1 );
Param( StartAmp, double, wxTRANSLATE("StartAmp"), 0.8, 0.0, 1.0, 1 );
Param( EndAmp, double, wxTRANSLATE("EndAmp"), 0.1, 0.0, 1.0, 1 );
Param( Frequency, double, wxTRANSLATE("Frequency"), 440.0, 1.0, DBL_MAX, 1 );
Param( Amplitude, double, wxTRANSLATE("Amplitude"), 0.8, 0.0, 1.0, 1 );
Param( Waveform, int, wxTRANSLATE("Waveform"), 0, 0, kNumWaveforms - 1, 1 );
Param( Interp, int, wxTRANSLATE("Interpolation"), 0, 0, kNumInterpolations - 1, 1 );
// Name Type Key Def Min Max Scale
Param( StartFreq, double, XO("StartFreq"), 440.0, 1.0, DBL_MAX, 1 );
Param( EndFreq, double, XO("EndFreq"), 1320.0, 1.0, DBL_MAX, 1 );
Param( StartAmp, double, XO("StartAmp"), 0.8, 0.0, 1.0, 1 );
Param( EndAmp, double, XO("EndAmp"), 0.1, 0.0, 1.0, 1 );
Param( Frequency, double, XO("Frequency"), 440.0, 1.0, DBL_MAX, 1 );
Param( Amplitude, double, XO("Amplitude"), 0.8, 0.0, 1.0, 1 );
Param( Waveform, int, XO("Waveform"), 0, 0, kNumWaveforms - 1, 1 );
Param( Interp, int, XO("Interpolation"), 0, 0, kNumInterpolations - 1, 1 );
//
// EffectToneGen
@ -123,8 +123,8 @@ wxString EffectToneGen::GetSymbol()
wxString EffectToneGen::GetDescription()
{
return mChirp
? wxTRANSLATE("Generates four different types of tone waveform while allowing starting and ending amplitude and frequency")
: wxTRANSLATE("Generates four different types of tone waveform");
? XO("Generates four different types of tone waveform while allowing starting and ending amplitude and frequency")
: XO("Generates four different types of tone waveform");
}
// EffectIdentInterface implementation
@ -382,7 +382,7 @@ void EffectToneGen::PopulateOrExchange(ShuttleGui & S)
t = S.AddTextBox(_("Frequency (Hz):"), wxT(""), 12);
t->SetValidator(vldFrequency);
FloatingPointValidator<double> vldAmplitude(6, &mAmplitude[1], NUM_VAL_NO_TRAILING_ZEROES);
FloatingPointValidator<double> vldAmplitude(6, &mAmplitude[0], NUM_VAL_NO_TRAILING_ZEROES);
vldAmplitude.SetRange(MIN_Amplitude, MAX_Amplitude);
t = S.AddTextBox(_("Amplitude (0-1):"), wxT(""), 12);
t->SetValidator(vldAmplitude);

View File

@ -21,8 +21,8 @@
#include "Effect.h"
#define CHIRP_PLUGIN_SYMBOL wxTRANSLATE("Chirp")
#define TONE_PLUGIN_SYMBOL wxTRANSLATE("Tone")
#define CHIRP_PLUGIN_SYMBOL XO("Chirp")
#define TONE_PLUGIN_SYMBOL XO("Tone")
class EffectToneGen : public Effect
{

View File

@ -37,8 +37,8 @@ enum kActions
static const wxChar *kActionStrings[kNumActions] =
{
wxTRANSLATE("Truncate Detected Silence"),
wxTRANSLATE("Compress Excess Silence")
XO("Truncate Detected Silence"),
XO("Compress Excess Silence")
};
// Define defaults, minimums, and maximums for each parameter
@ -49,12 +49,12 @@ static const wxChar *kActionStrings[kNumActions] =
// Define keys, defaults, minimums, and maximums for the effect parameters
//
// Name Type Key Def Min Max Scale
Param( DbIndex, int, wxTRANSLATE("Db"), 0, 0, Enums::NumDbChoices - 1, 1 );
Param( ActIndex, int, wxTRANSLATE("Action"), kTruncate, 0, kNumActions - 1, 1 );
Param( Minimum, double, wxTRANSLATE("Minimum"), 0.5, 0.001, 10000.0, 1 );
Param( Truncate, double, wxTRANSLATE("Truncate"), 0.5, 0.0, 10000.0, 1 );
Param( Compress, double, wxTRANSLATE("Compress"), 50.0, 0.0, 99.9, 1 );
// Name Type Key Def Min Max Scale
Param( DbIndex, int, XO("Db"), 0, 0, Enums::NumDbChoices - 1, 1 );
Param( ActIndex, int, XO("Action"), kTruncate, 0, kNumActions - 1, 1 );
Param( Minimum, double, XO("Minimum"), 0.5, 0.001, 10000.0, 1 );
Param( Truncate, double, XO("Truncate"), 0.5, 0.0, 10000.0, 1 );
Param( Compress, double, XO("Compress"), 50.0, 0.0, 99.9, 1 );
static const sampleCount DEF_BlendFrameCount = 100;
@ -100,7 +100,7 @@ wxString EffectTruncSilence::GetSymbol()
wxString EffectTruncSilence::GetDescription()
{
return wxTRANSLATE("Automatically reduces the length of passages where the volume is below a specified level");
return XO("Automatically reduces the length of passages where the volume is below a specified level");
}
// EffectIdentInterface implementation

View File

@ -28,7 +28,7 @@
#include "Effect.h"
#define TRUNCATESILENCE_PLUGIN_SYMBOL wxTRANSLATE("Truncate Silence")
#define TRUNCATESILENCE_PLUGIN_SYMBOL XO("Truncate Silence")
// Declaration of RegionList
struct REGION;

View File

@ -306,17 +306,17 @@ wxString VSTEffectsModule::GetPath()
wxString VSTEffectsModule::GetSymbol()
{
return wxT("VST Effects");
return XO("VST Effects");
}
wxString VSTEffectsModule::GetName()
{
return _("VST Effects");
return GetSymbol();
}
wxString VSTEffectsModule::GetVendor()
{
return _("The Audacity Team");
return XO("The Audacity Team");
}
wxString VSTEffectsModule::GetVersion()
@ -327,7 +327,7 @@ wxString VSTEffectsModule::GetVersion()
wxString VSTEffectsModule::GetDescription()
{
return _("Adds the ability to use VST effects in Audacity.");
return XO("Adds the ability to use VST effects in Audacity.");
}
// ============================================================================

View File

@ -39,12 +39,12 @@ enum
// Define keys, defaults, minimums, and maximums for the effect parameters
//
// Name Type Key Def Min Max Scale
Param( Freq, double, wxTRANSLATE("Freq"), 1.5, 0.1, 4.0, 10 );
Param( Phase, double, wxTRANSLATE("Phase"), 0.0, 0.0, 359.0, 1 );
Param( Depth, int, wxTRANSLATE("Depth"), 70, 0, 100, 1 ); // scaled to 0-1 before processing
Param( Res, double, wxTRANSLATE("Resonance"), 2.5, 0.1, 10.0, 10 );
Param( FreqOfs, int, wxTRANSLATE("Offset"), 30, 0, 100, 1 ); // scaled to 0-1 before processing
// Name Type Key Def Min Max Scale
Param( Freq, double, XO("Freq"), 1.5, 0.1, 4.0, 10 );
Param( Phase, double, XO("Phase"), 0.0, 0.0, 359.0, 1 );
Param( Depth, int, XO("Depth"), 70, 0, 100, 1 ); // scaled to 0-1 before processing
Param( Res, double, XO("Resonance"), 2.5, 0.1, 10.0, 10 );
Param( FreqOfs, int, XO("Offset"), 30, 0, 100, 1 ); // scaled to 0-1 before processing
// How many samples are processed before recomputing the lfo value again
#define lfoskipsamples 30
@ -88,7 +88,7 @@ wxString EffectWahwah::GetSymbol()
wxString EffectWahwah::GetDescription()
{
return wxTRANSLATE("Rapid tone quality variations, like that guitar sound so popular in the 1970's");
return XO("Rapid tone quality variations, like that guitar sound so popular in the 1970's");
}
// EffectIdentInterface implementation

View File

@ -25,7 +25,7 @@
#include "Effect.h"
#define WAHWAH_PLUGIN_SYMBOL wxTRANSLATE("Wahwah")
#define WAHWAH_PLUGIN_SYMBOL XO("Wahwah")
class EffectWahwah : public Effect
{

View File

@ -91,12 +91,12 @@ wxString AudioUnitEffectsModule::GetSymbol()
wxString AudioUnitEffectsModule::GetName()
{
return _("Audio Unit Effects");
return XO("Audio Unit Effects");
}
wxString AudioUnitEffectsModule::GetVendor()
{
return _("The Audacity Team");
return XO("The Audacity Team");
}
wxString AudioUnitEffectsModule::GetVersion()
@ -107,7 +107,7 @@ wxString AudioUnitEffectsModule::GetVersion()
wxString AudioUnitEffectsModule::GetDescription()
{
return _("Provides Audio Unit Effects support to Audacity");
return XO("Provides Audio Unit Effects support to Audacity");
}
// ============================================================================

View File

@ -102,17 +102,17 @@ wxString LadspaEffectsModule::GetPath()
wxString LadspaEffectsModule::GetSymbol()
{
return wxT("LADSPA Effects");
return XO("LADSPA Effects");
}
wxString LadspaEffectsModule::GetName()
{
return wxTRANSLATE("LADSPA Effects");
return GetSymbol();
}
wxString LadspaEffectsModule::GetVendor()
{
return wxTRANSLATE("The Audacity Team");
return XO("The Audacity Team");
}
wxString LadspaEffectsModule::GetVersion()
@ -123,7 +123,7 @@ wxString LadspaEffectsModule::GetVersion()
wxString LadspaEffectsModule::GetDescription()
{
return wxTRANSLATE("Provides LADSPA Effects");
return XO("Provides LADSPA Effects");
}
// ============================================================================

View File

@ -68,7 +68,7 @@ wxString NyquistEffectsModule::GetPath()
wxString NyquistEffectsModule::GetSymbol()
{
return wxTRANSLATE("Nyquist Effects");
return XO("Nyquist Effects");
}
wxString NyquistEffectsModule::GetName()
@ -78,7 +78,7 @@ wxString NyquistEffectsModule::GetName()
wxString NyquistEffectsModule::GetVendor()
{
return wxTRANSLATE("The Audacity Team");
return XO("The Audacity Team");
}
wxString NyquistEffectsModule::GetVersion()
@ -89,7 +89,7 @@ wxString NyquistEffectsModule::GetVersion()
wxString NyquistEffectsModule::GetDescription()
{
return wxTRANSLATE("Provides Nyquist Effects support to Audacity");
return XO("Provides Nyquist Effects support to Audacity");
}
// ============================================================================

View File

@ -81,8 +81,8 @@ enum
#define UNINITIALIZED_CONTROL ((double)99999999.99)
static const wxChar *KEY_Version = wxTRANSLATE("Version");
static const wxChar *KEY_Command = wxTRANSLATE("Command");
static const wxChar *KEY_Version = XO("Version");
static const wxChar *KEY_Command = XO("Command");
///////////////////////////////////////////////////////////////////////////////
//
@ -134,7 +134,7 @@ NyquistEffect::NyquistEffect(wxString fName)
// Interactive Nyquist
if (fName == NYQUIST_PROMPT_ID)
{
mName = wxTRANSLATE("Nyquist Prompt");
mName = XO("Nyquist Prompt");
mType = EffectTypeProcess;
mOK = true;
mIsPrompt = true;
@ -168,7 +168,7 @@ wxString NyquistEffect::GetSymbol()
{
if (mIsPrompt)
{
return wxTRANSLATE("Nyquist Prompt");
return XO("Nyquist Prompt");
}
return mName;

View File

@ -81,12 +81,12 @@ wxString VampEffectsModule::GetSymbol()
wxString VampEffectsModule::GetName()
{
return wxTRANSLATE("Vamp Effects");
return XO("Vamp Effects");
}
wxString VampEffectsModule::GetVendor()
{
return wxTRANSLATE("The Audacity Team");
return XO("The Audacity Team");
}
wxString VampEffectsModule::GetVersion()
@ -97,7 +97,7 @@ wxString VampEffectsModule::GetVersion()
wxString VampEffectsModule::GetDescription()
{
return wxTRANSLATE("Provides Vamp Effects support to Audacity");
return XO("Provides Vamp Effects support to Audacity");
}
// ============================================================================