mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-08 20:52:09 +01:00
Uses of TranslatableString as value of XO macro...
... It is not implicitly convertible from wxString, compelling many uses of the new type to fix compilation.
This commit is contained in:
@@ -92,7 +92,7 @@ BEGIN_EVENT_TABLE(ControlToolBar, ToolBar)
|
||||
EVT_IDLE(ControlToolBar::OnIdle)
|
||||
END_EVENT_TABLE()
|
||||
|
||||
static const wxString
|
||||
static const TranslatableString
|
||||
sStatePlay = XO("Playing")
|
||||
, sStateStop = XO("Stopped")
|
||||
, sStateRecord = XO("Recording")
|
||||
@@ -712,9 +712,9 @@ wxString ControlToolBar::StateForStatusBar()
|
||||
auto pProject = &mProject;
|
||||
auto scrubState = pProject
|
||||
? Scrubber::Get( *pProject ).GetUntranslatedStateString()
|
||||
: wxString();
|
||||
: TranslatableString{};
|
||||
if (!scrubState.empty())
|
||||
state = wxGetTranslation(scrubState);
|
||||
state = scrubState.Translation();
|
||||
else if (mPlay->IsDown())
|
||||
state = wxGetTranslation(sStatePlay);
|
||||
else if (projectAudioManager.Recording())
|
||||
|
||||
Reference in New Issue
Block a user