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->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 ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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 );
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue