mirror of
https://github.com/cookiengineer/audacity
synced 2026-01-02 22:27:10 +01:00
Now use that extra information
This commit is contained in:
@@ -315,16 +315,17 @@ MacroCommandsCatalog::MacroCommandsCatalog( const AudacityProject *project )
|
||||
auto mManager = project->GetCommandManager();
|
||||
wxArrayString mLabels;
|
||||
wxArrayString mNames;
|
||||
std::vector<bool> vHasDialog;
|
||||
mLabels.Clear();
|
||||
mNames.Clear();
|
||||
mManager->GetAllCommandLabels(mLabels, true);
|
||||
mManager->GetAllCommandLabels(mLabels, vHasDialog, true);
|
||||
mManager->GetAllCommandNames(mNames, true);
|
||||
|
||||
const bool english = wxGetLocale()->GetCanonicalName().StartsWith(wxT("en"));
|
||||
|
||||
for(size_t i=0; i<mNames.GetCount(); i++) {
|
||||
wxString label = mLabels[i];
|
||||
if( !label.Contains( "..." ) ){
|
||||
if( !vHasDialog[i] ){
|
||||
label.Replace( "&", "" );
|
||||
bool suffix;
|
||||
if (!english)
|
||||
|
||||
Reference in New Issue
Block a user