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

Remove 27 various macro _ ...

... and supply a few missing translations in Dependencies.cpp

And substitute-don't-concatenate in a few places in Internat.cpp
This commit is contained in:
Paul Licameli
2020-05-23 06:41:26 -04:00
parent 3e5789ca14
commit db690d94f7
18 changed files with 76 additions and 98 deletions

View File

@@ -19,22 +19,22 @@ struct FoundTrack {
int trackNum{};
bool channel{};
wxString ComposeTrackName() const
TranslatableString ComposeTrackName() const
{
auto name = waveTrack->GetName();
auto shortName = name == waveTrack->GetDefaultName()
/* i18n-hint: compose a name identifying an unnamed track by number */
? wxString::Format( _("Track %d"), trackNum )
: name;
? XO("Track %d").Format( trackNum )
: Verbatim(name);
auto longName = shortName;
if (channel) {
// TODO: more-than-two-channels-message
if ( waveTrack->IsLeader() )
/* i18n-hint: given the name of a track, specify its left channel */
longName = wxString::Format(_("%s left"), shortName);
longName = XO("%s left").Format(shortName);
else
/* i18n-hint: given the name of a track, specify its right channel */
longName = wxString::Format(_("%s right"), shortName);
longName = XO("%s right").Format(shortName);
}
return longName;
}