mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-16 08:09:32 +02:00
Fix more missed translations
This commit is contained in:
parent
369113973f
commit
4bfd8abc2b
@ -29,7 +29,7 @@ class CompareAudioCommand final : public AudacityCommand
|
||||
{
|
||||
public:
|
||||
// CommandDefinitionInterface overrides
|
||||
wxString GetSymbol() override {return "Compare Audio";};
|
||||
wxString GetSymbol() override {return XO("Compare Audio");}
|
||||
wxString GetDescription() override {return _("Compares a range on two tracks.");};
|
||||
bool DefineParams( ShuttleParams & S ) override;
|
||||
void PopulateOrExchange(ShuttleGui & S) override;
|
||||
|
@ -2905,7 +2905,7 @@ EffectUIHost::EffectUIHost(wxWindow *parent,
|
||||
EffectUIHost::EffectUIHost(wxWindow *parent,
|
||||
AudacityCommand *command,
|
||||
EffectUIClientInterface *client)
|
||||
: wxDialogWrapper(parent, wxID_ANY, "Some Command"/*command->GetTranslatedName()*/,
|
||||
: wxDialogWrapper(parent, wxID_ANY, _("Some Command") /*command->GetTranslatedName()*/,
|
||||
wxDefaultPosition, wxDefaultSize,
|
||||
wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER | wxMINIMIZE_BOX | wxMAXIMIZE_BOX)
|
||||
{
|
||||
|
@ -144,7 +144,7 @@ bool EffectManager::DoAudacityCommand(const PluginID & ID,
|
||||
|
||||
wxString EffectManager::GetCommandName(const PluginID & ID)
|
||||
{
|
||||
return PluginManager::Get().GetName(ID);
|
||||
return GetCustomTranslation( PluginManager::Get().GetName(ID) );
|
||||
}
|
||||
|
||||
wxString EffectManager::GetEffectFamilyName(const PluginID & ID)
|
||||
@ -865,7 +865,7 @@ Effect *EffectManager::GetEffect(const PluginID & ID)
|
||||
auto command = dynamic_cast<AudacityCommand *>(PluginManager::Get().GetInstance(ID));
|
||||
if( !command )
|
||||
AudacityMessageBox(wxString::Format(_("Attempting to initialize the following effect failed:\n\n%s\n\nMore information may be available in Help->Show Log"),
|
||||
PluginManager::Get().GetName(ID)),
|
||||
GetCommandName(ID)),
|
||||
_("Effect failed to initialize"));
|
||||
|
||||
return NULL;
|
||||
@ -921,7 +921,7 @@ AudacityCommand *EffectManager::GetAudacityCommand(const PluginID & ID)
|
||||
}
|
||||
*/
|
||||
AudacityMessageBox(wxString::Format(_("Attempting to initialize the following command failed:\n\n%s\n\nMore information may be available in Help->Show Log"),
|
||||
PluginManager::Get().GetName(ID)),
|
||||
GetCommandName(ID)),
|
||||
_("Command failed to initialize"));
|
||||
|
||||
return NULL;
|
||||
|
@ -90,7 +90,7 @@ public:
|
||||
bool shouldPrompt = true );
|
||||
|
||||
// Renamed from 'Effect' to 'Command' prior to moving out of this class.
|
||||
wxString GetCommandName(const PluginID & ID);
|
||||
wxString GetCommandName(const PluginID & ID); // translated
|
||||
wxString GetCommandIdentifier(const PluginID & ID);
|
||||
wxString GetCommandDescription(const PluginID & ID);
|
||||
wxString GetCommandUrl(const PluginID & ID);
|
||||
|
@ -447,10 +447,11 @@ bool VampEffect::Process()
|
||||
}
|
||||
}
|
||||
|
||||
const auto effectName = GetCustomTranslation( GetName() );
|
||||
addedTracks.push_back(AddAnalysisTrack(
|
||||
multiple
|
||||
? wxString::Format(_("%s: %s"), left->GetName(), GetName())
|
||||
: GetName()
|
||||
? wxString::Format( _("%s: %s"), left->GetName(), effectName )
|
||||
: effectName
|
||||
));
|
||||
LabelTrack *ltrack = addedTracks.back()->get();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user