Browse Source

Fix typo and I18N string

pull/16/head
jean-pierre charras 6 years ago
parent
commit
bc24d8e957
  1. 5
      eeschema/files-io.cpp
  2. 2
      eeschema/sch_screen.cpp
  3. 8
      pcbnew/class_zone.cpp

5
eeschema/files-io.cpp

@ -645,14 +645,13 @@ bool SCH_EDIT_FRAME::SaveProject()
msg += "\n" + overwrittenFile; msg += "\n" + overwrittenFile;
} }
msg = _( "The following files will be overwritten:\n\n" ) + msg;
wxRichMessageDialog dlg( wxRichMessageDialog dlg(
this, this,
_( "Saving the project to the new file format will overwrite existing files." ), _( "Saving the project to the new file format will overwrite existing files." ),
_( "Project Save Warning" ), _( "Project Save Warning" ),
wxOK | wxCANCEL | wxCANCEL_DEFAULT | wxCENTER | wxICON_EXCLAMATION ); wxOK | wxCANCEL | wxCANCEL_DEFAULT | wxCENTER | wxICON_EXCLAMATION );
dlg.ShowDetailedText( msg );
dlg.ShowDetailedText( wxString::Format(
_( "The following files will be overwritten:\n\n%s" ), msg ) );
dlg.SetOKCancelLabels( wxMessageDialog::ButtonLabel( _( "Overwrite Files" ) ), dlg.SetOKCancelLabels( wxMessageDialog::ButtonLabel( _( "Overwrite Files" ) ),
wxMessageDialog::ButtonLabel( _( "Abort Project Save" ) ) ); wxMessageDialog::ButtonLabel( _( "Abort Project Save" ) ) );

2
eeschema/sch_screen.cpp

@ -643,7 +643,7 @@ void SCH_SCREEN::UpdateSymbolLinks( REPORTER* aReporter )
if( aReporter ) if( aReporter )
{ {
msg.Printf( _( "Symbol library '%s' not found and no fallback cache " msg.Printf( _( "Symbol library '%s' not found and no fallback cache "
"library avaiable. Unable to link library symbol." ),
"library available. Unable to link library symbol." ),
symbol->GetLibId().GetLibNickname().wx_str() ); symbol->GetLibId().GetLibNickname().wx_str() );
aReporter->ReportTail( msg, RPT_SEVERITY_WARNING ); aReporter->ReportTail( msg, RPT_SEVERITY_WARNING );
} }

8
pcbnew/class_zone.cpp

@ -541,16 +541,16 @@ void ZONE_CONTAINER::GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, std::vector<MSG_PA
AccumulateDescription( msg, _( "No vias" ) ); AccumulateDescription( msg, _( "No vias" ) );
if( GetDoNotAllowTracks() ) if( GetDoNotAllowTracks() )
AccumulateDescription( msg, _("No tracks") );
AccumulateDescription( msg, _( "No tracks" ) );
if( GetDoNotAllowPads() ) if( GetDoNotAllowPads() )
AccumulateDescription( msg, _("No pads") );
AccumulateDescription( msg, _( "No pads" ) );
if( GetDoNotAllowCopperPour() ) if( GetDoNotAllowCopperPour() )
AccumulateDescription( msg, _("No copper pours") );
AccumulateDescription( msg, _( "No copper zones" ) );
if( GetDoNotAllowFootprints() ) if( GetDoNotAllowFootprints() )
AccumulateDescription( msg, _("No footpints") );
AccumulateDescription( msg, _( "No footprints" ) );
aList.emplace_back( MSG_PANEL_ITEM( _( "Keepout" ), msg, RED ) ); aList.emplace_back( MSG_PANEL_ITEM( _( "Keepout" ), msg, RED ) );
} }

Loading…
Cancel
Save