mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-22 15:20:15 +02:00
Substitute, don't concatenate in internationalized strings
This commit is contained in:
parent
d978abba35
commit
05ef58753a
@ -3349,7 +3349,8 @@ void EditCurvesDialog::OnRename(wxCommandEvent & WXUNUSED(event))
|
|||||||
mEffect->Effect::MessageBox( _("Name is the same as the original one"), wxOK, _("Same name") );
|
mEffect->Effect::MessageBox( _("Name is the same as the original one"), wxOK, _("Same name") );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
int answer = mEffect->Effect::MessageBox( _("Overwrite existing curve '") + name +_("'?"),
|
int answer = mEffect->Effect::MessageBox(
|
||||||
|
wxString::Format( _("Overwrite existing curve '%s'?"), name ),
|
||||||
wxYES_NO, _("Curve exists") );
|
wxYES_NO, _("Curve exists") );
|
||||||
if (answer == wxYES)
|
if (answer == wxYES)
|
||||||
{
|
{
|
||||||
@ -3428,7 +3429,8 @@ void EditCurvesDialog::OnDelete(wxCommandEvent & WXUNUSED(event))
|
|||||||
{
|
{
|
||||||
// Create the prompt
|
// Create the prompt
|
||||||
wxString quest;
|
wxString quest;
|
||||||
quest = wxString(_("Delete '")) + mEditCurves[ item-deleted ].Name + _("'?");
|
quest = wxString::Format(_("Delete '%s'?"),
|
||||||
|
mEditCurves[ item-deleted ].Name);
|
||||||
|
|
||||||
// Ask for confirmation before removal
|
// Ask for confirmation before removal
|
||||||
int ans = mEffect->Effect::MessageBox( quest, wxYES_NO | wxCENTRE, _("Confirm Deletion") );
|
int ans = mEffect->Effect::MessageBox( quest, wxYES_NO | wxCENTRE, _("Confirm Deletion") );
|
||||||
@ -3454,10 +3456,10 @@ void EditCurvesDialog::OnDelete(wxCommandEvent & WXUNUSED(event))
|
|||||||
// Create the prompt
|
// Create the prompt
|
||||||
wxString quest;
|
wxString quest;
|
||||||
if( count > 1 )
|
if( count > 1 )
|
||||||
quest.Printf(_("Delete ") + wxString(wxT("%d ")) + _("items?"), count);
|
quest = wxString::Format(_("Delete %d items?"), count);
|
||||||
else
|
else
|
||||||
if( count == 1 )
|
if( count == 1 )
|
||||||
quest = wxString(_("Delete '")) + mEditCurves[ item ].Name + _("'?");
|
quest = wxString::Format(_("Delete '%s'?"), mEditCurves[ item ].Name);
|
||||||
else
|
else
|
||||||
return;
|
return;
|
||||||
// Ask for confirmation before removal
|
// Ask for confirmation before removal
|
||||||
|
Loading…
x
Reference in New Issue
Block a user