mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-08 17:46:25 +01:00
Add i18n hints for selection toolbar
This commit is contained in:
@@ -367,8 +367,8 @@ void SelectionBar::Populate()
|
|||||||
false,
|
false,
|
||||||
theTheme.ImageSize( bmpRecoloredUpSmall ));
|
theTheme.ImageSize( bmpRecoloredUpSmall ));
|
||||||
|
|
||||||
pBtn->SetLabel("Selection options");
|
pBtn->SetLabel(_("Selection options"));
|
||||||
pBtn->SetToolTip("Selection options");
|
pBtn->SetToolTip(_("Selection options"));
|
||||||
pBtn->Disable();
|
pBtn->Disable();
|
||||||
mainSizer->Add( pBtn, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 5);
|
mainSizer->Add( pBtn, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 5);
|
||||||
#endif
|
#endif
|
||||||
@@ -704,17 +704,21 @@ void SelectionBar::SetSelectionMode(int mode)
|
|||||||
|
|
||||||
int id = mode + StartEndRadioID;
|
int id = mode + StartEndRadioID;
|
||||||
if( mStartEndProxy == NULL ){
|
if( mStartEndProxy == NULL ){
|
||||||
mStartEndRadBtn->SetLabelText( (id == StartEndRadioID) ? "Start - End" : "S-E" );
|
// i18n-hint: S-E is an abbreviation of Start-End
|
||||||
mStartLengthRadBtn->SetLabelText( (id == StartLengthRadioID) ? "Start - Length" : "S-L" );
|
mStartEndRadBtn->SetLabelText( (id == StartEndRadioID) ? _("Start - End") : _("S-E") );
|
||||||
mLengthEndRadBtn->SetLabelText( (id == LengthEndRadioID) ? "Length - End" : "L-E" );
|
// i18n-hint: S-L is an abbreviation of Start-Length
|
||||||
mLengthCenterRadBtn->SetLabelText( (id == LengthCenterRadioID) ? "Length - Center" : "L-C" );
|
mStartLengthRadBtn->SetLabelText( (id == StartLengthRadioID) ? _("Start - Length") : _("S-L") );
|
||||||
|
// i18n-hint: L-E is an abbreviation of Length-End
|
||||||
|
mLengthEndRadBtn->SetLabelText( (id == LengthEndRadioID) ? _("Length - End") : _("L-E") );
|
||||||
|
// i18n-hint: L-C is an abbreviation of Length-Center
|
||||||
|
mLengthCenterRadBtn->SetLabelText( (id == LengthCenterRadioID) ? _("Length - Center") : _("L-C") );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
mStartEndProxy->SetLabelText( (id == StartEndRadioID) ? "Start - End" : "S-E" );
|
mStartEndProxy->SetLabelText( (id == StartEndRadioID) ? _("Start - End") : _("S-E") );
|
||||||
mStartLengthProxy->SetLabelText( (id == StartLengthRadioID) ? "Start - Length" : "S-L" );
|
mStartLengthProxy->SetLabelText( (id == StartLengthRadioID) ? _("Start - Length") : _("S-L") );
|
||||||
mLengthEndProxy->SetLabelText( (id == LengthEndRadioID) ? "Length - End" : "L-E" );
|
mLengthEndProxy->SetLabelText( (id == LengthEndRadioID) ? _("Length - End") : _("L-E") );
|
||||||
mLengthCenterProxy->SetLabelText( (id == LengthCenterRadioID) ? "Length - Center" : "L-C" );
|
mLengthCenterProxy->SetLabelText( (id == LengthCenterRadioID) ? _("Length - Center") : _("L-C") );
|
||||||
}
|
}
|
||||||
|
|
||||||
mStartEndRadBtn->SetValue( id == StartEndRadioID );
|
mStartEndRadBtn->SetValue( id == StartEndRadioID );
|
||||||
|
|||||||
Reference in New Issue
Block a user