mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-19 14:11:41 +00:00
Properties: translation fixes
This commit is contained in:
parent
b16e4595d3
commit
4a0588db7a
@ -162,7 +162,7 @@ wxPGProperty* PGPropertyFactory( const PROPERTY_BASE* aProperty )
|
||||
ret->SetLabel( wxGetTranslation( aProperty->Name() ) );
|
||||
ret->SetName( aProperty->Name() );
|
||||
ret->Enable( !aProperty->IsReadOnly() );
|
||||
ret->SetHelpString( aProperty->Name() );
|
||||
ret->SetHelpString( wxGetTranslation( aProperty->Name() ) );
|
||||
ret->SetClientData( const_cast<PROPERTY_BASE*>( aProperty ) );
|
||||
}
|
||||
|
||||
|
@ -285,9 +285,10 @@ void PROPERTIES_PANEL::update( const SELECTION& aSelection )
|
||||
continue;
|
||||
|
||||
std::vector<wxPGProperty*>& properties = pgPropGroups[groupName];
|
||||
wxString groupCaption = wxGetTranslation( groupName );
|
||||
|
||||
auto groupItem = new wxPropertyCategory( groupName.IsEmpty() ? unspecifiedGroupCaption
|
||||
: groupName );
|
||||
: groupCaption );
|
||||
|
||||
m_grid->Append( groupItem );
|
||||
|
||||
|
@ -101,6 +101,7 @@ wxPGProperty* PCB_PROPERTIES_PANEL::createPGProperty( const PROPERTY_BASE* aProp
|
||||
ret->SetLabel( wxGetTranslation( aProperty->Name() ) );
|
||||
ret->SetName( aProperty->Name() );
|
||||
ret->Enable( !aProperty->IsReadOnly() );
|
||||
ret->SetHelpString( wxGetTranslation( aProperty->Name() ) );
|
||||
ret->SetClientData( const_cast<PROPERTY_BASE*>( aProperty ) );
|
||||
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user