TranslatableString for ComponentInterface::GetDescription()

This commit is contained in:
Paul Licameli 2019-12-08 13:53:48 -05:00
parent 4eb220e7b9
commit 618fee21ec
154 changed files with 250 additions and 250 deletions

View File

@ -134,7 +134,7 @@ public:
// This returns a translated string
// Any verb should be present tense indicative, not imperative
virtual wxString GetDescription() = 0;
virtual TranslatableString GetDescription() = 0;
// non-virtual convenience function
const wxString GetTranslatedName();

View File

@ -61,8 +61,8 @@ class AUDACITY_DLL_API AudacityCommand /* not final */ : public wxEvtHandler,
//These two must be implemented by instances.
ComponentInterfaceSymbol GetSymbol() override = 0;
virtual wxString GetDescription() override
{wxFAIL_MSG( "Implement a Description for this command");return "FAIL";};
virtual TranslatableString GetDescription() override
{wxFAIL_MSG( "Implement a Description for this command");return XO("FAIL");};
// Name of page in the Audacity alpha manual
virtual wxString ManualPage(){ return wxEmptyString;};

View File

@ -30,7 +30,7 @@ class CompareAudioCommand final : public AudacityCommand
public:
// ComponentInterface overrides
ComponentInterfaceSymbol GetSymbol() override {return XO("Compare Audio");}
wxString GetDescription() override {return _("Compares a range on two tracks.");};
TranslatableString GetDescription() override {return XO("Compares a range on two tracks.");};
bool DefineParams( ShuttleParams & S ) override;
void PopulateOrExchange(ShuttleGui & S) override;

View File

@ -23,7 +23,7 @@ class DemoCommand final : public AudacityCommand
public:
// ComponentInterface overrides
ComponentInterfaceSymbol GetSymbol() override {return DEMO_PLUGIN_SYMBOL;};
wxString GetDescription() override {return _("Does the demo action.");};
TranslatableString GetDescription() override {return XO("Does the demo action.");};
bool DefineParams( ShuttleParams & S ) override;
void PopulateOrExchange(ShuttleGui & S) override;
bool Apply(const CommandContext & context) override;

View File

@ -27,7 +27,7 @@ public:
DragCommand();
// ComponentInterface overrides
ComponentInterfaceSymbol GetSymbol() override {return DRAG_PLUGIN_SYMBOL;};
wxString GetDescription() override {return _("Drags mouse from one place to another.");};
TranslatableString GetDescription() override {return XO("Drags mouse from one place to another.");};
bool DefineParams( ShuttleParams & S ) override;
void PopulateOrExchange(ShuttleGui & S) override;

View File

@ -33,7 +33,7 @@ class GetInfoCommand : public AudacityCommand
public:
// ComponentInterface overrides
ComponentInterfaceSymbol GetSymbol() override {return GET_INFO_PLUGIN_SYMBOL;};
wxString GetDescription() override {return _("Gets information in JSON format.");};
TranslatableString GetDescription() override {return XO("Gets information in JSON format.");};
bool DefineParams( ShuttleParams & S ) override;
void PopulateOrExchange(ShuttleGui & S) override;

View File

@ -27,7 +27,7 @@ public:
GetTrackInfoCommand();
// ComponentInterface overrides
ComponentInterfaceSymbol GetSymbol() override {return GET_TRACK_INFO_PLUGIN_SYMBOL;};
wxString GetDescription() override {return _("Gets track values as JSON.");};
TranslatableString GetDescription() override {return XO("Gets track values as JSON.");};
bool DefineParams( ShuttleParams & S ) override;
void PopulateOrExchange(ShuttleGui & S) override;

View File

@ -30,7 +30,7 @@ class HelpCommand : public AudacityCommand
public:
// ComponentInterface overrides
ComponentInterfaceSymbol GetSymbol() override {return HELP_PLUGIN_SYMBOL;};
wxString GetDescription() override {return _("Gives help on a command.");};
TranslatableString GetDescription() override {return XO("Gives help on a command.");};
bool DefineParams( ShuttleParams & S ) override;
void PopulateOrExchange(ShuttleGui & S) override;
bool Apply(const CommandContext & context) override;

View File

@ -30,7 +30,7 @@ class ImportCommand : public AudacityCommand
public:
// ComponentInterface overrides
ComponentInterfaceSymbol GetSymbol() override {return IMPORT_PLUGIN_SYMBOL;};
wxString GetDescription() override {return _("Imports from a file.");};
TranslatableString GetDescription() override {return XO("Imports from a file.");};
bool DefineParams( ShuttleParams & S ) override;
void PopulateOrExchange(ShuttleGui & S) override;
bool Apply(const CommandContext & context) override;
@ -48,7 +48,7 @@ class ExportCommand : public AudacityCommand
public:
// ComponentInterface overrides
ComponentInterfaceSymbol GetSymbol() override {return EXPORT_PLUGIN_SYMBOL;};
wxString GetDescription() override {return _("Exports to a file.");};
TranslatableString GetDescription() override {return XO("Exports to a file.");};
bool DefineParams( ShuttleParams & S ) override;
void PopulateOrExchange(ShuttleGui & S) override;
bool Apply(const CommandContext & context) override;

View File

@ -190,9 +190,9 @@ wxString BuiltinCommandsModule::GetVersion()
return AUDACITY_VERSION_STRING;
}
wxString BuiltinCommandsModule::GetDescription()
TranslatableString BuiltinCommandsModule::GetDescription()
{
return _("Provides builtin commands to Audacity");
return XO("Provides builtin commands to Audacity");
}
// ============================================================================

View File

@ -33,7 +33,7 @@ public:
ComponentInterfaceSymbol GetSymbol() override;
VendorSymbol GetVendor() override;
wxString GetVersion() override;
wxString GetDescription() override;
TranslatableString GetDescription() override;
// ModuleInterface implementation

View File

@ -31,7 +31,7 @@ class MessageCommand : public AudacityCommand
public:
// ComponentInterface overrides
ComponentInterfaceSymbol GetSymbol() override {return MESSAGE_PLUGIN_SYMBOL;};
wxString GetDescription() override {return _("Echos a message.");};
TranslatableString GetDescription() override {return XO("Echos a message.");};
bool DefineParams( ShuttleParams & S ) override;
void PopulateOrExchange(ShuttleGui & S) override;
bool Apply(const CommandContext & context) override;

View File

@ -28,7 +28,7 @@ class OpenProjectCommand : public AudacityCommand
public:
// ComponentInterface overrides
ComponentInterfaceSymbol GetSymbol() override {return OPEN_PROJECT_PLUGIN_SYMBOL;};
wxString GetDescription() override {return _("Opens a project.");};
TranslatableString GetDescription() override {return XO("Opens a project.");};
bool DefineParams( ShuttleParams & S ) override;
void PopulateOrExchange(ShuttleGui & S) override;
bool Apply(const CommandContext & context) override;
@ -48,7 +48,7 @@ class SaveProjectCommand : public AudacityCommand
public:
// ComponentInterface overrides
ComponentInterfaceSymbol GetSymbol() override {return SAVE_PROJECT_PLUGIN_SYMBOL;};
wxString GetDescription() override {return _("Saves a project.");};
TranslatableString GetDescription() override {return XO("Saves a project.");};
bool DefineParams( ShuttleParams & S ) override;
void PopulateOrExchange(ShuttleGui & S) override;
bool Apply(const CommandContext & context) override;

View File

@ -34,7 +34,7 @@ class GetPreferenceCommand final : public AudacityCommand
public:
// ComponentInterface overrides
ComponentInterfaceSymbol GetSymbol() override {return GET_PREFERENCE_PLUGIN_SYMBOL;};
wxString GetDescription() override {return _("Gets the value of a single preference.");};
TranslatableString GetDescription() override {return XO("Gets the value of a single preference.");};
bool DefineParams( ShuttleParams & S ) override;
void PopulateOrExchange(ShuttleGui & S) override;
bool Apply(const CommandContext & context) override;
@ -52,7 +52,7 @@ class SetPreferenceCommand final : public AudacityCommand
public:
// ComponentInterface overrides
ComponentInterfaceSymbol GetSymbol() override {return SET_PREFERENCE_PLUGIN_SYMBOL;};
wxString GetDescription() override {return _("Sets the value of a single preference.");};
TranslatableString GetDescription() override {return XO("Sets the value of a single preference.");};
bool DefineParams( ShuttleParams & S ) override;
void PopulateOrExchange(ShuttleGui & S) override;
bool Apply(const CommandContext & context) override;

View File

@ -81,7 +81,7 @@ public:
ScreenshotCommand();
// ComponentInterface overrides
ComponentInterfaceSymbol GetSymbol() override {return SCREENSHOT_PLUGIN_SYMBOL;};
wxString GetDescription() override {return _("Takes screenshots.");};
TranslatableString GetDescription() override {return XO("Takes screenshots.");};
bool DefineParams( ShuttleParams & S ) override;
void PopulateOrExchange(ShuttleGui & S) override;

View File

@ -35,7 +35,7 @@ class SelectTimeCommand : public AudacityCommand
public:
// ComponentInterface overrides
ComponentInterfaceSymbol GetSymbol() override {return SELECT_TIME_PLUGIN_SYMBOL;};
wxString GetDescription() override {return _("Selects a time range.");};
TranslatableString GetDescription() override {return XO("Selects a time range.");};
bool DefineParams( ShuttleParams & S ) override;
void PopulateOrExchange(ShuttleGui & S) override;
bool Apply(const CommandContext & context) override;
@ -59,7 +59,7 @@ class SelectFrequenciesCommand : public AudacityCommand
public:
// ComponentInterface overrides
ComponentInterfaceSymbol GetSymbol() override {return SELECT_FREQUENCIES_PLUGIN_SYMBOL;};
wxString GetDescription() override {return _("Selects a frequency range.");};
TranslatableString GetDescription() override {return XO("Selects a frequency range.");};
bool DefineParams( ShuttleParams & S ) override;
void PopulateOrExchange(ShuttleGui & S) override;
bool Apply(const CommandContext & context) override;
@ -80,7 +80,7 @@ class SelectTracksCommand : public AudacityCommand
public:
// ComponentInterface overrides
ComponentInterfaceSymbol GetSymbol() override {return SELECT_TRACKS_PLUGIN_SYMBOL;};
wxString GetDescription() override {return _("Selects a range of tracks.");};
TranslatableString GetDescription() override {return XO("Selects a range of tracks.");};
bool DefineParams( ShuttleParams & S ) override;
void PopulateOrExchange(ShuttleGui & S) override;
bool Apply(const CommandContext & context) override;
@ -102,7 +102,7 @@ class SelectCommand : public AudacityCommand
public:
// ComponentInterface overrides
ComponentInterfaceSymbol GetSymbol() override {return SELECT_PLUGIN_SYMBOL;};
wxString GetDescription() override {return _("Selects Audio.");};
TranslatableString GetDescription() override {return XO("Selects Audio.");};
bool DefineParams( ShuttleParams & S ) override {
return
mSelTime.DefineParams(S) &&

View File

@ -26,7 +26,7 @@ public:
SetClipCommand();
// ComponentInterface overrides
ComponentInterfaceSymbol GetSymbol() override {return SET_CLIP_PLUGIN_SYMBOL;};
wxString GetDescription() override {return _("Sets various values for a clip.");};
TranslatableString GetDescription() override {return XO("Sets various values for a clip.");};
bool DefineParams( ShuttleParams & S ) override;
void PopulateOrExchange(ShuttleGui & S) override;

View File

@ -26,7 +26,7 @@ public:
SetEnvelopeCommand();
// ComponentInterface overrides
ComponentInterfaceSymbol GetSymbol() override {return SET_ENVELOPE_PLUGIN_SYMBOL;};
wxString GetDescription() override {return _("Sets an envelope point position.");};
TranslatableString GetDescription() override {return XO("Sets an envelope point position.");};
bool DefineParams( ShuttleParams & S ) override;
void PopulateOrExchange(ShuttleGui & S) override;

View File

@ -27,7 +27,7 @@ public:
SetLabelCommand();
// ComponentInterface overrides
ComponentInterfaceSymbol GetSymbol() override {return SET_LABEL_PLUGIN_SYMBOL;};
wxString GetDescription() override {return _("Sets various values for a label.");};
TranslatableString GetDescription() override {return XO("Sets various values for a label.");};
bool DefineParams( ShuttleParams & S ) override;
void PopulateOrExchange(ShuttleGui & S) override;

View File

@ -28,7 +28,7 @@ public:
SetProjectCommand();
// ComponentInterface overrides
ComponentInterfaceSymbol GetSymbol() override {return SET_PROJECT_PLUGIN_SYMBOL;};
wxString GetDescription() override {return _("Sets various values for a project.");};
TranslatableString GetDescription() override {return XO("Sets various values for a project.");};
bool DefineParams( ShuttleParams & S ) override;
void PopulateOrExchange(ShuttleGui & S) override;

View File

@ -52,7 +52,7 @@ public:
//SetTrackStatusCommand();
// ComponentInterface overrides
ComponentInterfaceSymbol GetSymbol() override {return SET_TRACK_STATUS_PLUGIN_SYMBOL;};
wxString GetDescription() override {return _("Sets various values for a track.");};
TranslatableString GetDescription() override {return XO("Sets various values for a track.");};
bool DefineParams( ShuttleParams & S ) override;
void PopulateOrExchange(ShuttleGui & S) override;
@ -77,7 +77,7 @@ public:
//SetTrackAudioCommand();
// ComponentInterface overrides
ComponentInterfaceSymbol GetSymbol() override {return SET_TRACK_AUDIO_PLUGIN_SYMBOL;};
wxString GetDescription() override {return _("Sets various values for a track.");};
TranslatableString GetDescription() override {return XO("Sets various values for a track.");};
bool DefineParams( ShuttleParams & S ) override;
void PopulateOrExchange(ShuttleGui & S) override;
@ -104,7 +104,7 @@ public:
//SetTrackVisualsCommand();
// ComponentInterface overrides
ComponentInterfaceSymbol GetSymbol() override {return SET_TRACK_VISUALS_PLUGIN_SYMBOL;};
wxString GetDescription() override {return _("Sets various values for a track.");};
TranslatableString GetDescription() override {return XO("Sets various values for a track.");};
bool DefineParams( ShuttleParams & S ) override;
void PopulateOrExchange(ShuttleGui & S) override;
@ -145,7 +145,7 @@ public:
SetTrackCommand();
// ComponentInterface overrides
ComponentInterfaceSymbol GetSymbol() override {return SET_TRACK_PLUGIN_SYMBOL;};
wxString GetDescription() override {return _("Sets various values for a track.");};
TranslatableString GetDescription() override {return XO("Sets various values for a track.");};
// AudacityCommand overrides
wxString ManualPage() override {return wxT("Extra_Menu:_Scriptables_II#set_track");};

View File

@ -87,10 +87,10 @@ ComponentInterfaceSymbol EffectAmplify::GetSymbol()
return AMPLIFY_PLUGIN_SYMBOL;
}
wxString EffectAmplify::GetDescription()
TranslatableString EffectAmplify::GetDescription()
{
// Note: This is useful only after ratio has been set.
return _("Increases or decreases the volume of the audio you have selected");
return XO("Increases or decreases the volume of the audio you have selected");
}
wxString EffectAmplify::ManualPage()

View File

@ -33,7 +33,7 @@ public:
// ComponentInterface implementation
ComponentInterfaceSymbol GetSymbol() override;
wxString GetDescription() override;
TranslatableString GetDescription() override;
wxString ManualPage() override;
// EffectDefinitionInterface implementation

View File

@ -106,9 +106,9 @@ ComponentInterfaceSymbol EffectAutoDuck::GetSymbol()
return AUTODUCK_PLUGIN_SYMBOL;
}
wxString EffectAutoDuck::GetDescription()
TranslatableString EffectAutoDuck::GetDescription()
{
return _("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");
}
wxString EffectAutoDuck::ManualPage()

View File

@ -31,7 +31,7 @@ public:
// ComponentInterface implementation
ComponentInterfaceSymbol GetSymbol() override;
wxString GetDescription() override;
TranslatableString GetDescription() override;
wxString ManualPage() override;
// EffectDefinitionInterface implementation

View File

@ -89,9 +89,9 @@ ComponentInterfaceSymbol EffectBassTreble::GetSymbol()
return BASSTREBLE_PLUGIN_SYMBOL;
}
wxString EffectBassTreble::GetDescription()
TranslatableString EffectBassTreble::GetDescription()
{
return _("Simple tone control effect");
return XO("Simple tone control effect");
}
wxString EffectBassTreble::ManualPage()

View File

@ -44,7 +44,7 @@ public:
// ComponentInterface implementation
ComponentInterfaceSymbol GetSymbol() override;
wxString GetDescription() override;
TranslatableString GetDescription() override;
wxString ManualPage() override;
// EffectDefinitionInterface implementation

View File

@ -139,9 +139,9 @@ ComponentInterfaceSymbol EffectChangePitch::GetSymbol()
return CHANGEPITCH_PLUGIN_SYMBOL;
}
wxString EffectChangePitch::GetDescription()
TranslatableString EffectChangePitch::GetDescription()
{
return _("Changes the pitch of a track without changing its tempo");
return XO("Changes the pitch of a track without changing its tempo");
}
wxString EffectChangePitch::ManualPage()

View File

@ -45,7 +45,7 @@ public:
// ComponentInterface implementation
ComponentInterfaceSymbol GetSymbol() override;
wxString GetDescription() override;
TranslatableString GetDescription() override;
wxString ManualPage() override;
// EffectDefinitionInterface implementation

View File

@ -113,9 +113,9 @@ ComponentInterfaceSymbol EffectChangeSpeed::GetSymbol()
return CHANGESPEED_PLUGIN_SYMBOL;
}
wxString EffectChangeSpeed::GetDescription()
TranslatableString EffectChangeSpeed::GetDescription()
{
return _("Changes the speed of a track, also changing its pitch");
return XO("Changes the speed of a track, also changing its pitch");
}
wxString EffectChangeSpeed::ManualPage()

View File

@ -32,7 +32,7 @@ public:
// ComponentInterface implementation
ComponentInterfaceSymbol GetSymbol() override;
wxString GetDescription() override;
TranslatableString GetDescription() override;
wxString ManualPage() override;
// EffectDefinitionInterface implementation

View File

@ -113,9 +113,9 @@ ComponentInterfaceSymbol EffectChangeTempo::GetSymbol()
return CHANGETEMPO_PLUGIN_SYMBOL;
}
wxString EffectChangeTempo::GetDescription()
TranslatableString EffectChangeTempo::GetDescription()
{
return _("Changes the tempo of a selection without changing its pitch");
return XO("Changes the tempo of a selection without changing its pitch");
}
wxString EffectChangeTempo::ManualPage()

View File

@ -39,7 +39,7 @@ public:
// ComponentInterface implementation
ComponentInterfaceSymbol GetSymbol() override;
wxString GetDescription() override;
TranslatableString GetDescription() override;
wxString ManualPage() override;
// EffectDefinitionInterface implementation

View File

@ -82,9 +82,9 @@ ComponentInterfaceSymbol EffectClickRemoval::GetSymbol()
return CLICKREMOVAL_PLUGIN_SYMBOL;
}
wxString EffectClickRemoval::GetDescription()
TranslatableString EffectClickRemoval::GetDescription()
{
return _("Click Removal is designed to remove clicks on audio tracks");
return XO("Click Removal is designed to remove clicks on audio tracks");
}
wxString EffectClickRemoval::ManualPage()

View File

@ -34,7 +34,7 @@ public:
// ComponentInterface implementation
ComponentInterfaceSymbol GetSymbol() override;
wxString GetDescription() override;
TranslatableString GetDescription() override;
wxString ManualPage() override;
// EffectDefinitionInterface implementation

View File

@ -104,9 +104,9 @@ ComponentInterfaceSymbol EffectCompressor::GetSymbol()
return COMPRESSOR_PLUGIN_SYMBOL;
}
wxString EffectCompressor::GetDescription()
TranslatableString EffectCompressor::GetDescription()
{
return _("Compresses the dynamic range of audio");
return XO("Compresses the dynamic range of audio");
}
wxString EffectCompressor::ManualPage()

View File

@ -31,7 +31,7 @@ public:
// ComponentInterface implementation
ComponentInterfaceSymbol GetSymbol() override;
wxString GetDescription() override;
TranslatableString GetDescription() override;
wxString ManualPage() override;
// EffectDefinitionInterface implementation

View File

@ -195,9 +195,9 @@ ComponentInterfaceSymbol EffectDistortion::GetSymbol()
return DISTORTION_PLUGIN_SYMBOL;
}
wxString EffectDistortion::GetDescription()
TranslatableString EffectDistortion::GetDescription()
{
return _("Waveshaping distortion effect");
return XO("Waveshaping distortion effect");
}
wxString EffectDistortion::ManualPage()

View File

@ -63,7 +63,7 @@ public:
// ComponentInterface implementation
ComponentInterfaceSymbol GetSymbol() override;
wxString GetDescription() override;
TranslatableString GetDescription() override;
wxString ManualPage() override;
// EffectDefinitionInterface implementation

View File

@ -101,9 +101,9 @@ ComponentInterfaceSymbol EffectDtmf::GetSymbol()
return DTMFTONES_PLUGIN_SYMBOL;
}
wxString EffectDtmf::GetDescription()
TranslatableString EffectDtmf::GetDescription()
{
return _("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");
}
wxString EffectDtmf::ManualPage()

View File

@ -33,7 +33,7 @@ public:
// ComponentInterface implementation
ComponentInterfaceSymbol GetSymbol() override;
wxString GetDescription() override;
TranslatableString GetDescription() override;
wxString ManualPage() override;
// EffectDefinitionInterface implementation

View File

@ -56,9 +56,9 @@ ComponentInterfaceSymbol EffectEcho::GetSymbol()
return ECHO_PLUGIN_SYMBOL;
}
wxString EffectEcho::GetDescription()
TranslatableString EffectEcho::GetDescription()
{
return _("Repeats the selected audio again and again");
return XO("Repeats the selected audio again and again");
}
wxString EffectEcho::ManualPage()

View File

@ -27,7 +27,7 @@ public:
// ComponentInterface implementation
ComponentInterfaceSymbol GetSymbol() override;
wxString GetDescription() override;
TranslatableString GetDescription() override;
wxString ManualPage() override;
// EffectDefinitionInterface implementation

View File

@ -224,14 +224,14 @@ wxString Effect::GetVersion()
return AUDACITY_VERSION_STRING;
}
wxString Effect::GetDescription()
TranslatableString Effect::GetDescription()
{
if (mClient)
{
return mClient->GetDescription();
}
return wxEmptyString;
return {};
}
EffectFamilySymbol Effect::GetFamily()
@ -3238,7 +3238,7 @@ void EffectUIHost::OnMenu(wxCommandEvent & WXUNUSED(evt))
sub->Append(kDummyID, wxString::Format(_("Name: %s"), mEffect->GetTranslatedName()));
sub->Append(kDummyID, wxString::Format(_("Version: %s"), mEffect->GetVersion()));
sub->Append(kDummyID, wxString::Format(_("Vendor: %s"), mEffect->GetVendor().Translation()));
sub->Append(kDummyID, wxString::Format(_("Description: %s"), mEffect->GetDescription()));
sub->Append(kDummyID, wxString::Format(_("Description: %s"), mEffect->GetDescription().Translation()));
menu.Append(0, _("About"), sub.release());
}

View File

@ -95,7 +95,7 @@ class AUDACITY_DLL_API Effect /* not final */ : public wxEvtHandler,
VendorSymbol GetVendor() override;
wxString GetVersion() override;
wxString GetDescription() override;
TranslatableString GetDescription() override;
// EffectDefinitionInterface implementation

View File

@ -367,10 +367,10 @@ wxString EffectManager::GetCommandTip(const PluginID & ID)
{
Effect* pEff = GetEffect(ID);
if( pEff )
return pEff->GetDescription();
return pEff->GetDescription().Translation();
AudacityCommand * pCom = GetAudacityCommand(ID);
if( pCom )
return pCom->GetDescription();
return pCom->GetDescription().Translation();
return wxEmptyString;
}

View File

@ -310,9 +310,9 @@ ComponentInterfaceSymbol EffectEqualization::GetSymbol()
return EQUALIZATION_PLUGIN_SYMBOL;
}
wxString EffectEqualization::GetDescription()
TranslatableString EffectEqualization::GetDescription()
{
return _("Adjusts the volume levels of particular frequencies");
return XO("Adjusts the volume levels of particular frequencies");
}
wxString EffectEqualization::ManualPage()

View File

@ -108,7 +108,7 @@ public:
// ComponentInterface implementation
ComponentInterfaceSymbol GetSymbol() override;
wxString GetDescription() override;
TranslatableString GetDescription() override;
wxString ManualPage() override;
// EffectDefinitionInterface implementation

View File

@ -36,11 +36,11 @@ ComponentInterfaceSymbol EffectFade::GetSymbol()
: FADEOUT_PLUGIN_SYMBOL;
}
wxString EffectFade::GetDescription()
TranslatableString EffectFade::GetDescription()
{
return mFadeIn
? _("Applies a linear fade-in to the selected audio")
: _("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");
}
// EffectDefinitionInterface implementation

View File

@ -25,7 +25,7 @@ public:
// ComponentInterface implementation
ComponentInterfaceSymbol GetSymbol() override;
wxString GetDescription() override;
TranslatableString GetDescription() override;
// EffectDefinitionInterface implementation

View File

@ -57,9 +57,9 @@ ComponentInterfaceSymbol EffectFindClipping::GetSymbol()
return FINDCLIPPING_PLUGIN_SYMBOL;
}
wxString EffectFindClipping::GetDescription()
TranslatableString EffectFindClipping::GetDescription()
{
return _("Creates labels where clipping is detected");
return XO("Creates labels where clipping is detected");
}
wxString EffectFindClipping::ManualPage()

View File

@ -29,7 +29,7 @@ public:
// ComponentInterface implementation
ComponentInterfaceSymbol GetSymbol() override;
wxString GetDescription() override;
TranslatableString GetDescription() override;
wxString ManualPage() override;
// EffectDefinitionInterface implementation

View File

@ -34,9 +34,9 @@ ComponentInterfaceSymbol EffectInvert::GetSymbol()
return INVERT_PLUGIN_SYMBOL;
}
wxString EffectInvert::GetDescription()
TranslatableString EffectInvert::GetDescription()
{
return _("Flips the audio samples upside-down, reversing their polarity");
return XO("Flips the audio samples upside-down, reversing their polarity");
}
// EffectDefinitionInterface implementation

View File

@ -26,7 +26,7 @@ public:
// ComponentInterface implementation
ComponentInterfaceSymbol GetSymbol() override;
wxString GetDescription() override;
TranslatableString GetDescription() override;
// EffectDefinitionInterface implementation

View File

@ -260,9 +260,9 @@ wxString BuiltinEffectsModule::GetVersion()
return AUDACITY_VERSION_STRING;
}
wxString BuiltinEffectsModule::GetDescription()
TranslatableString BuiltinEffectsModule::GetDescription()
{
return _("Provides builtin effects to Audacity");
return XO("Provides builtin effects to Audacity");
}
// ============================================================================

View File

@ -32,7 +32,7 @@ public:
ComponentInterfaceSymbol GetSymbol() override;
VendorSymbol GetVendor() override;
wxString GetVersion() override;
wxString GetDescription() override;
TranslatableString GetDescription() override;
// ModuleInterface implementation

View File

@ -80,9 +80,9 @@ ComponentInterfaceSymbol EffectLoudness::GetSymbol()
return LOUDNESS_PLUGIN_SYMBOL;
}
wxString EffectLoudness::GetDescription()
TranslatableString EffectLoudness::GetDescription()
{
return _("Sets the loudness of one or more tracks");
return XO("Sets the loudness of one or more tracks");
}
wxString EffectLoudness::ManualPage()

View File

@ -35,7 +35,7 @@ public:
// ComponentInterface implementation
ComponentInterfaceSymbol GetSymbol() override;
wxString GetDescription() override;
TranslatableString GetDescription() override;
wxString ManualPage() override;
// EffectDefinitionInterface implementation

View File

@ -76,9 +76,9 @@ ComponentInterfaceSymbol EffectNoise::GetSymbol()
return NOISE_PLUGIN_SYMBOL;
}
wxString EffectNoise::GetDescription()
TranslatableString EffectNoise::GetDescription()
{
return _("Generates one of three different types of noise");
return XO("Generates one of three different types of noise");
}
wxString EffectNoise::ManualPage()

View File

@ -29,7 +29,7 @@ public:
// ComponentInterface implementation
ComponentInterfaceSymbol GetSymbol() override;
wxString GetDescription() override;
TranslatableString GetDescription() override;
wxString ManualPage() override;
// EffectDefinitionInterface implementation

View File

@ -437,9 +437,9 @@ ComponentInterfaceSymbol EffectNoiseReduction::GetSymbol()
return NOISEREDUCTION_PLUGIN_SYMBOL;
}
wxString EffectNoiseReduction::GetDescription()
TranslatableString EffectNoiseReduction::GetDescription()
{
return _("Removes background noise such as fans, tape noise, or hums");
return XO("Removes background noise such as fans, tape noise, or hums");
}
// EffectDefinitionInterface implementation

View File

@ -28,7 +28,7 @@ public:
// ComponentInterface implementation
ComponentInterfaceSymbol GetSymbol() override;
wxString GetDescription() override;
TranslatableString GetDescription() override;
// EffectDefinitionInterface implementation

View File

@ -114,9 +114,9 @@ ComponentInterfaceSymbol EffectNoiseRemoval::GetSymbol()
return XO("Noise Removal");
}
wxString EffectNoiseRemoval::GetDescription()
TranslatableString EffectNoiseRemoval::GetDescription()
{
return _("Removes constant background noise such as fans, tape noise, or hums");
return XO("Removes constant background noise such as fans, tape noise, or hums");
}
// EffectDefinitionInterface implementation

View File

@ -44,7 +44,7 @@ public:
// ComponentInterface implementation
ComponentInterfaceSymbol GetSymbol() override;
wxString GetDescription() override;
TranslatableString GetDescription() override;
// EffectDefinitionInterface implementation

View File

@ -69,9 +69,9 @@ ComponentInterfaceSymbol EffectNormalize::GetSymbol()
return NORMALIZE_PLUGIN_SYMBOL;
}
wxString EffectNormalize::GetDescription()
TranslatableString EffectNormalize::GetDescription()
{
return _("Sets the peak amplitude of one or more tracks");
return XO("Sets the peak amplitude of one or more tracks");
}
wxString EffectNormalize::ManualPage()

View File

@ -33,7 +33,7 @@ public:
// ComponentInterface implementation
ComponentInterfaceSymbol GetSymbol() override;
wxString GetDescription() override;
TranslatableString GetDescription() override;
wxString ManualPage() override;
// EffectDefinitionInterface implementation

View File

@ -106,9 +106,9 @@ ComponentInterfaceSymbol EffectPaulstretch::GetSymbol()
return PAULSTRETCH_PLUGIN_SYMBOL;
}
wxString EffectPaulstretch::GetDescription()
TranslatableString EffectPaulstretch::GetDescription()
{
return _("Paulstretch is only for an extreme time-stretch or \"stasis\" effect");
return XO("Paulstretch is only for an extreme time-stretch or \"stasis\" effect");
}
wxString EffectPaulstretch::ManualPage()

View File

@ -25,7 +25,7 @@ public:
// ComponentInterface implementation
ComponentInterfaceSymbol GetSymbol() override;
wxString GetDescription() override;
TranslatableString GetDescription() override;
wxString ManualPage() override;
// EffectDefinitionInterface implementation

View File

@ -106,9 +106,9 @@ ComponentInterfaceSymbol EffectPhaser::GetSymbol()
return PHASER_PLUGIN_SYMBOL;
}
wxString EffectPhaser::GetDescription()
TranslatableString EffectPhaser::GetDescription()
{
return _("Combines phase-shifted signals with the original signal");
return XO("Combines phase-shifted signals with the original signal");
}
wxString EffectPhaser::ManualPage()

View File

@ -50,7 +50,7 @@ public:
// ComponentInterface implementation
ComponentInterfaceSymbol GetSymbol() override;
wxString GetDescription() override;
TranslatableString GetDescription() override;
wxString ManualPage() override;
// EffectDefinitionInterface implementation

View File

@ -47,9 +47,9 @@ ComponentInterfaceSymbol EffectRepair::GetSymbol()
return REPAIR_PLUGIN_SYMBOL;
}
wxString EffectRepair::GetDescription()
TranslatableString EffectRepair::GetDescription()
{
return _("Sets the peak amplitude of a one or more tracks");
return XO("Sets the peak amplitude of a one or more tracks");
}
// EffectDefinitionInterface implementation

View File

@ -26,7 +26,7 @@ public:
// ComponentInterface implementation
ComponentInterfaceSymbol GetSymbol() override;
wxString GetDescription() override;
TranslatableString GetDescription() override;
// EffectDefinitionInterface implementation

View File

@ -63,9 +63,9 @@ ComponentInterfaceSymbol EffectRepeat::GetSymbol()
return REPEAT_PLUGIN_SYMBOL;
}
wxString EffectRepeat::GetDescription()
TranslatableString EffectRepeat::GetDescription()
{
return _("Repeats the selection the specified number of times");
return XO("Repeats the selection the specified number of times");
}
wxString EffectRepeat::ManualPage()

View File

@ -29,7 +29,7 @@ public:
// ComponentInterface implementation
ComponentInterfaceSymbol GetSymbol() override;
wxString GetDescription() override;
TranslatableString GetDescription() override;
wxString ManualPage() override;
// EffectDefinitionInterface implementation

View File

@ -138,9 +138,9 @@ ComponentInterfaceSymbol EffectReverb::GetSymbol()
return REVERB_PLUGIN_SYMBOL;
}
wxString EffectReverb::GetDescription()
TranslatableString EffectReverb::GetDescription()
{
return _("Adds ambience or a \"hall effect\"");
return XO("Adds ambience or a \"hall effect\"");
}
wxString EffectReverb::ManualPage()

View File

@ -46,7 +46,7 @@ public:
// ComponentInterface implementation
ComponentInterfaceSymbol GetSymbol() override;
wxString GetDescription() override;
TranslatableString GetDescription() override;
wxString ManualPage() override;
// EffectDefinitionInterface implementation

View File

@ -44,9 +44,9 @@ ComponentInterfaceSymbol EffectReverse::GetSymbol()
return REVERSE_PLUGIN_SYMBOL;
}
wxString EffectReverse::GetDescription()
TranslatableString EffectReverse::GetDescription()
{
return _("Reverses the selected audio");
return XO("Reverses the selected audio");
}
// EffectDefinitionInterface implementation

View File

@ -26,7 +26,7 @@ public:
// ComponentInterface implementation
ComponentInterfaceSymbol GetSymbol() override;
wxString GetDescription() override;
TranslatableString GetDescription() override;
// EffectDefinitionInterface implementation

View File

@ -177,9 +177,10 @@ ComponentInterfaceSymbol EffectScienFilter::GetSymbol()
return CLASSICFILTERS_PLUGIN_SYMBOL;
}
wxString EffectScienFilter::GetDescription()
TranslatableString EffectScienFilter::GetDescription()
{
return _("Performs IIR filtering that emulates analog filters");
/* i18n-hint: "infinite impulse response" */
return XO("Performs IIR filtering that emulates analog filters");
}
wxString EffectScienFilter::ManualPage()

View File

@ -40,7 +40,7 @@ public:
// ComponentInterface implementation
ComponentInterfaceSymbol GetSymbol() override;
wxString GetDescription() override;
TranslatableString GetDescription() override;
wxString ManualPage() override;
// EffectDefinitionInterface implementation

View File

@ -38,9 +38,9 @@ ComponentInterfaceSymbol EffectSilence::GetSymbol()
return SILENCE_PLUGIN_SYMBOL;
}
wxString EffectSilence::GetDescription()
TranslatableString EffectSilence::GetDescription()
{
return _("Creates audio of zero amplitude");
return XO("Creates audio of zero amplitude");
}
wxString EffectSilence::ManualPage()

View File

@ -28,7 +28,7 @@ public:
// ComponentInterface implementation
ComponentInterfaceSymbol GetSymbol() override;
wxString GetDescription() override;
TranslatableString GetDescription() override;
wxString ManualPage() override;
// EffectDefinitionInterface implementation

View File

@ -36,9 +36,9 @@ ComponentInterfaceSymbol EffectStereoToMono::GetSymbol()
return STEREOTOMONO_PLUGIN_SYMBOL;
}
wxString EffectStereoToMono::GetDescription()
TranslatableString EffectStereoToMono::GetDescription()
{
return _("Converts stereo tracks to mono");
return XO("Converts stereo tracks to mono");
}
// EffectDefinitionInterface implementation

View File

@ -24,7 +24,7 @@ public:
// ComponentInterface implementation
ComponentInterfaceSymbol GetSymbol() override;
wxString GetDescription() override;
TranslatableString GetDescription() override;
// EffectDefinitionInterface implementation

View File

@ -90,9 +90,9 @@ ComponentInterfaceSymbol EffectTimeScale::GetSymbol()
return TIMESCALE_PLUGIN_SYMBOL;
}
wxString EffectTimeScale::GetDescription()
TranslatableString EffectTimeScale::GetDescription()
{
return _("Allows continuous changes to the tempo and/or pitch");
return XO("Allows continuous changes to the tempo and/or pitch");
}
wxString EffectTimeScale::ManualPage()

View File

@ -36,7 +36,7 @@ public:
// ComponentInterface implementation
ComponentInterfaceSymbol GetSymbol() override;
wxString GetDescription() override;
TranslatableString GetDescription() override;
wxString ManualPage() override;
// EffectDefinitionInterface implementation

View File

@ -121,11 +121,11 @@ ComponentInterfaceSymbol EffectToneGen::GetSymbol()
: TONE_PLUGIN_SYMBOL;
}
wxString EffectToneGen::GetDescription()
TranslatableString EffectToneGen::GetDescription()
{
return mChirp
? _("Generates an ascending or descending tone of one of four types")
: _("Generates a constant frequency tone of one of four types");
? XO("Generates an ascending or descending tone of one of four types")
: XO("Generates a constant frequency tone of one of four types");
}
wxString EffectToneGen::ManualPage()

View File

@ -30,7 +30,7 @@ public:
// ComponentInterface implementation
ComponentInterfaceSymbol GetSymbol() override;
wxString GetDescription() override;
TranslatableString GetDescription() override;
wxString ManualPage() override;
// EffectDefinitionInterface implementation

View File

@ -157,9 +157,9 @@ ComponentInterfaceSymbol EffectTruncSilence::GetSymbol()
return TRUNCATESILENCE_PLUGIN_SYMBOL;
}
wxString EffectTruncSilence::GetDescription()
TranslatableString EffectTruncSilence::GetDescription()
{
return _("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");
}
wxString EffectTruncSilence::ManualPage()

View File

@ -37,7 +37,7 @@ public:
// ComponentInterface implementation
ComponentInterfaceSymbol GetSymbol() override;
wxString GetDescription() override;
TranslatableString GetDescription() override;
wxString ManualPage() override;
// EffectDefinitionInterface implementation

View File

@ -249,7 +249,7 @@ public:
return mVersion;
}
wxString GetDescription() override
TranslatableString GetDescription() override
{
return mDescription;
}
@ -294,7 +294,7 @@ public:
wxString mName;
wxString mVendor;
wxString mVersion;
wxString mDescription;
TranslatableString mDescription;
EffectType mType;
bool mInteractive;
bool mAutomatable;
@ -345,9 +345,9 @@ wxString VSTEffectsModule::GetVersion()
return AUDACITY_VERSION_STRING;
}
wxString VSTEffectsModule::GetDescription()
TranslatableString VSTEffectsModule::GetDescription()
{
return _("Adds the ability to use VST effects in Audacity.");
return XO("Adds the ability to use VST effects in Audacity.");
}
// ============================================================================
@ -618,7 +618,7 @@ unsigned VSTEffectsModule::DiscoverPluginsAtPath(
break;
case kKeyDescription:
proc.mDescription = val;
proc.mDescription = TranslatableString{ val };
keycount++;
break;
@ -741,7 +741,7 @@ void VSTEffectsModule::Check(const wxChar *path)
out += wxString::Format(wxT("%s%d=%s\n"), OUTPUTKEY, kKeyVendor,
effect.GetVendor().Internal());
out += wxString::Format(wxT("%s%d=%s\n"), OUTPUTKEY, kKeyVersion, effect.GetVersion());
out += wxString::Format(wxT("%s%d=%s\n"), OUTPUTKEY, kKeyDescription, effect.GetDescription());
out += wxString::Format(wxT("%s%d=%s\n"), OUTPUTKEY, kKeyDescription, effect.GetDescription().Translation());
out += wxString::Format(wxT("%s%d=%d\n"), OUTPUTKEY, kKeyEffectType, effect.GetType());
out += wxString::Format(wxT("%s%d=%d\n"), OUTPUTKEY, kKeyInteractive, effect.IsInteractive());
out += wxString::Format(wxT("%s%d=%d\n"), OUTPUTKEY, kKeyAutomatable, effect.SupportsAutomation());
@ -1228,13 +1228,12 @@ wxString VSTEffect::GetVersion()
return version;
}
wxString VSTEffect::GetDescription()
TranslatableString VSTEffect::GetDescription()
{
// VST does have a product string opcode and some effects return a short
// description, but most do not or they just return the name again. So,
// try to provide some sort of useful information.
return wxString::Format( _("Audio In: %d, Audio Out: %d"),
mAudioIns, mAudioOuts);
return XO("Audio In: %d, Audio Out: %d").Format( mAudioIns, mAudioOuts );
}
// ============================================================================

View File

@ -105,7 +105,7 @@ class VSTEffect final : public wxEvtHandler,
ComponentInterfaceSymbol GetSymbol() override;
VendorSymbol GetVendor() override;
wxString GetVersion() override;
wxString GetDescription() override;
TranslatableString GetDescription() override;
// EffectDefinitionInterface implementation
@ -411,7 +411,7 @@ public:
ComponentInterfaceSymbol GetSymbol() override;
VendorSymbol GetVendor() override;
wxString GetVersion() override;
wxString GetDescription() override;
TranslatableString GetDescription() override;
// ModuleInterface implementation

View File

@ -97,9 +97,9 @@ ComponentInterfaceSymbol EffectWahwah::GetSymbol()
return WAHWAH_PLUGIN_SYMBOL;
}
wxString EffectWahwah::GetDescription()
TranslatableString EffectWahwah::GetDescription()
{
return _("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");
}
wxString EffectWahwah::ManualPage()

View File

@ -47,7 +47,7 @@ public:
// ComponentInterface implementation
ComponentInterfaceSymbol GetSymbol() override;
wxString GetDescription() override;
TranslatableString GetDescription() override;
wxString ManualPage() override;
// EffectDefinitionInterface implementation

View File

@ -126,9 +126,9 @@ wxString AudioUnitEffectsModule::GetVersion()
return AUDIOUNITEFFECTS_VERSION;
}
wxString AudioUnitEffectsModule::GetDescription()
TranslatableString AudioUnitEffectsModule::GetDescription()
{
return _("Provides Audio Unit Effects support to Audacity");
return XO("Provides Audio Unit Effects support to Audacity");
}
// ============================================================================
@ -899,10 +899,10 @@ wxString AudioUnitEffect::GetVersion()
version & 0xff);
}
wxString AudioUnitEffect::GetDescription()
TranslatableString AudioUnitEffect::GetDescription()
{
/* i18n-hint: Can mean "not available," "not applicable," "no answer" */
return _("n/a");
return XO("n/a");
}
// ============================================================================

View File

@ -55,7 +55,7 @@ public:
ComponentInterfaceSymbol GetSymbol() override;
VendorSymbol GetVendor() override;
wxString GetVersion() override;
wxString GetDescription() override;
TranslatableString GetDescription() override;
// EffectComponentInterface implementation
@ -235,7 +235,7 @@ public:
ComponentInterfaceSymbol GetSymbol() override;
VendorSymbol GetVendor() override;
wxString GetVersion() override;
wxString GetDescription() override;
TranslatableString GetDescription() override;
// ModuleInterface implementation

View File

@ -141,9 +141,9 @@ wxString LadspaEffectsModule::GetVersion()
return LADSPAEFFECTS_VERSION;
}
wxString LadspaEffectsModule::GetDescription()
TranslatableString LadspaEffectsModule::GetDescription()
{
return _("Provides LADSPA Effects");
return XO("Provides LADSPA Effects");
}
// ============================================================================
@ -667,9 +667,9 @@ wxString LadspaEffect::GetVersion()
return _("n/a");
}
wxString LadspaEffect::GetDescription()
TranslatableString LadspaEffect::GetDescription()
{
return LAT1CTOWX(mData->Copyright);
return TranslatableString{ LAT1CTOWX(mData->Copyright) };
}
// ============================================================================

View File

@ -53,7 +53,7 @@ public:
ComponentInterfaceSymbol GetSymbol() override;
VendorSymbol GetVendor() override;
wxString GetVersion() override;
wxString GetDescription() override;
TranslatableString GetDescription() override;
// EffectDefinitionInterface implementation
@ -216,7 +216,7 @@ public:
ComponentInterfaceSymbol GetSymbol() override;
VendorSymbol GetVendor() override;
wxString GetVersion() override;
wxString GetDescription() override;
TranslatableString GetDescription() override;
// ModuleInterface implementation

View File

@ -355,9 +355,9 @@ wxString LV2Effect::GetVersion()
return wxT("1.0");
}
wxString LV2Effect::GetDescription()
TranslatableString LV2Effect::GetDescription()
{
return _("n/a");
return XO("n/a");
}
// ============================================================================

View File

@ -113,7 +113,7 @@ public:
ComponentInterfaceSymbol GetSymbol() override;
VendorSymbol GetVendor() override;
wxString GetVersion() override;
wxString GetDescription() override;
TranslatableString GetDescription() override;
// EffectDefinitionInterface implementation

Some files were not shown because too many files have changed in this diff Show More