1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-15 17:11:20 +01:00

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

@@ -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 );
}
// ============================================================================