Add on-the-fly i18n update for m_inactiveLayersLabel.
Fixes https://gitlab.com/kicad/code/kicad/issues/11435
This commit is contained in:
parent
6738708a7f
commit
3304ad75ca
|
@ -1676,6 +1676,16 @@ void APPEARANCE_CONTROLS::rebuildLayers()
|
|||
|
||||
m_paneLayerDisplayOptions->SetLabel( _( "Layer Display Options" ) );
|
||||
|
||||
int hotkey = PCB_ACTIONS::highContrastModeCycle.GetHotKey();
|
||||
wxString msg;
|
||||
|
||||
if( hotkey )
|
||||
msg = wxString::Format( _( "Inactive layers (%s):" ), KeyNameFromKeyCode( hotkey ) );
|
||||
else
|
||||
msg = _( "Inactive layers:" );
|
||||
|
||||
m_inactiveLayersLabel->SetLabel( msg );
|
||||
|
||||
m_rbHighContrastNormal->SetLabel( _( "Normal" ) );
|
||||
m_rbHighContrastNormal->SetToolTip( _( "Inactive layers will be shown in full color" ) );
|
||||
|
||||
|
|
Loading…
Reference in New Issue