@@ -294,7 +294,7 @@ MacroCommandsCatalog::MacroCommandsCatalog( const AudacityProject *project )
294294 Entries commands;
295295 for ( const auto &command : SpecialCommands )
296296 commands.push_back ( {
297- { command.second , command.first . Translation () },
297+ { command.second , command.first },
298298 _ (" Special Command" )
299299 } );
300300
@@ -309,7 +309,7 @@ MacroCommandsCatalog::MacroCommandsCatalog( const AudacityProject *project )
309309 auto command = em.GetCommandIdentifier (plug->GetID ());
310310 if (!command.empty ())
311311 commands.push_back ( {
312- { command, plug->GetSymbol ().Translation () },
312+ { command, plug->GetSymbol ().Msgid () },
313313 plug->GetPluginType () == PluginTypeEffect ?
314314 _ (" Effect" ) : _ (" Menu Command (With Parameters)" )
315315 } );
@@ -365,7 +365,7 @@ MacroCommandsCatalog::MacroCommandsCatalog( const AudacityProject *project )
365365 {
366366 {
367367 mNames [i], // Internal name.
368- label. Translation () // User readable name
368+ label // User readable name
369369 },
370370 _ (" Menu Command (No Parameters)" )
371371 }
@@ -379,23 +379,26 @@ MacroCommandsCatalog::MacroCommandsCatalog( const AudacityProject *project )
379379 // keeping specials before effects and menu items, and lastly commands.
380380 auto less =
381381 [](const Entry &a, const Entry &b)
382- { return a.name .Translated () < b.name .Translated (); };
382+ { return a.name .StrippedTranslation () <
383+ b.name .StrippedTranslation (); };
383384 std::stable_sort (commands.begin (), commands.end (), less);
384385
385386 // Now uniquify by friendly name
386387 auto equal =
387388 [](const Entry &a, const Entry &b)
388- { return a.name .Translated () == b.name .Translated (); };
389+ { return a.name .StrippedTranslation () ==
390+ b.name .StrippedTranslation (); };
389391 std::unique_copy (
390392 commands.begin (), commands.end (), std::back_inserter (mCommands ), equal);
391393}
392394
393395// binary search
394- auto MacroCommandsCatalog::ByFriendlyName ( const wxString &friendlyName ) const
396+ auto MacroCommandsCatalog::ByFriendlyName ( const TranslatableString &friendlyName ) const
395397 -> Entries::const_iterator
396398{
397399 const auto less = [](const Entry &entryA, const Entry &entryB)
398- { return entryA.name .Translated () < entryB.name .Translated (); };
400+ { return entryA.name .StrippedTranslation () <
401+ entryB.name .StrippedTranslation (); };
399402 auto range = std::equal_range (
400403 begin (), end (), Entry{ { {}, friendlyName }, {} }, less
401404 );
@@ -943,7 +946,7 @@ bool MacroCommands::ApplyMacro(
943946 // uh oh, using GET to expose an internal name to the user!
944947 // in default of any better friendly name
945948 command.GET ()
946- : iter->name .Translated ();
949+ : iter->name .StrippedTranslation ();
947950 if (!ApplyCommandInBatchMode (friendly, command, mParamsMacro [i]) || mAbort )
948951 break ;
949952 }
0 commit comments