Add on-the-fly i18n update for m_inactiveLayersLabel.

Fixes https://gitlab.com/kicad/code/kicad/issues/11435
This commit is contained in:
Jeff Young 2022-04-24 17:24:35 +01:00
parent 6738708a7f
commit 3304ad75ca
1 changed files with 10 additions and 0 deletions

View File

@ -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" ) );