Add missing on-the-fly translation handlers.

This commit is contained in:
Jeff Young 2024-01-28 11:42:27 +00:00
parent 995c4af51d
commit dd022c44e7
2 changed files with 10 additions and 0 deletions

View File

@ -1188,11 +1188,19 @@ void EDA_DRAW_FRAME::ShowChangedLanguage()
if( m_searchPane ) if( m_searchPane )
{ {
wxAuiPaneInfo& search_pane_info = m_auimgr.GetPane( m_searchPane );
search_pane_info.Caption( _( "Search" ) );
m_searchPane->OnLanguageChange(); m_searchPane->OnLanguageChange();
} }
if( m_propertiesPanel ) if( m_propertiesPanel )
{
wxAuiPaneInfo& properties_pane_info = m_auimgr.GetPane( m_propertiesPanel );
properties_pane_info.Caption( _( "Properties" ) );
m_propertiesPanel->OnLanguageChanged(); m_propertiesPanel->OnLanguageChanged();
}
} }

View File

@ -36,6 +36,8 @@ SEARCH_PANE::~SEARCH_PANE()
void SEARCH_PANE::OnLanguageChange() void SEARCH_PANE::OnLanguageChange()
{ {
m_searchCtrl1->SetDescriptiveText( _( "Search" ) );
for( size_t i = 0; i < m_notebook->GetPageCount(); ++i ) for( size_t i = 0; i < m_notebook->GetPageCount(); ++i )
{ {
wxWindow* page = m_notebook->GetPage( i ); wxWindow* page = m_notebook->GetPage( i );