wxString D_PAD::GetSelectMenuText() const { wxString text; wxString padlayers( LayerMaskDescribe( GetBoard(), m_layerMask ) ); wxString padname( GetPadName() ); if( padname.IsEmpty() ) { text.Printf( _( "Pad on %s of %s" ), GetChars( padlayers ), GetChars(GetParent()->GetReference() ) ); } else { text.Printf( _( "Pad %s on %s of %s" ), GetChars(GetPadName() ), GetChars( padlayers ), GetChars(GetParent()->GetReference() ) ); } return text; }