mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-10 13:40:09 +01:00
TranslatableString for tooltips and status bar messages
This commit is contained in:
@@ -73,10 +73,10 @@ ProjectAudioManager::ProjectAudioManager( AudacityProject &project )
|
||||
|
||||
ProjectAudioManager::~ProjectAudioManager() = default;
|
||||
|
||||
static wxString FormatRate( int rate )
|
||||
static TranslatableString FormatRate( int rate )
|
||||
{
|
||||
if (rate > 0) {
|
||||
return wxString::Format(_("Actual Rate: %d"), rate);
|
||||
return XO("Actual Rate: %d").Format( rate );
|
||||
}
|
||||
else
|
||||
// clear the status field
|
||||
@@ -804,7 +804,7 @@ void ProjectAudioManager::OnAudioIORate(int rate)
|
||||
|
||||
mDisplayedRate = rate;
|
||||
|
||||
wxString display = FormatRate( rate );
|
||||
auto display = FormatRate( rate );
|
||||
|
||||
ProjectStatus::Get( project ).Set( display, rateStatusBarField );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user