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

TranslatableString for undo history short and long descriptions

This commit is contained in:
Paul Licameli
2019-12-08 12:11:31 -05:00
parent 1f86a77569
commit 4eb220e7b9
36 changed files with 273 additions and 279 deletions

View File

@@ -958,19 +958,19 @@ bool MacroCommands::ApplyMacro(
mFileName.Empty();
// Macro was successfully applied; save the NEW project state
wxString longDesc, shortDesc;
TranslatableString longDesc, shortDesc;
wxString name = gPrefs->Read(wxT("/Batch/ActiveMacro"), wxEmptyString);
if (name.empty())
{
/* i18n-hint: active verb in past tense */
longDesc = _("Applied Macro");
shortDesc = _("Apply Macro");
longDesc = XO("Applied Macro");
shortDesc = XO("Apply Macro");
}
else
{
/* i18n-hint: active verb in past tense */
longDesc = wxString::Format(_("Applied Macro '%s'"), name);
shortDesc = wxString::Format(_("Apply '%s'"), name);
longDesc = XO("Applied Macro '%s'").Format( name );
shortDesc = XO("Apply '%s'").Format( name );
}
if (!proj)