1
0
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:
Paul Licameli
2018-03-15 23:18:04 -04:00
parent bb7b77cde0
commit b75e356df6
3 changed files with 13 additions and 6 deletions

View File

@@ -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)