mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
FOOTPRINT_CHOOSER_FRAME: add tool-tips to buttons; PROJECT_TEMPLATE: fix strings
Translated strings must use Printf to be built, and cannot be created by concatenating sub strings that fixes the word ordering (that should be depending on language)
This commit is contained in:
parent
dc6e0223c7
commit
93d90962e5
@ -49,18 +49,17 @@ PROJECT_TEMPLATE::PROJECT_TEMPLATE( const wxString& aPath )
|
||||
if( !wxFileName::DirExists( m_basePath.GetPath() ) )
|
||||
{
|
||||
// Error, the path doesn't exist!
|
||||
m_title = _( "Could not open the template path" ) + wxS( " " ) + aPath;
|
||||
m_title.Printf( _( "Could not open the template path '%s'" ), aPath );
|
||||
}
|
||||
else if( !wxFileName::DirExists( m_metaPath.GetPath() ) )
|
||||
{
|
||||
// Error, the meta information directory doesn't exist!
|
||||
m_title = _( "Could not find the expected 'meta' directory at" ) +
|
||||
wxS( " " ) + m_metaPath.GetPath();
|
||||
m_title.Printf( _( "Could not find the expected 'meta' directory at '%s'" ), m_metaPath.GetPath() );
|
||||
}
|
||||
else if( !wxFileName::FileExists( m_metaHtmlFile.GetFullPath() ) )
|
||||
{
|
||||
// Error, the meta information directory doesn't contain the informational html file!
|
||||
m_title = _( "Could not find the expected meta HTML file at" ) + wxS( " " ) + m_metaHtmlFile.GetFullPath();
|
||||
m_title.Printf( _( "Could not find the expected meta HTML file at '%s'" ), m_metaHtmlFile.GetFullPath() );
|
||||
}
|
||||
|
||||
// Try to load an icon
|
||||
|
@ -147,6 +147,7 @@ FOOTPRINT_CHOOSER_FRAME::FOOTPRINT_CHOOSER_FRAME( KIWAY* aKiway, wxWindow* aPare
|
||||
m_toggleDescription = new BITMAP_BUTTON( m_bottomPanel, wxID_ANY, wxNullBitmap );
|
||||
m_toggleDescription->SetIsRadioButton();
|
||||
m_toggleDescription->SetBitmap( KiBitmapBundle( BITMAPS::text_visibility_off ) );
|
||||
m_toggleDescription->SetToolTip( _( "Show/hide description panel" ) );
|
||||
m_toggleDescription->Check( m_showDescription );
|
||||
buttonsSizer->Add( m_toggleDescription, 0, wxRIGHT | wxLEFT | wxALIGN_CENTER_VERTICAL, 1 );
|
||||
|
||||
@ -157,12 +158,14 @@ FOOTPRINT_CHOOSER_FRAME::FOOTPRINT_CHOOSER_FRAME( KIWAY* aKiway, wxWindow* aPare
|
||||
m_grButton3DView = new BITMAP_BUTTON( m_bottomPanel, wxID_ANY, wxNullBitmap );
|
||||
m_grButton3DView->SetIsRadioButton();
|
||||
m_grButton3DView->SetBitmap( KiBitmapBundle( BITMAPS::shape_3d ) );
|
||||
m_grButton3DView->SetToolTip( _( "Show/hide 3D view panel" ) );
|
||||
m_grButton3DView->Check( m_show3DMode );
|
||||
buttonsSizer->Add( m_grButton3DView, 0, wxRIGHT | wxALIGN_CENTER_VERTICAL, 1 );
|
||||
|
||||
m_grButtonFpView = new BITMAP_BUTTON( m_bottomPanel, wxID_ANY, wxNullBitmap );
|
||||
m_grButtonFpView->SetIsRadioButton();
|
||||
m_grButtonFpView->SetBitmap( KiBitmapBundle( BITMAPS::module ) );
|
||||
m_grButtonFpView->SetToolTip( _( "Show/hide footprint view panel" ) );
|
||||
m_grButtonFpView->Check( m_showFpMode );
|
||||
buttonsSizer->Add( m_grButtonFpView, 0, wxRIGHT | wxALIGN_CENTER_VERTICAL, 1 );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user