1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-25 15:53:52 +02:00

Substitute, don't concatenate, when composing localized strings...

... Avoid English syntax bias.
This commit is contained in:
Paul Licameli
2018-01-03 20:47:56 -05:00
parent fa7f1a455b
commit def1d52505
20 changed files with 127 additions and 87 deletions

View File

@@ -595,9 +595,9 @@ bool Exporter::GetFilename()
// as an extension with no name, like just plain ".wav".
//
if (mFilename.GetName().Left(1) == wxT(".")) {
wxString prompt = _("Are you sure you want to export the file as \"") +
mFilename.GetFullName() +
wxT("\"?\n");
wxString prompt = wxString::Format(
_("Are you sure you want to export the file as \"%s\"?\n"),
mFilename.GetFullName() );
int action = AudacityMessageBox(prompt,
_("Warning"),
@@ -1267,9 +1267,11 @@ ExportMixerDialog::ExportMixerDialog( const TrackList *tracks, bool selectedOnly
numTracks++;
const wxString sTrackName = (t->GetName()).Left(20);
if( t->GetChannel() == Track::LeftChannel )
mTrackNames.Add(sTrackName + _( " - L" ));
/* i18n-hint: track name and L abbreviating Left channel */
mTrackNames.Add( wxString::Format( _( "%s - L" ), sTrackName ) );
else if( t->GetChannel() == Track::RightChannel )
mTrackNames.Add(sTrackName + _( " - R" ));
/* i18n-hint: track name and R abbreviating Right channel */
mTrackNames.Add( wxString::Format( _( "%s - R" ), sTrackName ) );
else
mTrackNames.Add(sTrackName);
}