pcbnew: make pane labels translatable
This commit is contained in:
parent
be5102a6e0
commit
7c2b66fc2a
|
@ -30,7 +30,7 @@ APPEARANCE_CONTROLS_BASE::APPEARANCE_CONTROLS_BASE( wxWindow* parent, wxWindowID
|
|||
m_panelLayers->SetSizer( m_panelLayersSizer );
|
||||
m_panelLayers->Layout();
|
||||
m_panelLayersSizer->Fit( m_panelLayers );
|
||||
m_notebook->AddPage( m_panelLayers, wxT("Layers"), true );
|
||||
m_notebook->AddPage( m_panelLayers, _("Layers"), true );
|
||||
m_panelObjects = new wxPanel( m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
|
||||
m_panelObjects->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOW ) );
|
||||
|
||||
|
@ -43,7 +43,7 @@ APPEARANCE_CONTROLS_BASE::APPEARANCE_CONTROLS_BASE( wxWindow* parent, wxWindowID
|
|||
m_panelObjects->SetSizer( m_objectsPanelSizer );
|
||||
m_panelObjects->Layout();
|
||||
m_objectsPanelSizer->Fit( m_panelObjects );
|
||||
m_notebook->AddPage( m_panelObjects, wxT("Objects"), false );
|
||||
m_notebook->AddPage( m_panelObjects, _("Objects"), false );
|
||||
m_panelNetsAndClasses = new wxPanel( m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
|
||||
m_netsTabOuterSizer = new wxBoxSizer( wxVERTICAL );
|
||||
|
||||
|
@ -59,7 +59,7 @@ APPEARANCE_CONTROLS_BASE::APPEARANCE_CONTROLS_BASE( wxWindow* parent, wxWindowID
|
|||
wxBoxSizer* bSizer17;
|
||||
bSizer17 = new wxBoxSizer( wxHORIZONTAL );
|
||||
|
||||
m_staticTextNets = new wxStaticText( m_panelNets, wxID_ANY, wxT("Nets"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
m_staticTextNets = new wxStaticText( m_panelNets, wxID_ANY, _("Nets"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
m_staticTextNets->Wrap( -1 );
|
||||
m_staticTextNets->SetFont( wxFont( 9, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxEmptyString ) );
|
||||
|
||||
|
@ -71,7 +71,7 @@ APPEARANCE_CONTROLS_BASE::APPEARANCE_CONTROLS_BASE( wxWindow* parent, wxWindowID
|
|||
bSizer17->Add( m_txtNetFilter, 1, wxLEFT|wxTOP, 5 );
|
||||
|
||||
m_btnNetInspector = new BITMAP_BUTTON( m_panelNets, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
|
||||
m_btnNetInspector->SetToolTip( wxT("Show the Net Inspector") );
|
||||
m_btnNetInspector->SetToolTip( _("Show the Net Inspector") );
|
||||
|
||||
bSizer17->Add( m_btnNetInspector, 0, wxLEFT|wxRIGHT|wxTOP, 5 );
|
||||
|
||||
|
@ -118,14 +118,14 @@ APPEARANCE_CONTROLS_BASE::APPEARANCE_CONTROLS_BASE( wxWindow* parent, wxWindowID
|
|||
wxBoxSizer* bSizer20;
|
||||
bSizer20 = new wxBoxSizer( wxHORIZONTAL );
|
||||
|
||||
m_staticText14 = new wxStaticText( m_panelNetclasses, wxID_ANY, wxT("Net Classes"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
m_staticText14 = new wxStaticText( m_panelNetclasses, wxID_ANY, _("Net Classes"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
m_staticText14->Wrap( -1 );
|
||||
m_staticText14->SetFont( wxFont( 9, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxEmptyString ) );
|
||||
|
||||
bSizer20->Add( m_staticText14, 1, wxALL, 5 );
|
||||
|
||||
m_btnConfigureNetClasses = new BITMAP_BUTTON( m_panelNetclasses, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
|
||||
m_btnConfigureNetClasses->SetToolTip( wxT("Configure net classes") );
|
||||
m_btnConfigureNetClasses->SetToolTip( _("Configure net classes") );
|
||||
|
||||
bSizer20->Add( m_btnConfigureNetClasses, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxTOP, 5 );
|
||||
|
||||
|
@ -153,7 +153,7 @@ APPEARANCE_CONTROLS_BASE::APPEARANCE_CONTROLS_BASE( wxWindow* parent, wxWindowID
|
|||
m_panelNetsAndClasses->SetSizer( m_netsTabOuterSizer );
|
||||
m_panelNetsAndClasses->Layout();
|
||||
m_netsTabOuterSizer->Fit( m_panelNetsAndClasses );
|
||||
m_notebook->AddPage( m_panelNetsAndClasses, wxT("Nets"), false );
|
||||
m_notebook->AddPage( m_panelNetsAndClasses, _("Nets"), false );
|
||||
|
||||
m_sizerOuter->Add( m_notebook, 1, wxEXPAND, 5 );
|
||||
|
||||
|
@ -166,7 +166,7 @@ APPEARANCE_CONTROLS_BASE::APPEARANCE_CONTROLS_BASE( wxWindow* parent, wxWindowID
|
|||
wxBoxSizer* bPresetsLabels;
|
||||
bPresetsLabels = new wxBoxSizer( wxHORIZONTAL );
|
||||
|
||||
presetsLabel = new wxStaticText( this, wxID_ANY, wxT("Presets:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
presetsLabel = new wxStaticText( this, wxID_ANY, _( "Presets:" ), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
presetsLabel->Wrap( -1 );
|
||||
bPresetsLabels->Add( presetsLabel, 1, wxRIGHT|wxLEFT, 2 );
|
||||
|
||||
|
@ -177,11 +177,11 @@ APPEARANCE_CONTROLS_BASE::APPEARANCE_CONTROLS_BASE( wxWindow* parent, wxWindowID
|
|||
|
||||
bPresets->Add( bPresetsLabels, 1, wxEXPAND|wxTOP, 7 );
|
||||
|
||||
wxString m_cbLayerPresetsChoices[] = { wxT("All Layers"), wxT("(unsaved)") };
|
||||
wxString m_cbLayerPresetsChoices[] = { _("All Layers"), _("(unsaved)") };
|
||||
int m_cbLayerPresetsNChoices = sizeof( m_cbLayerPresetsChoices ) / sizeof( wxString );
|
||||
m_cbLayerPresets = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_cbLayerPresetsNChoices, m_cbLayerPresetsChoices, 0 );
|
||||
m_cbLayerPresets->SetSelection( 1 );
|
||||
m_cbLayerPresets->SetToolTip( wxT("Layer presets") );
|
||||
m_cbLayerPresets->SetToolTip( _("Layer presets") );
|
||||
|
||||
bPresets->Add( m_cbLayerPresets, 0, wxALL|wxEXPAND, 2 );
|
||||
|
||||
|
|
|
@ -18,53 +18,53 @@ PANEL_SELECTION_FILTER_BASE::PANEL_SELECTION_FILTER_BASE( wxWindow* parent, wxWi
|
|||
gbSizer1->SetFlexibleDirection( wxBOTH );
|
||||
gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
||||
|
||||
m_cbAllItems = new wxCheckBox( this, wxID_ANY, wxT("All items"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
m_cbAllItems = new wxCheckBox( this, wxID_ANY, _("All items"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
m_cbAllItems->SetValue(true);
|
||||
gbSizer1->Add( m_cbAllItems, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxLEFT|wxTOP, 5 );
|
||||
|
||||
m_cbLockedItems = new wxCheckBox( this, wxID_ANY, wxT("Locked items"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
m_cbLockedItems = new wxCheckBox( this, wxID_ANY, _("Locked items"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
m_cbLockedItems->SetValue(true);
|
||||
m_cbLockedItems->SetToolTip( wxT("Allow selection of locked items") );
|
||||
m_cbLockedItems->SetToolTip( _("Allow selection of locked items") );
|
||||
|
||||
gbSizer1->Add( m_cbLockedItems, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxLEFT|wxRIGHT|wxTOP, 5 );
|
||||
|
||||
m_cbFootprints = new wxCheckBox( this, wxID_ANY, wxT("Footprints"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
m_cbFootprints = new wxCheckBox( this, wxID_ANY, _("Footprints"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
m_cbFootprints->SetValue(true);
|
||||
gbSizer1->Add( m_cbFootprints, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxLEFT|wxRIGHT, 5 );
|
||||
|
||||
m_cbText = new wxCheckBox( this, wxID_ANY, wxT("Text"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
m_cbText = new wxCheckBox( this, wxID_ANY, _("Text"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
m_cbText->SetValue(true);
|
||||
gbSizer1->Add( m_cbText, wxGBPosition( 1, 1 ), wxGBSpan( 1, 1 ), wxLEFT|wxRIGHT, 5 );
|
||||
|
||||
m_cbTracks = new wxCheckBox( this, wxID_ANY, wxT("Tracks"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
m_cbTracks = new wxCheckBox( this, wxID_ANY, _("Tracks"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
m_cbTracks->SetValue(true);
|
||||
gbSizer1->Add( m_cbTracks, wxGBPosition( 2, 0 ), wxGBSpan( 1, 1 ), wxLEFT|wxRIGHT, 5 );
|
||||
|
||||
m_cbVias = new wxCheckBox( this, wxID_ANY, wxT("Vias"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
m_cbVias = new wxCheckBox( this, wxID_ANY, _("Vias"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
m_cbVias->SetValue(true);
|
||||
gbSizer1->Add( m_cbVias, wxGBPosition( 2, 1 ), wxGBSpan( 1, 1 ), wxLEFT|wxRIGHT, 5 );
|
||||
|
||||
m_cbPads = new wxCheckBox( this, wxID_ANY, wxT("Pads"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
m_cbPads = new wxCheckBox( this, wxID_ANY, _("Pads"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
m_cbPads->SetValue(true);
|
||||
gbSizer1->Add( m_cbPads, wxGBPosition( 3, 0 ), wxGBSpan( 1, 1 ), wxLEFT|wxRIGHT, 5 );
|
||||
|
||||
m_cbGraphics = new wxCheckBox( this, wxID_ANY, wxT("Graphics"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
m_cbGraphics = new wxCheckBox( this, wxID_ANY, _("Graphics"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
m_cbGraphics->SetValue(true);
|
||||
gbSizer1->Add( m_cbGraphics, wxGBPosition( 3, 1 ), wxGBSpan( 1, 1 ), wxLEFT|wxRIGHT, 5 );
|
||||
|
||||
m_cbZones = new wxCheckBox( this, wxID_ANY, wxT("Zones"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
m_cbZones = new wxCheckBox( this, wxID_ANY, _("Zones"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
m_cbZones->SetValue(true);
|
||||
gbSizer1->Add( m_cbZones, wxGBPosition( 4, 0 ), wxGBSpan( 1, 1 ), wxLEFT|wxRIGHT, 5 );
|
||||
|
||||
m_cbKeepouts = new wxCheckBox( this, wxID_ANY, wxT("Rule Areas"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
m_cbKeepouts = new wxCheckBox( this, wxID_ANY, _("Rule Areas"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
m_cbKeepouts->SetValue(true);
|
||||
gbSizer1->Add( m_cbKeepouts, wxGBPosition( 4, 1 ), wxGBSpan( 1, 1 ), wxLEFT|wxRIGHT, 5 );
|
||||
|
||||
m_cbDimensions = new wxCheckBox( this, wxID_ANY, wxT("Dimensions"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
m_cbDimensions = new wxCheckBox( this, wxID_ANY, _("Dimensions"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
m_cbDimensions->SetValue(true);
|
||||
gbSizer1->Add( m_cbDimensions, wxGBPosition( 5, 0 ), wxGBSpan( 1, 1 ), wxBOTTOM|wxLEFT|wxRIGHT, 5 );
|
||||
|
||||
m_cbOtherItems = new wxCheckBox( this, wxID_ANY, wxT("Other items"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
m_cbOtherItems = new wxCheckBox( this, wxID_ANY, _("Other items"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
m_cbOtherItems->SetValue(true);
|
||||
gbSizer1->Add( m_cbOtherItems, wxGBPosition( 5, 1 ), wxGBSpan( 1, 1 ), wxBOTTOM|wxLEFT|wxRIGHT, 5 );
|
||||
|
||||
|
|
Loading…
Reference in New Issue