UI improvements for Manage Symbol Libraries.

Fixes https://gitlab.com/kicad/code/kicad/issues/8466
This commit is contained in:
Jeff Young 2021-06-09 19:20:09 +01:00
parent 49de9e405e
commit de95edb5ad
4 changed files with 10 additions and 10 deletions

View File

@ -720,22 +720,22 @@ void PANEL_SYM_LIB_TABLE::onConvertLegacyLibraries( wxCommandEvent& event )
if( legacyRows.size() <= 0 )
{
wxMessageBox( _( "Select one or more table rows containing legacy libraries to save as "
"current format (*.kicad_sym)." ) );
wxMessageBox( _( "Select one or more rows containing libraries in Legacy format (*.lib) "
"to save as current KiCad format (*.kicad_sym)." ) );
return;
}
else
{
if( legacyRows.size() == 1 )
{
msg.Printf( _( "Save '%s' as current format (*.kicad_sym) and "
"replace legacy entry in table?" ),
msg.Printf( _( "Save '%s' as current KiCad format (*.kicad_sym) "
"and replace legacy entry in table?" ),
m_cur_grid->GetCellValue( legacyRows[0], COL_NICKNAME ) );
}
else
{
msg.Printf( _( "Save %d legacy libraries as current format (*.kicad_sym) and "
"replace legacy entries in table?" ),
msg.Printf( _( "Save %d Legacy format libraries as current KiCad format (*.kicad_sym) "
"and replace legacy entries in table?" ),
(int) legacyRows.size() );
}

View File

@ -132,7 +132,7 @@ PANEL_SYM_LIB_TABLE_BASE::PANEL_SYM_LIB_TABLE_BASE( wxWindow* parent, wxWindowID
bSizer51->Add( 0, 0, 1, wxEXPAND, 5 );
m_convertLegacy = new wxButton( m_top_sizer->GetStaticBox(), wxID_ANY, _("Migrate Libraries..."), wxDefaultPosition, wxDefaultSize, 0 );
m_convertLegacy = new wxButton( m_top_sizer->GetStaticBox(), wxID_ANY, _("Migrate Libraries"), wxDefaultPosition, wxDefaultSize, 0 );
bSizer51->Add( m_convertLegacy, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT, 5 );

View File

@ -859,7 +859,7 @@
<property name="gripper">0</property>
<property name="hidden">0</property>
<property name="id">wxID_ANY</property>
<property name="label">Migrate Libraries...</property>
<property name="label">Migrate Libraries</property>
<property name="margins"></property>
<property name="markup">0</property>
<property name="max_size"></property>

View File

@ -183,8 +183,8 @@ public:
case COL_NICKNAME: return _( "Nickname" );
case COL_URI: return _( "Library Path" );
// keep this "Plugin Type" text fairly long so column is sized wide enough
case COL_TYPE: return _( "Plugin Type" );
// keep this "Library Format" text fairly long so column is sized wide enough
case COL_TYPE: return _( "Library Format" );
case COL_OPTIONS: return _( "Options" );
case COL_DESCR: return _( "Description" );
case COL_ENABLED: return _( "Active" );