mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-08 08:01:19 +02:00
Replace various calls to _ with XO
This commit is contained in:
parent
9c196860db
commit
37c0c15f12
@ -153,11 +153,13 @@ void SelectionBar::Create(wxWindow * parent)
|
||||
}
|
||||
|
||||
|
||||
auStaticText * SelectionBar::AddTitle( const wxString & Title, wxSizer * pSizer ){
|
||||
auStaticText * pTitle = safenew auStaticText(this, Title );
|
||||
auStaticText * SelectionBar::AddTitle(
|
||||
const TranslatableString & Title, wxSizer * pSizer ){
|
||||
const auto translated = Title.Translation();
|
||||
auStaticText * pTitle = safenew auStaticText(this, translated );
|
||||
pTitle->SetBackgroundColour( theTheme.Colour( clrMedium ));
|
||||
pTitle->SetForegroundColour( theTheme.Colour( clrTrackPanelText ) );
|
||||
pSizer->Add( pTitle,0, wxALIGN_CENTER_VERTICAL | wxRIGHT, (Title.length() == 1 ) ? 0:5);
|
||||
pSizer->Add( pTitle,0, wxALIGN_CENTER_VERTICAL | wxRIGHT, (translated.length() == 1 ) ? 0:5);
|
||||
return pTitle;
|
||||
}
|
||||
|
||||
@ -212,12 +214,12 @@ void SelectionBar::Populate()
|
||||
// Top row (mostly labels)
|
||||
wxColour clrText = theTheme.Colour( clrTrackPanelText );
|
||||
wxColour clrText2 = *wxBLUE;
|
||||
AddTitle( _("Project Rate (Hz)"), mainSizer );
|
||||
AddTitle( XO("Project Rate (Hz)"), mainSizer );
|
||||
AddVLine( mainSizer );
|
||||
AddTitle( _("Snap-To"), mainSizer );
|
||||
AddTitle( XO("Snap-To"), mainSizer );
|
||||
AddVLine( mainSizer );
|
||||
#ifdef TIME_IN_SELECT_TOOLBAR
|
||||
AddTitle( _("Audio Position"), mainSizer );
|
||||
AddTitle( XO("Audio Position"), mainSizer );
|
||||
AddVLine( mainSizer );
|
||||
#endif
|
||||
|
||||
|
@ -66,7 +66,7 @@ class SelectionBar final : public ToolBar {
|
||||
void RegenerateTooltips() override;
|
||||
|
||||
private:
|
||||
auStaticText * AddTitle( const wxString & Title,
|
||||
auStaticText * AddTitle( const TranslatableString & Title,
|
||||
wxSizer * pSizer );
|
||||
NumericTextCtrl * AddTime( const TranslatableString &Name, int id, wxSizer * pSizer );
|
||||
void AddVLine( wxSizer * pSizer );
|
||||
|
@ -357,7 +357,7 @@ namespace
|
||||
shiftDown;
|
||||
|
||||
tip =
|
||||
_("Click and drag to move center selection frequency.");
|
||||
XO("Click and drag to move center selection frequency.");
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -28,10 +28,10 @@ Paul Licameli split from TrackPanel.cpp
|
||||
|
||||
#if defined(__WXMAC__)
|
||||
/* i18n-hint: Command names a modifier key on Macintosh keyboards */
|
||||
#define CTRL_CLICK _("Command+Click")
|
||||
#define CTRL_CLICK XO("Command+Click")
|
||||
#else
|
||||
/* i18n-hint: Ctrl names a modifier key on Windows or Linux keyboards */
|
||||
#define CTRL_CLICK _("Ctrl+Click")
|
||||
#define CTRL_CLICK XO("Ctrl+Click")
|
||||
#endif
|
||||
|
||||
namespace {
|
||||
|
Loading…
x
Reference in New Issue
Block a user