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

Re-adding localized menu labels for effects

If you can believe it, this whole big mess is
just to get localized effect labels back into
the menus.

I sure wish I'd had a little bit more time to
finish up all of the effects.  It sure would 
be a lot cleaner (code wise).
This commit is contained in:
lllucius
2014-12-15 21:54:23 +00:00
parent 431166561e
commit 16ca4f17eb
58 changed files with 292 additions and 153 deletions

View File

@@ -173,6 +173,16 @@ wxString Effect::GetPath()
return wxEmptyString;
}
wxString Effect::GetSymbol()
{
if (mClient)
{
return mClient->GetSymbol();
}
return GetEffectIdentifier();
}
wxString Effect::GetName()
{
if (mClient)
@@ -180,7 +190,7 @@ wxString Effect::GetName()
return mClient->GetName();
}
return GetEffectIdentifier();
return GetEffectName();
}
wxString Effect::GetVendor()
@@ -2344,7 +2354,7 @@ void EffectUIHost::OnCancel(wxCommandEvent & WXUNUSED(evt))
return;
}
void EffectUIHost::OnMenu(wxCommandEvent & evt)
void EffectUIHost::OnMenu(wxCommandEvent & WXUNUSED(evt))
{
wxMenu *menu = new wxMenu();
wxMenu *sub;
@@ -2695,7 +2705,7 @@ void EffectUIHost::SetLabelAndTip(wxBitmapButton *btn, const wxString & label, b
{
if (btn != NULL)
{
int pos = label.Find(wxT('&'));
size_t pos = label.Find(wxT('&'));
if (pos != wxNOT_FOUND && pos < label.Length() - 1)
{
wxChar c = wxToupper(label[pos + 1]);