Properties: translation fixes

This commit is contained in:
Jon Evans 2022-12-22 17:44:14 -05:00
parent b16e4595d3
commit 4a0588db7a
3 changed files with 4 additions and 2 deletions

View File

@ -162,7 +162,7 @@ wxPGProperty* PGPropertyFactory( const PROPERTY_BASE* aProperty )
ret->SetLabel( wxGetTranslation( aProperty->Name() ) ); ret->SetLabel( wxGetTranslation( aProperty->Name() ) );
ret->SetName( aProperty->Name() ); ret->SetName( aProperty->Name() );
ret->Enable( !aProperty->IsReadOnly() ); ret->Enable( !aProperty->IsReadOnly() );
ret->SetHelpString( aProperty->Name() ); ret->SetHelpString( wxGetTranslation( aProperty->Name() ) );
ret->SetClientData( const_cast<PROPERTY_BASE*>( aProperty ) ); ret->SetClientData( const_cast<PROPERTY_BASE*>( aProperty ) );
} }

View File

@ -285,9 +285,10 @@ void PROPERTIES_PANEL::update( const SELECTION& aSelection )
continue; continue;
std::vector<wxPGProperty*>& properties = pgPropGroups[groupName]; std::vector<wxPGProperty*>& properties = pgPropGroups[groupName];
wxString groupCaption = wxGetTranslation( groupName );
auto groupItem = new wxPropertyCategory( groupName.IsEmpty() ? unspecifiedGroupCaption auto groupItem = new wxPropertyCategory( groupName.IsEmpty() ? unspecifiedGroupCaption
: groupName ); : groupCaption );
m_grid->Append( groupItem ); m_grid->Append( groupItem );

View File

@ -101,6 +101,7 @@ wxPGProperty* PCB_PROPERTIES_PANEL::createPGProperty( const PROPERTY_BASE* aProp
ret->SetLabel( wxGetTranslation( aProperty->Name() ) ); ret->SetLabel( wxGetTranslation( aProperty->Name() ) );
ret->SetName( aProperty->Name() ); ret->SetName( aProperty->Name() );
ret->Enable( !aProperty->IsReadOnly() ); ret->Enable( !aProperty->IsReadOnly() );
ret->SetHelpString( wxGetTranslation( aProperty->Name() ) );
ret->SetClientData( const_cast<PROPERTY_BASE*>( aProperty ) ); ret->SetClientData( const_cast<PROPERTY_BASE*>( aProperty ) );
return ret; return ret;