From 1722bc03b0525584e839aa258f3a9e61d8a3647e Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Wed, 16 Jun 2021 23:35:00 +0100 Subject: [PATCH] Consistent terminology and punctuation. --- bitmap2component/bitmap2cmp_gui.cpp | 8 +-- common/common.cpp | 6 +-- common/dialogs/dialog_page_settings.cpp | 2 +- common/dialogs/wx_html_report_panel.cpp | 2 +- common/eda_base_frame.cpp | 6 +-- common/eda_doc.cpp | 4 +- common/gestfich.cpp | 6 +-- cvpcb/auto_associate.cpp | 4 +- cvpcb/dialogs/dialog_config_equfiles.cpp | 2 +- .../dialogs/dialog_edit_symbols_libid.cpp | 2 +- eeschema/dialogs/dialog_plot_schematic.cpp | 47 ++++++++--------- eeschema/dialogs/dialog_symbol_remap.cpp | 52 +++++++++++-------- eeschema/eeschema.cpp | 4 +- eeschema/eeschema_config.cpp | 2 +- eeschema/files-io.cpp | 26 ++++++---- eeschema/getpart.cpp | 5 +- eeschema/libarch.cpp | 9 ++-- .../netlist_exporter_cadstar.cpp | 2 +- .../netlist_exporter_orcadpcb2.cpp | 2 +- eeschema/project_rescue.cpp | 2 +- eeschema/sch_edit_frame.cpp | 2 +- eeschema/sheet.cpp | 13 ++--- eeschema/symbol_editor/symbol_editor.cpp | 19 ++++--- .../symbol_editor_import_export.cpp | 18 +++---- eeschema/symbol_library.cpp | 5 +- gerbview/export_to_pcbnew.cpp | 2 +- gerbview/files.cpp | 8 +-- gerbview/gerbview.cpp | 2 +- gerbview/tools/gerbview_inspection_tool.cpp | 6 +-- kicad/files-io.cpp | 2 +- kicad/tools/kicad_manager_control.cpp | 8 +-- pcbnew/build_BOM_from_board.cpp | 2 +- pcbnew/dialogs/dialog_board_statistics.cpp | 4 +- .../dialog_footprint_properties_fp_editor.cpp | 2 +- pcbnew/dialogs/dialog_gendrill.cpp | 4 +- pcbnew/dialogs/dialog_netlist.cpp | 2 +- pcbnew/dialogs/dialog_plot.cpp | 8 +-- pcbnew/exporters/gen_footprints_placefile.cpp | 30 +++++------ pcbnew/exporters/gerber_jobfile_writer.cpp | 4 +- pcbnew/files.cpp | 10 ++-- .../netlist_reader/legacy_netlist_reader.cpp | 4 +- pcbnew/netlist_reader/netlist.cpp | 10 ++-- pcbnew/netlist_reader/netlist_reader.cpp | 2 +- pcbnew/pcbnew.cpp | 2 +- 44 files changed, 187 insertions(+), 175 deletions(-) diff --git a/bitmap2component/bitmap2cmp_gui.cpp b/bitmap2component/bitmap2cmp_gui.cpp index 092a7983b5..2e5bed6253 100644 --- a/bitmap2component/bitmap2cmp_gui.cpp +++ b/bitmap2component/bitmap2cmp_gui.cpp @@ -752,7 +752,7 @@ void BM2CMP_FRAME::OnExportLogo() if( outfile == NULL ) { wxString msg; - msg.Printf( _( "File \"%s\" could not be created." ), m_ConvertedFileName ); + msg.Printf( _( "File '%s' could not be created." ), m_ConvertedFileName ); wxMessageBox( msg ); return; } @@ -792,7 +792,7 @@ void BM2CMP_FRAME::exportPostScriptFormat() if( outfile == NULL ) { wxString msg; - msg.Printf( _( "File \"%s\" could not be created." ), m_ConvertedFileName ); + msg.Printf( _( "File '%s' could not be created." ), m_ConvertedFileName ); wxMessageBox( msg ); return; } @@ -831,7 +831,7 @@ void BM2CMP_FRAME::exportEeschemaFormat() if( outfile == NULL ) { wxString msg; - msg.Printf( _( "File \"%s\" could not be created." ), m_ConvertedFileName ); + msg.Printf( _( "File '%s' could not be created." ), m_ConvertedFileName ); wxMessageBox( msg ); return; } @@ -870,7 +870,7 @@ void BM2CMP_FRAME::exportPcbnewFormat() if( outfile == NULL ) { wxString msg; - msg.Printf( _( "File \"%s\" could not be created." ), m_ConvertedFileName ); + msg.Printf( _( "File '%s' could not be created." ), m_ConvertedFileName ); wxMessageBox( msg ); return; } diff --git a/common/common.cpp b/common/common.cpp index 1f4526d71a..1f86a281e5 100644 --- a/common/common.cpp +++ b/common/common.cpp @@ -317,7 +317,7 @@ bool EnsureFileDirectoryExists( wxFileName* aTargetFullFileName, { if( aReporter ) { - msg.Printf( _( "Cannot make path \"%s\" absolute with respect to \"%s\"." ), + msg.Printf( _( "Cannot make path '%s' absolute with respect to '%s'." ), aTargetFullFileName->GetPath(), baseFilePath ); aReporter->Report( msg, RPT_SEVERITY_ERROR ); @@ -336,7 +336,7 @@ bool EnsureFileDirectoryExists( wxFileName* aTargetFullFileName, { if( aReporter ) { - msg.Printf( _( "Output directory \"%s\" created.\n" ), outputPath ); + msg.Printf( _( "Output directory '%s' created.\n" ), outputPath ); aReporter->Report( msg, RPT_SEVERITY_INFO ); return true; } @@ -345,7 +345,7 @@ bool EnsureFileDirectoryExists( wxFileName* aTargetFullFileName, { if( aReporter ) { - msg.Printf( _( "Cannot create output directory \"%s\".\n" ), outputPath ); + msg.Printf( _( "Cannot create output directory '%s'.\n" ), outputPath ); aReporter->Report( msg, RPT_SEVERITY_ERROR ); } diff --git a/common/dialogs/dialog_page_settings.cpp b/common/dialogs/dialog_page_settings.cpp index 3b51fe98cb..04fb3b7f3f 100644 --- a/common/dialogs/dialog_page_settings.cpp +++ b/common/dialogs/dialog_page_settings.cpp @@ -463,7 +463,7 @@ bool DIALOG_PAGES_SETTINGS::SavePageSettings() if( !fullFileName.IsEmpty() && !wxFileExists( fullFileName ) ) { wxString msg; - msg.Printf( _( "Drawing sheet file \"%s\" not found." ), fullFileName ); + msg.Printf( _( "Drawing sheet file '%s' not found." ), fullFileName ); wxMessageBox( msg ); return false; } diff --git a/common/dialogs/wx_html_report_panel.cpp b/common/dialogs/wx_html_report_panel.cpp index 4109ff7ebe..66f83d685c 100644 --- a/common/dialogs/wx_html_report_panel.cpp +++ b/common/dialogs/wx_html_report_panel.cpp @@ -348,7 +348,7 @@ void WX_HTML_REPORT_PANEL::onBtnSaveToFile( wxCommandEvent& event ) { wxString msg; - msg.Printf( _( "Cannot write report to file \"%s\"." ), + msg.Printf( _( "Cannot write report to file '%s'." ), fn.GetFullPath().GetData() ); wxMessageBox( msg, _( "File save error" ), wxOK | wxICON_ERROR, this ); return; diff --git a/common/eda_base_frame.cpp b/common/eda_base_frame.cpp index 83d3376f22..0604d7e036 100644 --- a/common/eda_base_frame.cpp +++ b/common/eda_base_frame.cpp @@ -973,17 +973,17 @@ bool EDA_BASE_FRAME::IsWritable( const wxFileName& aFileName ) if( fn.IsDir() && !fn.IsDirWritable() ) { - msg.Printf( _( "You do not have write permissions to folder \"%s\"." ), + msg.Printf( _( "You do not have write permissions to folder '%s'." ), fn.GetPath() ); } else if( !fn.FileExists() && !fn.IsDirWritable() ) { - msg.Printf( _( "You do not have write permissions to save file \"%s\" to folder \"%s\"." ), + msg.Printf( _( "You do not have write permissions to save file '%s' to folder '%s'." ), fn.GetFullName(), fn.GetPath() ); } else if( fn.FileExists() && !fn.IsFileWritable() ) { - msg.Printf( _( "You do not have write permissions to save file \"%s\"." ), + msg.Printf( _( "You do not have write permissions to save file '%s'." ), fn.GetFullPath() ); } diff --git a/common/eda_doc.cpp b/common/eda_doc.cpp index 0d97c21bdb..198810b012 100644 --- a/common/eda_doc.cpp +++ b/common/eda_doc.cpp @@ -155,7 +155,7 @@ bool GetAssociatedDocument( wxWindow* aParent, const wxString& aDocName, PROJECT if( !wxFileExists( fullfilename ) ) { - msg.Printf( _( "Doc File \"%s\" not found" ), docname ); + msg.Printf( _( "Doc File '%s' not found" ), docname ); DisplayError( aParent, msg ); return false; } @@ -198,7 +198,7 @@ bool GetAssociatedDocument( wxWindow* aParent, const wxString& aDocName, PROJECT if( !success ) { - msg.Printf( _( "Unknown MIME type for doc file \"%s\"" ), fullfilename ); + msg.Printf( _( "Unknown MIME type for doc file '%s'" ), fullfilename ); DisplayError( aParent, msg ); } diff --git a/common/gestfich.cpp b/common/gestfich.cpp index 7a69048afe..b05b84d268 100644 --- a/common/gestfich.cpp +++ b/common/gestfich.cpp @@ -187,7 +187,7 @@ int ExecuteFile( wxWindow* frame, const wxString& ExecFile, const wxString& para #endif wxString msg; - msg.Printf( _( "Command \"%s\" could not found" ), fullFileName ); + msg.Printf( _( "Command '%s' could not be found." ), fullFileName ); DisplayError( frame, msg, 20 ); return -1; } @@ -239,14 +239,14 @@ bool OpenPDF( const wxString& file ) else { wxString msg; - msg.Printf( _( "Problem while running the PDF viewer\nCommand is \"%s\"" ), command ); + msg.Printf( _( "Problem while running the PDF viewer.\nCommand is '%s'." ), command ); DisplayError( NULL, msg ); } } else { wxString msg; - msg.Printf( _( "Unable to find a PDF viewer for \"%s\"" ), file ); + msg.Printf( _( "Unable to find a PDF viewer for '%s'." ), file ); DisplayError( NULL, msg ); } diff --git a/cvpcb/auto_associate.cpp b/cvpcb/auto_associate.cpp index 29ae455424..3893332268 100644 --- a/cvpcb/auto_associate.cpp +++ b/cvpcb/auto_associate.cpp @@ -103,7 +103,7 @@ int CVPCB_MAINFRAME::buildEquivalenceList( FOOTPRINT_EQUIVALENCE_LIST& aList, if( aErrorMessages ) { - error_msg.Printf( _( "Equivalence file \"%s\" could not be found in the " + error_msg.Printf( _( "Equivalence file '%s' could not be found in the " "default search paths." ), fn.GetFullName() ); @@ -124,7 +124,7 @@ int CVPCB_MAINFRAME::buildEquivalenceList( FOOTPRINT_EQUIVALENCE_LIST& aList, if( aErrorMessages ) { - error_msg.Printf( _( "Error opening equivalence file \"%s\"." ), tmp ); + error_msg.Printf( _( "Error opening equivalence file '%s'." ), tmp ); if( ! aErrorMessages->IsEmpty() ) *aErrorMessages << wxT("\n\n"); diff --git a/cvpcb/dialogs/dialog_config_equfiles.cpp b/cvpcb/dialogs/dialog_config_equfiles.cpp index 562618b437..8a58cb6c71 100644 --- a/cvpcb/dialogs/dialog_config_equfiles.cpp +++ b/cvpcb/dialogs/dialog_config_equfiles.cpp @@ -290,7 +290,7 @@ void DIALOG_CONFIG_EQUFILES::OnAddFiles( wxCommandEvent& event ) else { wxString msg; - msg.Printf( _( "File \"%s\" already exists in list" ), equFilename.GetData() ); + msg.Printf( _( "File '%s' already exists in list." ), equFilename.GetData() ); DisplayError( this, msg ); } } diff --git a/eeschema/dialogs/dialog_edit_symbols_libid.cpp b/eeschema/dialogs/dialog_edit_symbols_libid.cpp index 1a874dd46b..12e0b561ac 100644 --- a/eeschema/dialogs/dialog_edit_symbols_libid.cpp +++ b/eeschema/dialogs/dialog_edit_symbols_libid.cpp @@ -532,7 +532,7 @@ bool DIALOG_EDIT_SYMBOLS_LIBID::validateLibIds() if( !id.IsValid() ) { wxString msg; - msg.Printf( _( "Symbol library identifier \"%s\" is not valid." ), new_libid ); + msg.Printf( _( "Symbol library identifier %s is not valid." ), new_libid ); wxMessageBox( msg ); m_grid->SetFocus(); diff --git a/eeschema/dialogs/dialog_plot_schematic.cpp b/eeschema/dialogs/dialog_plot_schematic.cpp index 5c55fd6ab6..4d9bc27ac7 100644 --- a/eeschema/dialogs/dialog_plot_schematic.cpp +++ b/eeschema/dialogs/dialog_plot_schematic.cpp @@ -228,7 +228,7 @@ void DIALOG_PLOT_SCHEMATIC::OnOutputDirectoryBrowseClicked( wxCommandEvent& even // Test if making the path relative is possible before asking the user if they want to do it if( relPathTest.MakeRelativeTo( defaultPath ) ) { - msg.Printf( _( "Do you want to use a path relative to\n\"%s\"" ), defaultPath ); + msg.Printf( _( "Do you want to use a path relative to\n'%s'?" ), defaultPath ); wxMessageDialog dialog( this, msg, _( "Plot Output Directory" ), wxYES_NO | wxICON_QUESTION | wxYES_DEFAULT ); @@ -246,16 +246,11 @@ PLOT_FORMAT DIALOG_PLOT_SCHEMATIC::GetPlotFileFormat() switch( m_plotFormatOpt->GetSelection() ) { default: - case 0: - return PLOT_FORMAT::POST; - case 1: - return PLOT_FORMAT::PDF; - case 2: - return PLOT_FORMAT::SVG; - case 3: - return PLOT_FORMAT::DXF; - case 4: - return PLOT_FORMAT::HPGL; + case 0: return PLOT_FORMAT::POST; + case 1: return PLOT_FORMAT::PDF; + case 2: return PLOT_FORMAT::SVG; + case 3: return PLOT_FORMAT::DXF; + case 4: return PLOT_FORMAT::HPGL; } } @@ -515,18 +510,18 @@ void DIALOG_PLOT_SCHEMATIC::createDxfFile( bool aPlotAll, bool aPlotDrawingSheet if( plotOneSheetDxf( plotFileName.GetFullPath(), screen, aRenderSettings, plot_offset, 1.0, aPlotDrawingSheet ) ) { - msg.Printf( _( "Plot: \"%s\" OK.\n" ), plotFileName.GetFullPath() ); + msg.Printf( _( "Plotted to '%s'.\n" ), plotFileName.GetFullPath() ); reporter.Report( msg, RPT_SEVERITY_ACTION ); } else // Error { - msg.Printf( _( "Unable to create file \"%s\".\n" ), plotFileName.GetFullPath() ); + msg.Printf( _( "Unable to create file '%s'.\n" ), plotFileName.GetFullPath() ); reporter.Report( msg, RPT_SEVERITY_ERROR ); } } catch( IO_ERROR& e ) { - msg.Printf( wxT( "DXF Plotter exception: %s"), e.What() ); + msg.Printf( wxT( "DXF Plotter exception: %s\n"), e.What() ); reporter.Report( msg, RPT_SEVERITY_ERROR ); schframe->SetCurrentSheet( oldsheetpath ); schframe->GetCurrentSheet().UpdateAllScreenReferences(); @@ -685,18 +680,18 @@ void DIALOG_PLOT_SCHEMATIC::createHPGLFile( bool aPlotAll, bool aPlotFrameRef, if( plotOneSheetHpgl( plotFileName.GetFullPath(), screen, plotPage, aRenderSettings, plotOffset, plot_scale, aPlotFrameRef, getPlotOriginAndUnits() ) ) { - msg.Printf( _( "Plot: \"%s\" OK.\n" ), plotFileName.GetFullPath() ); + msg.Printf( _( "Plotted to '%s'.\n" ), plotFileName.GetFullPath() ); reporter.Report( msg, RPT_SEVERITY_ACTION ); } else { - msg.Printf( _( "Unable to create file \"%s\".\n" ), plotFileName.GetFullPath() ); + msg.Printf( _( "Unable to create file '%s'.\n" ), plotFileName.GetFullPath() ); reporter.Report( msg, RPT_SEVERITY_ERROR ); } } catch( IO_ERROR& e ) { - msg.Printf( wxT( "HPGL Plotter exception: %s"), e.What() ); + msg.Printf( wxT( "HPGL Plotter exception: %s\n"), e.What() ); reporter.Report( msg, RPT_SEVERITY_ERROR ); } @@ -842,7 +837,7 @@ void DIALOG_PLOT_SCHEMATIC::createPDFFile( bool aPlotAll, bool aPlotDrawingSheet if( !plotter->OpenFile( plotFileName.GetFullPath() ) ) { - msg.Printf( _( "Unable to create file \"%s\".\n" ), + msg.Printf( _( "Unable to create file '%s'.\n" ), plotFileName.GetFullPath() ); reporter.Report( msg, RPT_SEVERITY_ERROR ); delete plotter; @@ -856,7 +851,7 @@ void DIALOG_PLOT_SCHEMATIC::createPDFFile( bool aPlotAll, bool aPlotDrawingSheet catch( const IO_ERROR& e ) { // Cannot plot PDF file - msg.Printf( wxT( "PDF Plotter exception: %s" ), e.What() ); + msg.Printf( wxT( "PDF Plotter exception: %s\n" ), e.What() ); reporter.Report( msg, RPT_SEVERITY_ERROR ); restoreEnvironment( plotter, oldsheetpath ); @@ -877,7 +872,7 @@ void DIALOG_PLOT_SCHEMATIC::createPDFFile( bool aPlotAll, bool aPlotDrawingSheet } // Everything done, close the plot and restore the environment - msg.Printf( _( "Plot: \"%s\" OK.\n" ), plotFileName.GetFullPath() ); + msg.Printf( _( "Plotted to '%s'.\n" ), plotFileName.GetFullPath() ); reporter.Report( msg, RPT_SEVERITY_ACTION ); restoreEnvironment( plotter, oldsheetpath ); @@ -1039,20 +1034,20 @@ void DIALOG_PLOT_SCHEMATIC::createPSFile( bool aPlotAll, bool aPlotFrameRef, if( plotOneSheetPS( plotFileName.GetFullPath(), screen, aRenderSettings, plotPage, plot_offset, scale, aPlotFrameRef ) ) { - msg.Printf( _( "Plot: \"%s\" OK.\n" ), plotFileName.GetFullPath() ); + msg.Printf( _( "Plotted to '%s'.\n" ), plotFileName.GetFullPath() ); reporter.Report( msg, RPT_SEVERITY_ACTION ); } else { // Error - msg.Printf( _( "Unable to create file \"%s\".\n" ), plotFileName.GetFullPath() ); + msg.Printf( _( "Unable to create file '%s'.\n" ), plotFileName.GetFullPath() ); reporter.Report( msg, RPT_SEVERITY_ERROR ); } } catch( IO_ERROR& e ) { - msg.Printf( wxT( "PS Plotter exception: %s"), e.What() ); + msg.Printf( wxT( "PS Plotter exception: %s\n"), e.What() ); reporter.Report( msg, RPT_SEVERITY_ERROR ); } } @@ -1165,19 +1160,19 @@ void DIALOG_PLOT_SCHEMATIC::createSVGFile( bool aPrintAll, bool aPrintFrameRef, if( !success ) { - msg.Printf( _( "Cannot create file \"%s\".\n" ), plotFileName.GetFullPath() ); + msg.Printf( _( "Cannot create file '%s'.\n" ), plotFileName.GetFullPath() ); reporter.Report( msg, RPT_SEVERITY_ERROR ); } else { - msg.Printf( _( "Plot: \"%s\" OK.\n" ), plotFileName.GetFullPath() ); + msg.Printf( _( "Plotted to '%s'.\n" ), plotFileName.GetFullPath() ); reporter.Report( msg, RPT_SEVERITY_ACTION ); } } catch( const IO_ERROR& e ) { // Cannot plot SVG file - msg.Printf( wxT( "SVG Plotter exception: %s" ), e.What() ); + msg.Printf( wxT( "SVG Plotter exception: %s\n" ), e.What() ); reporter.Report( msg, RPT_SEVERITY_ERROR ); break; } diff --git a/eeschema/dialogs/dialog_symbol_remap.cpp b/eeschema/dialogs/dialog_symbol_remap.cpp index 2738a391f7..4e6eeffe2e 100644 --- a/eeschema/dialogs/dialog_symbol_remap.cpp +++ b/eeschema/dialogs/dialog_symbol_remap.cpp @@ -207,8 +207,9 @@ void DIALOG_SYMBOL_REMAP::createProjectSymbolLibTable( REPORTER& aReporter ) // Don't add symbol libraries that do not exist. if( tmpFn.Normalize() && tmpFn.FileExists() ) { - msg.Printf( _( "Adding library \"%s\", file \"%s\" to project symbol library table." ), - libName, fullFileName ); + msg.Printf( _( "Adding library '%s', file '%s' to project symbol library table." ), + libName, + fullFileName ); aReporter.Report( msg, RPT_SEVERITY_INFO ); prjLibTable.InsertRow( new SYMBOL_LIB_TABLE_ROW( libName, fullFileName, @@ -216,7 +217,7 @@ void DIALOG_SYMBOL_REMAP::createProjectSymbolLibTable( REPORTER& aReporter ) } else { - msg.Printf( _( "Library \"%s\" not found." ), fullFileName ); + msg.Printf( _( "Library '%s' not found." ), fullFileName ); aReporter.Report( msg, RPT_SEVERITY_WARNING ); } } @@ -260,13 +261,13 @@ void DIALOG_SYMBOL_REMAP::remapSymbolsToLibTable( REPORTER& aReporter ) if( !remapSymbolToLibTable( symbol ) ) { - msg.Printf( _( "No symbol \"%s\" found in symbol library table." ), + msg.Printf( _( "No symbol %s found in symbol library table." ), symbol->GetLibId().GetLibItemName().wx_str() ); aReporter.Report( msg, RPT_SEVERITY_WARNING ); } else { - msg.Printf( _( "Symbol \"%s\" mapped to symbol library \"%s\"." ), + msg.Printf( _( "Symbol %s mapped to symbol library '%s'." ), symbol->GetLibId().GetLibItemName().wx_str(), symbol->GetLibId().GetLibNickname().wx_str() ); aReporter.Report( msg, RPT_SEVERITY_ACTION ); @@ -345,7 +346,7 @@ bool DIALOG_SYMBOL_REMAP::backupProject( REPORTER& aReporter ) { if( !destFileName.Mkdir() ) { - errorMsg.Printf( _( "Cannot create project remap back up folder \"%s\"." ), + errorMsg.Printf( _( "Cannot create project remap back up folder '%s'." ), destFileName.GetPath() ); wxMessageDialog dlg( this, errorMsg, _( "Backup Error" ), @@ -368,14 +369,16 @@ bool DIALOG_SYMBOL_REMAP::backupProject( REPORTER& aReporter ) destFileName.AppendDir( backupFolder ); destFileName.SetName( destFileName.GetName() + timeStamp ); - tmp.Printf( _( "Backing up file \"%s\" to file \"%s\"." ), - srcFileName.GetFullPath(), destFileName.GetFullPath() ); + tmp.Printf( _( "Backing up file '%s' to '%s'." ), + srcFileName.GetFullPath(), + destFileName.GetFullPath() ); aReporter.Report( tmp, RPT_SEVERITY_INFO ); if( wxFileName::Exists( srcFileName.GetFullPath() ) && !wxCopyFile( srcFileName.GetFullPath(), destFileName.GetFullPath() ) ) { - tmp.Printf( _( "Failed to back up file \"%s\".\n" ), srcFileName.GetFullPath() ); + tmp.Printf( _( "Failed to back up file '%s'.\n" ), + srcFileName.GetFullPath() ); errorMsg += tmp; } @@ -401,13 +404,14 @@ bool DIALOG_SYMBOL_REMAP::backupProject( REPORTER& aReporter ) destFileName.AppendDir( backupFolder ); } - tmp.Printf( _( "Backing up file \"%s\" to file \"%s\"." ), - screen->GetFileName(), destFileName.GetFullPath() ); + tmp.Printf( _( "Backing up file '%s' to '%s'." ), + screen->GetFileName(), + destFileName.GetFullPath() ); aReporter.Report( tmp, RPT_SEVERITY_INFO ); if( !destFileName.DirExists() && !destFileName.Mkdir( wxS_DIR_DEFAULT, wxPATH_MKDIR_FULL ) ) { - tmp.Printf( _( "Failed to create backup folder \"%s\"\n" ), destFileName.GetPath() ); + tmp.Printf( _( "Failed to create backup folder '%s'.\n" ), destFileName.GetPath() ); errorMsg += tmp; continue; } @@ -415,7 +419,7 @@ bool DIALOG_SYMBOL_REMAP::backupProject( REPORTER& aReporter ) if( wxFileName::Exists( screen->GetFileName() ) && !wxCopyFile( screen->GetFileName(), destFileName.GetFullPath() ) ) { - tmp.Printf( _( "Failed to back up file \"%s\".\n" ), screen->GetFileName() ); + tmp.Printf( _( "Failed to back up file '%s'.\n" ), screen->GetFileName() ); errorMsg += tmp; } } @@ -425,14 +429,15 @@ bool DIALOG_SYMBOL_REMAP::backupProject( REPORTER& aReporter ) destFileName.SetName( destFileName.GetName() + timeStamp ); destFileName.AppendDir( backupFolder ); - tmp.Printf( _( "Backing up file \"%s\" to file \"%s\"." ), - Prj().GetProjectFullName(), destFileName.GetFullPath() ); + tmp.Printf( _( "Backing up file '%s' to '%s'." ), + Prj().GetProjectFullName(), + destFileName.GetFullPath() ); aReporter.Report( tmp, RPT_SEVERITY_INFO ); if( wxFileName::Exists( Prj().GetProjectFullName() ) && !wxCopyFile( Prj().GetProjectFullName(), destFileName.GetFullPath() ) ) { - tmp.Printf( _( "Failed to back up file \"%s\".\n" ), Prj().GetProjectFullName() ); + tmp.Printf( _( "Failed to back up file '%s'.\n" ), Prj().GetProjectFullName() ); errorMsg += tmp; } @@ -445,14 +450,15 @@ bool DIALOG_SYMBOL_REMAP::backupProject( REPORTER& aReporter ) destFileName.SetName( destFileName.GetName() + timeStamp ); destFileName.AppendDir( backupFolder ); - tmp.Printf( _( "Backing up file \"%s\" to file \"%s\"." ), - srcFileName.GetFullPath(), destFileName.GetFullPath() ); + tmp.Printf( _( "Backing up file '%s' to '%s'." ), + srcFileName.GetFullPath(), + destFileName.GetFullPath() ); aReporter.Report( tmp, RPT_SEVERITY_INFO ); if( srcFileName.Exists() && !wxCopyFile( srcFileName.GetFullPath(), destFileName.GetFullPath() ) ) { - tmp.Printf( _( "Failed to back up file \"%s\".\n" ), srcFileName.GetFullPath() ); + tmp.Printf( _( "Failed to back up file '%s'.\n" ), srcFileName.GetFullPath() ); errorMsg += tmp; } @@ -460,7 +466,7 @@ bool DIALOG_SYMBOL_REMAP::backupProject( REPORTER& aReporter ) srcFileName.SetName( Prj().GetProjectName() + "-rescue" ); destFileName.SetName( srcFileName.GetName() + timeStamp ); - tmp.Printf( _( "Backing up file \"%s\" to file \"%s\"." ), + tmp.Printf( _( "Backing up file '%s' to '%s'." ), srcFileName.GetFullPath(), destFileName.GetFullPath() ); aReporter.Report( tmp, RPT_SEVERITY_INFO ); @@ -468,7 +474,7 @@ bool DIALOG_SYMBOL_REMAP::backupProject( REPORTER& aReporter ) if( srcFileName.Exists() && !wxCopyFile( srcFileName.GetFullPath(), destFileName.GetFullPath() ) ) { - tmp.Printf( _( "Failed to back up file \"%s\".\n" ), srcFileName.GetFullPath() ); + tmp.Printf( _( "Failed to back up file '%s'.\n" ), srcFileName.GetFullPath() ); errorMsg += tmp; } @@ -476,7 +482,7 @@ bool DIALOG_SYMBOL_REMAP::backupProject( REPORTER& aReporter ) srcFileName.SetExt( LegacySymbolDocumentFileExtension ); destFileName.SetExt( srcFileName.GetExt() ); - tmp.Printf( _( "Backing up file \"%s\" to file \"%s\"." ), + tmp.Printf( _( "Backing up file '%s' to '%s'." ), srcFileName.GetFullPath(), destFileName.GetFullPath() ); aReporter.Report( tmp, RPT_SEVERITY_INFO ); @@ -484,7 +490,7 @@ bool DIALOG_SYMBOL_REMAP::backupProject( REPORTER& aReporter ) if( srcFileName.Exists() && !wxCopyFile( srcFileName.GetFullPath(), destFileName.GetFullPath() ) ) { - tmp.Printf( _( "Failed to back up file \"%s\".\n" ), srcFileName.GetFullPath() ); + tmp.Printf( _( "Failed to back up file '%s'.\n" ), srcFileName.GetFullPath() ); errorMsg += tmp; } diff --git a/eeschema/eeschema.cpp b/eeschema/eeschema.cpp index 71835d1826..9cb235011a 100644 --- a/eeschema/eeschema.cpp +++ b/eeschema/eeschema.cpp @@ -401,7 +401,7 @@ void IFACE::SaveFileAs( const wxString& aProjectBasePath, const wxString& aProje if( !aErrors.empty() ) aErrors += "\n"; - msg.Printf( _( "Cannot copy file \"%s\"." ), destFile.GetFullPath() ); + msg.Printf( _( "Cannot copy file '%s'." ), destFile.GetFullPath() ); aErrors += msg; } } @@ -433,7 +433,7 @@ void IFACE::SaveFileAs( const wxString& aProjectBasePath, const wxString& aProje if( !aErrors.empty() ) aErrors += "\n"; - msg.Printf( _( "Cannot copy file \"%s\"." ), destFile.GetFullPath() ); + msg.Printf( _( "Cannot copy file '%s'." ), destFile.GetFullPath() ); aErrors += msg; } } diff --git a/eeschema/eeschema_config.cpp b/eeschema/eeschema_config.cpp index 648818adf8..23d5558e7e 100644 --- a/eeschema/eeschema_config.cpp +++ b/eeschema/eeschema_config.cpp @@ -268,7 +268,7 @@ SYMBOL_LIB_TABLE* PROJECT::SchSymbolLibTable() catch( const IO_ERROR& ioe ) { wxString msg; - msg.Printf( _( "An error occurred loading the symbol library table \"%s\"." ), + msg.Printf( _( "An error occurred loading the symbol library table '%s'." ), fn.GetFullPath() ); DisplayErrorMessage( NULL, msg, ioe.What() ); } diff --git a/eeschema/files-io.cpp b/eeschema/files-io.cpp index edd3489bc4..95b4842f5b 100644 --- a/eeschema/files-io.cpp +++ b/eeschema/files-io.cpp @@ -137,11 +137,13 @@ bool SCH_EDIT_FRAME::SaveEEFile( SCH_SHEET* aSheet, bool aSaveUnderNewName ) } catch( const IO_ERROR& ioe ) { - msg.Printf( _( "Error saving schematic file \"%s\".\n%s" ), - schematicFileName.GetFullPath(), ioe.What() ); + msg.Printf( _( "Error saving schematic file '%s'.\n%s" ), + schematicFileName.GetFullPath(), + ioe.What() ); DisplayError( this, msg ); - msg.Printf( _( "Failed to create temporary file \"%s\"" ), tempFile.GetFullPath() ); + msg.Printf( _( "Failed to create temporary file '%s'." ), + tempFile.GetFullPath() ); SetMsgPanel( wxEmptyString, msg ); // In case we started a file but didn't fully write it, clean up @@ -157,12 +159,14 @@ bool SCH_EDIT_FRAME::SaveEEFile( SCH_SHEET* aSheet, bool aSaveUnderNewName ) if( !success ) { - msg.Printf( _( "Error saving schematic file \"%s\".\n" - "Failed to rename temporary file %s" ), - schematicFileName.GetFullPath(), tempFile.GetFullPath() ); + msg.Printf( _( "Error saving schematic file '%s'.\n" + "Failed to rename temporary file '%s'." ), + schematicFileName.GetFullPath(), + tempFile.GetFullPath() ); DisplayError( this, msg ); - msg.Printf( _( "Failed to rename temporary file \"%s\"" ), tempFile.GetFullPath() ); + msg.Printf( _( "Failed to rename temporary file '%s'." ), + tempFile.GetFullPath() ); SetMsgPanel( wxEmptyString, msg ); } } @@ -195,7 +199,7 @@ bool SCH_EDIT_FRAME::SaveEEFile( SCH_SHEET* aSheet, bool aSaveUnderNewName ) screen->SetContentModified( false ); UpdateTitle(); - msg.Printf( _( "File \"%s\" saved." ), screen->GetFileName() ); + msg.Printf( _( "File '%s' saved." ), screen->GetFileName() ); SetStatusText( msg, 0 ); } else @@ -263,7 +267,7 @@ bool SCH_EDIT_FRAME::OpenProjectFiles( const std::vector& aFileSet, in if( !LockFile( fullFileName ) ) { - msg.Printf( _( "Schematic file \"%s\" is already open." ), fullFileName ); + msg.Printf( _( "Schematic file '%s' is already open." ), fullFileName ); DisplayError( this, msg ); return false; } @@ -284,7 +288,7 @@ bool SCH_EDIT_FRAME::OpenProjectFiles( const std::vector& aFileSet, in if( is_new && !( aCtl & KICTL_CREATE ) ) { // notify user that fullFileName does not exist, ask if user wants to create it. - msg.Printf( _( "Schematic \"%s\" does not exist. Do you wish to create it?" ), + msg.Printf( _( "Schematic '%s' does not exist. Do you wish to create it?" ), fullFileName ); if( !IsOK( this, msg ) ) @@ -419,7 +423,7 @@ bool SCH_EDIT_FRAME::OpenProjectFiles( const std::vector& aFileSet, in } catch( const std::bad_alloc& ) { - msg.Printf( _( "Memory exhausted loading schematic file \"%s\"" ), fullFileName ); + msg.Printf( _( "Memory exhausted loading schematic file '%s'." ), fullFileName ); DisplayErrorMessage( this, msg ); failedLoad = true; diff --git a/eeschema/getpart.cpp b/eeschema/getpart.cpp index 3487606460..19d0c70008 100644 --- a/eeschema/getpart.cpp +++ b/eeschema/getpart.cpp @@ -245,8 +245,9 @@ void SCH_EDIT_FRAME::ConvertPart( SCH_SYMBOL* aSymbol ) { LIB_ID id = aSymbol->GetLibSymbolRef()->GetLibId(); - msg.Printf( _( "No alternate body style found for symbol \"%s\" in library \"%s\"." ), - id.GetLibItemName().wx_str(), id.GetLibNickname().wx_str() ); + msg.Printf( _( "No alternate body style found for symbol '%s' in library '%s'." ), + id.GetLibItemName().wx_str(), + id.GetLibNickname().wx_str() ); DisplayError( this, msg ); return; } diff --git a/eeschema/libarch.cpp b/eeschema/libarch.cpp index ed1e46580f..5c9073b910 100644 --- a/eeschema/libarch.cpp +++ b/eeschema/libarch.cpp @@ -98,8 +98,9 @@ bool SCH_EDIT_FRAME::CreateArchiveLibrary( const wxString& aFileName ) catch( const IO_ERROR& ) { // Queue up error messages for later. - tmp.Printf( _( "Failed to add symbol \"%s\" to library file \"%s\"." ), - symbol->GetLibId().GetUniStringLibItemName(), aFileName ); + tmp.Printf( _( "Failed to add symbol %s to library file '%s'." ), + symbol->GetLibId().GetUniStringLibItemName(), + aFileName ); // Don't bail out here. Attempt to add as many of the symbols to the library // as possible. @@ -149,13 +150,13 @@ bool SCH_EDIT_FRAME::CreateArchiveLibrary( const wxString& aFileName ) } catch( const IO_ERROR& ioe ) { - errorMsg.Printf( _( "Failed to save symbol library file \"%s\"" ), aFileName ); + errorMsg.Printf( _( "Failed to save symbol library file '%s'." ), aFileName ); DisplayErrorMessage( this, errorMsg, ioe.What() ); return false; } catch( std::exception& error ) { - errorMsg.Printf( _( "Failed to save symbol library file \"%s\"" ), aFileName ); + errorMsg.Printf( _( "Failed to save symbol library file '%s'." ), aFileName ); DisplayErrorMessage( this, errorMsg, error.what() ); return false; } diff --git a/eeschema/netlist_exporters/netlist_exporter_cadstar.cpp b/eeschema/netlist_exporters/netlist_exporter_cadstar.cpp index 6023b07d2f..425e18af86 100644 --- a/eeschema/netlist_exporters/netlist_exporter_cadstar.cpp +++ b/eeschema/netlist_exporters/netlist_exporter_cadstar.cpp @@ -46,7 +46,7 @@ bool NETLIST_EXPORTER_CADSTAR::WriteNetlist( const wxString& aOutFileName, if( ( f = wxFopen( aOutFileName, wxT( "wt" ) ) ) == NULL ) { wxString msg; - msg.Printf( _( "Failed to create file \"%s\"" ), aOutFileName ); + msg.Printf( _( "Failed to create file '%s'." ), aOutFileName ); DisplayError( NULL, msg ); return false; } diff --git a/eeschema/netlist_exporters/netlist_exporter_orcadpcb2.cpp b/eeschema/netlist_exporters/netlist_exporter_orcadpcb2.cpp index c82e562b9e..3fb3eaf2d1 100644 --- a/eeschema/netlist_exporters/netlist_exporter_orcadpcb2.cpp +++ b/eeschema/netlist_exporters/netlist_exporter_orcadpcb2.cpp @@ -50,7 +50,7 @@ bool NETLIST_EXPORTER_ORCADPCB2::WriteNetlist( const wxString& aOutFileName, if( ( f = wxFopen( aOutFileName, wxT( "wt" ) ) ) == NULL ) { wxString msg; - msg.Printf( _( "Failed to create file \"%s\"" ), aOutFileName ); + msg.Printf( _( "Failed to create file '%s'." ), aOutFileName ); DisplayError( NULL, msg ); return false; } diff --git a/eeschema/project_rescue.cpp b/eeschema/project_rescue.cpp index 8b148775ec..36293a8072 100644 --- a/eeschema/project_rescue.cpp +++ b/eeschema/project_rescue.cpp @@ -681,7 +681,7 @@ bool LEGACY_RESCUER::WriteRescueLibrary( wxWindow *aParent ) { wxString msg; - msg.Printf( _( "Failed to create symbol library file \"%s\"" ), + msg.Printf( _( "Failed to create symbol library file '%s'." ), m_rescue_lib->GetFullFileName() ); DisplayError( aParent, msg ); return false; diff --git a/eeschema/sch_edit_frame.cpp b/eeschema/sch_edit_frame.cpp index 0cdeb6b37f..d7722398f1 100644 --- a/eeschema/sch_edit_frame.cpp +++ b/eeschema/sch_edit_frame.cpp @@ -958,7 +958,7 @@ void SCH_EDIT_FRAME::NewProject() if( create_me.FileExists() ) { wxString msg; - msg.Printf( _( "Schematic file \"%s\" already exists." ), create_me.GetFullName() ); + msg.Printf( _( "Schematic file '%s' already exists." ), create_me.GetFullName() ); DisplayError( this, msg ); return ; } diff --git a/eeschema/sheet.cpp b/eeschema/sheet.cpp index a357e71f79..318f21695e 100644 --- a/eeschema/sheet.cpp +++ b/eeschema/sheet.cpp @@ -81,10 +81,11 @@ bool SCH_EDIT_FRAME::checkForNoFullyDefinedLibIds( SCH_SHEET* aSheet ) if( newScreens.HasNoFullyDefinedLibIds() ) { - msg.Printf( _( "The schematic \"%s\" has not had it's symbol library links remapped " + msg.Printf( _( "The schematic '%s' has not had it's symbol library links remapped " "to the symbol library table. The project this schematic belongs to " "must first be remapped before it can be imported into the current " - "project." ), aSheet->GetScreen()->GetFileName() ); + "project." ), + aSheet->GetScreen()->GetFileName() ); DisplayInfoMessage( this, msg ); return true; } @@ -158,7 +159,7 @@ bool SCH_EDIT_FRAME::LoadSheetFromFile( SCH_SHEET* aSheet, SCH_SHEET_PATH* aHier } catch( const IO_ERROR& ioe ) { - msg.Printf( _( "Error occurred loading schematic file \"%s\"." ), fullFilename ); + msg.Printf( _( "Error occurred loading schematic file '%s'." ), fullFilename ); DisplayErrorMessage( this, msg, ioe.What() ); msg.Printf( _( "Failed to load '%s'." ), fullFilename ); @@ -260,7 +261,7 @@ bool SCH_EDIT_FRAME::LoadSheetFromFile( SCH_SHEET* aSheet, SCH_SHEET_PATH* aHier { if( !symLibTableFn.Exists() || !symLibTableFn.IsFileReadable() ) { - msg.Printf( _( "The project library table \"%s\" does not exist or cannot " + msg.Printf( _( "The project library table '%s' does not exist or cannot " "be read. This may result in broken symbol links for the " "schematic. Do you wish to continue?" ), fileName.GetFullPath() ); @@ -280,7 +281,7 @@ bool SCH_EDIT_FRAME::LoadSheetFromFile( SCH_SHEET* aSheet, SCH_SHEET_PATH* aHier } catch( const IO_ERROR& ioe ) { - msg.Printf( _( "An error occurred loading the symbol library table \"%s\"." ), + msg.Printf( _( "An error occurred loading the symbol library table '%s'." ), symLibTableFn.GetFullPath() ); DisplayErrorMessage( nullptr, msg, ioe.What() ); return false; @@ -557,7 +558,7 @@ bool SCH_EDIT_FRAME::AllowCaseSensitiveFileNameClashes( const wxString& aSchemat if( eeconfig()->m_Appearance.show_sheet_filename_case_sensitivity_dialog && screens.CanCauseCaseSensitivityIssue( aSchematicFileName ) ) { - msg.Printf( _( "The file name \"%s\" can cause issues with an existing file name\n" + msg.Printf( _( "The file name '%s' can cause issues with an existing file name\n" "already defined in the schematic on systems that support case\n" "insensitive file names. This will cause issues if you copy this\n" "project to an operating system that supports case insensitive file\n" diff --git a/eeschema/symbol_editor/symbol_editor.cpp b/eeschema/symbol_editor/symbol_editor.cpp index 3c2ef17931..8f0822fcf0 100644 --- a/eeschema/symbol_editor/symbol_editor.cpp +++ b/eeschema/symbol_editor/symbol_editor.cpp @@ -283,8 +283,9 @@ bool SYMBOL_EDIT_FRAME::LoadSymbolFromCurrentLib( const wxString& aAliasName, in { wxString msg; - msg.Printf( _( "Error occurred loading symbol \"%s\" from library \"%s\"." ), - aAliasName, GetCurLib() ); + msg.Printf( _( "Error occurred loading symbol %s from library '%s'." ), + aAliasName, + GetCurLib() ); DisplayErrorMessage( this, msg, ioe.What() ); return false; } @@ -738,7 +739,7 @@ void SYMBOL_EDIT_FRAME::DeleteSymbolFromLibrary() { wxString msg; - msg.Printf( _( "The symbol \"%s\" is used to derive other symbols.\n" + msg.Printf( _( "The symbol %s is used to derive other symbols.\n" "Deleting this symbol will delete all of the symbols derived from it.\n\n" "Do you wish to delete this symbol and all of it's derivatives?" ), libId.GetLibItemName().wx_str() ); @@ -955,7 +956,9 @@ void SYMBOL_EDIT_FRAME::LoadSymbol( const wxString& aAlias, const wxString& aLib { wxString msg; - msg.Printf( _( "Symbol name \"%s\" not found in library \"%s\"" ), aAlias, aLibrary ); + msg.Printf( _( "Symbol %s not found in library '%s'." ), + aAlias, + aLibrary ); DisplayError( this, msg ); return; } @@ -1040,9 +1043,9 @@ bool SYMBOL_EDIT_FRAME::saveLibrary( const wxString& aLibrary, bool aNewFile ) if( !m_libMgr->SaveLibrary( aLibrary, fn.GetFullPath(), fileType ) ) { - msg.Printf( _( "Failed to save changes to symbol library file \"%s\"" ), + msg.Printf( _( "Failed to save changes to symbol library file '%s'." ), fn.GetFullPath() ); - DisplayErrorMessage( this, _( "Error saving library" ), msg ); + DisplayErrorMessage( this, _( "Error Saving Library" ), msg ); return false; } @@ -1085,7 +1088,7 @@ bool SYMBOL_EDIT_FRAME::saveLibrary( const wxString& aLibrary, bool aNewFile ) } ClearMsgPanel(); - msg.Printf( _( "Symbol library file \"%s\" saved" ), fn.GetFullPath() ); + msg.Printf( _( "Symbol library file '%s' saved." ), fn.GetFullPath() ); RebuildSymbolUnitsList(); return true; @@ -1112,7 +1115,7 @@ bool SYMBOL_EDIT_FRAME::saveAllLibraries( bool aRequireConfirmation ) { if( aRequireConfirmation && !applyToAll ) { - msg.Printf( _( "Save changes to \"%s\" before closing?" ), libNickname ); + msg.Printf( _( "Save changes to '%s' before closing?" ), libNickname ); switch( UnsavedChangesDialog( this, msg, dirtyCount > 1 ? &applyToAll : nullptr ) ) { diff --git a/eeschema/symbol_editor/symbol_editor_import_export.cpp b/eeschema/symbol_editor/symbol_editor_import_export.cpp index 179de53a92..bb937f5c9d 100644 --- a/eeschema/symbol_editor/symbol_editor_import_export.cpp +++ b/eeschema/symbol_editor/symbol_editor_import_export.cpp @@ -75,14 +75,14 @@ void SYMBOL_EDIT_FRAME::ImportSymbol() } catch( const IO_ERROR& ioe ) { - msg.Printf( _( "Cannot import symbol library \"%s\"." ), fn.GetFullPath() ); + msg.Printf( _( "Cannot import symbol library '%s'." ), fn.GetFullPath() ); DisplayErrorMessage( this, msg, ioe.What() ); return; } if( symbols.empty() ) { - msg.Printf( _( "Symbol library file \"%s\" is empty." ), fn.GetFullPath() ); + msg.Printf( _( "Symbol library file '%s' is empty." ), fn.GetFullPath() ); DisplayError( this, msg ); return; } @@ -92,7 +92,7 @@ void SYMBOL_EDIT_FRAME::ImportSymbol() if( m_libMgr->SymbolExists( symbols[0], libName ) ) { - msg.Printf( _( "Symbol \"%s\" already exists in library \"%s\"." ), symbolName, libName ); + msg.Printf( _( "Symbol %s already exists in library '%s'." ), symbolName, libName ); DisplayError( this, msg ); return; } @@ -140,7 +140,7 @@ void SYMBOL_EDIT_FRAME::ExportSymbol() } catch( const IO_ERROR& ioe ) { - msg.Printf( _( "Error occurred attempting to load symbol library file \"%s\"" ), + msg.Printf( _( "Error occurred attempting to load symbol library file '%s'." ), fn.GetFullPath() ); DisplayErrorMessage( this, msg, ioe.What() ); return; @@ -148,7 +148,7 @@ void SYMBOL_EDIT_FRAME::ExportSymbol() if( old_symbol ) { - msg.Printf( _( "Symbol \"%s\" already exists in \"%s\"." ), + msg.Printf( _( "Symbol %s already exists in library '%s'." ), symbol->GetName(), fn.GetFullName() ); @@ -163,7 +163,7 @@ void SYMBOL_EDIT_FRAME::ExportSymbol() if( fn.Exists() && !fn.IsDirWritable() ) { - msg.Printf( _( "Write permissions are required to save library \"%s\"." ), + msg.Printf( _( "Write permissions are required to save library '%s'." ), fn.GetFullPath() ); DisplayError( this, msg ); return; @@ -181,16 +181,16 @@ void SYMBOL_EDIT_FRAME::ExportSymbol() } catch( const IO_ERROR& ioe ) { - msg.Printf( _( "Failed to create symbol library file \"%s\"" ), fn.GetFullPath() ); + msg.Printf( _( "Failed to create symbol library file '%s'." ), fn.GetFullPath() ); DisplayErrorMessage( this, msg, ioe.What() ); - msg.Printf( _( "Error creating symbol library \"%s\"" ), fn.GetFullName() ); + msg.Printf( _( "Error creating symbol library '%s'." ), fn.GetFullName() ); SetStatusText( msg ); return; } m_mruPath = fn.GetPath(); - msg.Printf( _( "Symbol \"%s\" saved in library \"%s\"" ), symbol->GetName(), fn.GetFullPath() ); + msg.Printf( _( "Symbol %s saved to library '%s'." ), symbol->GetName(), fn.GetFullPath() ); SetStatusText( msg ); // See if the user wants it added to a library table (global or project) diff --git a/eeschema/symbol_library.cpp b/eeschema/symbol_library.cpp index fa9f76b0d9..02a408d672 100644 --- a/eeschema/symbol_library.cpp +++ b/eeschema/symbol_library.cpp @@ -557,8 +557,9 @@ void SYMBOL_LIBS::LoadAllLibraries( PROJECT* aProject, bool aShowProgress ) catch( const IO_ERROR& ioe ) { wxString msg; - msg.Printf( _( "Symbol library \"%s\" failed to load. Error:\n %s" ), - filename, ioe.What() ); + msg.Printf( _( "Symbol library '%s' failed to load. Error:\n %s" ), + filename, + ioe.What() ); wxLogError( msg ); } diff --git a/gerbview/export_to_pcbnew.cpp b/gerbview/export_to_pcbnew.cpp index 06c3f1aab6..599c4b03c6 100644 --- a/gerbview/export_to_pcbnew.cpp +++ b/gerbview/export_to_pcbnew.cpp @@ -65,7 +65,7 @@ bool GBR_TO_PCB_EXPORTER::ExportPcb( const LAYER_NUM* aLayerLookUpTable, int aCo if( m_fp == NULL ) { wxString msg; - msg.Printf( _( "Cannot create file \"%s\"" ), m_pcb_file_name ); + msg.Printf( _( "Cannot create file '%s'." ), m_pcb_file_name ); DisplayError( m_gerbview_frame, msg ); return false; } diff --git a/gerbview/files.cpp b/gerbview/files.cpp index ef86fe3673..94c71ce888 100644 --- a/gerbview/files.cpp +++ b/gerbview/files.cpp @@ -463,7 +463,7 @@ bool GERBVIEW_FRAME::unarchiveFiles( const wxString& aFullFileName, REPORTER* aR { if( aReporter ) { - msg.Printf( _( "Zip file \"%s\" cannot be opened" ), aFullFileName ); + msg.Printf( _( "Zip file '%s' cannot be opened." ), aFullFileName ); aReporter->Report( msg, RPT_SEVERITY_ERROR ); } @@ -505,7 +505,7 @@ bool GERBVIEW_FRAME::unarchiveFiles( const wxString& aFullFileName, REPORTER* aR { if( aReporter ) { - msg.Printf( _( "Info: skip file \"%s\" (unknown type)\n" ), entry->GetName() ); + msg.Printf( _( "Skipped file '%s' (unknown type).\n" ), entry->GetName() ); aReporter->Report( msg, RPT_SEVERITY_WARNING ); } @@ -517,7 +517,7 @@ bool GERBVIEW_FRAME::unarchiveFiles( const wxString& aFullFileName, REPORTER* aR //We cannot read a gerber job file as a gerber plot file: skip it if( aReporter ) { - msg.Printf( _( "Info: skip file \"%s\" (gerber job file)\n" ), entry->GetName() ); + msg.Printf( _( "Skipped file '%s' (gerber job file).\n" ), entry->GetName() ); aReporter->Report( msg, RPT_SEVERITY_WARNING ); } @@ -558,7 +558,7 @@ bool GERBVIEW_FRAME::unarchiveFiles( const wxString& aFullFileName, REPORTER* aR if( aReporter ) { - msg.Printf( _( "Unable to create temporary file \"%s\"\n"), + msg.Printf( _( "Unable to create temporary file '%s'.\n"), unzipped_tempfile ); aReporter->Report( msg, RPT_SEVERITY_ERROR ); } diff --git a/gerbview/gerbview.cpp b/gerbview/gerbview.cpp index 54c4795dfd..7ef619ef87 100644 --- a/gerbview/gerbview.cpp +++ b/gerbview/gerbview.cpp @@ -228,7 +228,7 @@ void IFACE::SaveFileAs( const wxString& aProjectBasePath, const wxString& aProje if( !aErrors.empty() ) aErrors += "\n"; - msg.Printf( _( "Cannot copy file \"%s\"." ), destFile.GetFullPath() ); + msg.Printf( _( "Cannot copy file '%s'." ), destFile.GetFullPath() ); aErrors += msg; } } diff --git a/gerbview/tools/gerbview_inspection_tool.cpp b/gerbview/tools/gerbview_inspection_tool.cpp index 71754609ec..0fd53da4f8 100644 --- a/gerbview/tools/gerbview_inspection_tool.cpp +++ b/gerbview/tools/gerbview_inspection_tool.cpp @@ -172,7 +172,7 @@ int GERBVIEW_INSPECTION_TOOL::ShowSource( const TOOL_EVENT& aEvent ) if( !fn.FileExists() ) { wxString msg; - msg.Printf( _( "Source file \"%s\" is not available" ), fn.GetFullPath() ); + msg.Printf( _( "Source file '%s' not found." ), fn.GetFullPath() ); wxMessageBox( msg ); } else @@ -182,13 +182,13 @@ int GERBVIEW_INSPECTION_TOOL::ShowSource( const TOOL_EVENT& aEvent ) } else { - wxMessageBox( _( "No editor defined. Please select one" ) ); + wxMessageBox( _( "No editor defined. Please select one." ) ); } } else { wxString msg; - msg.Printf( _( "No file loaded on the active layer %d" ), layer + 1 ); + msg.Printf( _( "No file loaded on the active layer %d." ), layer + 1 ); wxMessageBox( msg ); } diff --git a/kicad/files-io.cpp b/kicad/files-io.cpp index 5eee868a0f..29cef321c1 100644 --- a/kicad/files-io.cpp +++ b/kicad/files-io.cpp @@ -79,7 +79,7 @@ void KICAD_MANAGER_FRAME::OnUnarchiveFiles( wxCommandEvent& event ) return; wxString unzipDir = dirDlg.GetPath() + wxT( "/" ); - msg.Printf( _( "Unzipping project in \"%s\"\n" ), unzipDir ); + msg.Printf( _( "Unzipping project in '%s'.\n" ), unzipDir ); PrintMsg( msg ); if( unzipDir == Prj().GetProjectPath() ) diff --git a/kicad/tools/kicad_manager_control.cpp b/kicad/tools/kicad_manager_control.cpp index f5baa4f5f0..bf8eb9f2c9 100644 --- a/kicad/tools/kicad_manager_control.cpp +++ b/kicad/tools/kicad_manager_control.cpp @@ -473,7 +473,7 @@ public: if( !m_errors.empty() ) m_errors += "\n"; - msg.Printf( _( "Cannot copy folder \"%s\"." ), destDir.GetFullPath() ); + msg.Printf( _( "Cannot copy folder '%s'." ), destDir.GetFullPath() ); m_errors += msg; } @@ -529,14 +529,14 @@ int KICAD_MANAGER_CONTROL::SaveProjectAs( const TOOL_EVENT& aEvent ) if( wxDirExists( newProjectDir.GetFullPath() ) ) { - msg.Printf( _( "\"%s\" already exists." ), newProjectDir.GetFullPath() ); + msg.Printf( _( "'%s' already exists." ), newProjectDir.GetFullPath() ); DisplayErrorMessage( m_frame, msg ); return -1; } if( !wxMkdir( newProjectDir.GetFullPath() ) ) { - msg.Printf( _( "Directory \"%s\" could not be created.\n\n" + msg.Printf( _( "Directory '%s' could not be created.\n\n" "Please make sure you have write permissions and try again." ), newProjectDir.GetPath() ); DisplayErrorMessage( m_frame, msg ); @@ -545,7 +545,7 @@ int KICAD_MANAGER_CONTROL::SaveProjectAs( const TOOL_EVENT& aEvent ) if( !newProjectDir.IsDirWritable() ) { - msg.Printf( _( "Cannot write to folder \"%s\"." ), newProjectDir.GetFullPath() ); + msg.Printf( _( "Cannot write to folder '%s'." ), newProjectDir.GetFullPath() ); wxMessageDialog msgDlg( m_frame, msg, _( "Error!" ), wxICON_ERROR | wxOK | wxCENTER ); msgDlg.SetExtendedMessage( _( "Please check your access permissions to this folder " "and try again." ) ); diff --git a/pcbnew/build_BOM_from_board.cpp b/pcbnew/build_BOM_from_board.cpp index 964d30f9b7..87cc75a5cb 100644 --- a/pcbnew/build_BOM_from_board.cpp +++ b/pcbnew/build_BOM_from_board.cpp @@ -99,7 +99,7 @@ void PCB_EDIT_FRAME::RecreateBOMFileFromBoard( wxCommandEvent& aEvent ) if( fp_bom == NULL ) { - msg.Printf( _( "Unable to create file \"%s\"" ), fn.GetFullPath() ); + msg.Printf( _( "Unable to create file '%s'." ), fn.GetFullPath() ); DisplayError( this, msg ); return; } diff --git a/pcbnew/dialogs/dialog_board_statistics.cpp b/pcbnew/dialogs/dialog_board_statistics.cpp index 883e9faa50..ce9a10d3bc 100644 --- a/pcbnew/dialogs/dialog_board_statistics.cpp +++ b/pcbnew/dialogs/dialog_board_statistics.cpp @@ -642,7 +642,7 @@ void DIALOG_BOARD_STATISTICS::saveReportClicked( wxCommandEvent& aEvent ) if( outFile == NULL ) { - msg.Printf( _( "Unable to create file \"%s\"" ), saveFileDialog.GetPath() ); + msg.Printf( _( "Unable to create file '%s'." ), saveFileDialog.GetPath() ); DisplayErrorMessage( this, msg ); return; } @@ -725,7 +725,7 @@ void DIALOG_BOARD_STATISTICS::saveReportClicked( wxCommandEvent& aEvent ) if( fprintf( outFile, "%s", TO_UTF8( msg ) ) < 0 ) { - msg.Printf( _( "Error writing to file \"%s\"" ), saveFileDialog.GetPath() ); + msg.Printf( _( "Error writing file '%s'." ), saveFileDialog.GetPath() ); DisplayErrorMessage( this, msg ); } diff --git a/pcbnew/dialogs/dialog_footprint_properties_fp_editor.cpp b/pcbnew/dialogs/dialog_footprint_properties_fp_editor.cpp index d10ef8ef7a..90a3c426e6 100644 --- a/pcbnew/dialogs/dialog_footprint_properties_fp_editor.cpp +++ b/pcbnew/dialogs/dialog_footprint_properties_fp_editor.cpp @@ -534,7 +534,7 @@ bool DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::checkFootprintName( const wxString& } else if( !FOOTPRINT::IsLibNameValid( aFootprintName ) ) { - m_delayedErrorMessage.Printf( _( "Footprint name may not contain \"%s\"." ), + m_delayedErrorMessage.Printf( _( "Footprint name may not contain '%s'." ), FOOTPRINT::StringLibNameInvalidChars( true ) ); return false; } diff --git a/pcbnew/dialogs/dialog_gendrill.cpp b/pcbnew/dialogs/dialog_gendrill.cpp index 9977daee82..e7c9c869b1 100644 --- a/pcbnew/dialogs/dialog_gendrill.cpp +++ b/pcbnew/dialogs/dialog_gendrill.cpp @@ -302,7 +302,7 @@ void DIALOG_GENDRILL::OnOutputDirectoryBrowseClicked( wxCommandEvent& event ) wxFileName fn( Prj().AbsolutePath( m_board->GetFileName() ) ); wxString defaultPath = fn.GetPathWithSep(); wxString msg; - msg.Printf( _( "Do you want to use a path relative to\n\"%s\"" ), defaultPath ); + msg.Printf( _( "Do you want to use a path relative to\n'%s'?" ), defaultPath ); wxMessageDialog dialog( this, msg, _( "Plot Output Directory" ), wxYES_NO | wxICON_QUESTION | wxYES_DEFAULT ); @@ -384,7 +384,7 @@ void DIALOG_GENDRILL::GenDrillAndMapFiles( bool aGenDrill, bool aGenMap ) if( !EnsureFileDirectoryExists( &outputDir, boardFilename, &reporter ) ) { wxString msg; - msg.Printf( _( "Could not write drill and/or map files to folder \"%s\"." ), + msg.Printf( _( "Could not write drill and/or map files to folder '%s'." ), outputDir.GetPath() ); DisplayError( this, msg ); return; diff --git a/pcbnew/dialogs/dialog_netlist.cpp b/pcbnew/dialogs/dialog_netlist.cpp index dc8a77416e..469f2ca5b9 100644 --- a/pcbnew/dialogs/dialog_netlist.cpp +++ b/pcbnew/dialogs/dialog_netlist.cpp @@ -223,7 +223,7 @@ void DIALOG_NETLIST::loadNetlist( bool aDryRun ) wxBusyCursor busy; wxString msg; - msg.Printf( _( "Reading netlist file \"%s\".\n" ), netlistFileName ); + msg.Printf( _( "Reading netlist file '%s'.\n" ), netlistFileName ); reporter.ReportHead( msg, RPT_SEVERITY_INFO ); if( m_matchByTimestamp->GetSelection() == 1 ) diff --git a/pcbnew/dialogs/dialog_plot.cpp b/pcbnew/dialogs/dialog_plot.cpp index 0fa96655e6..6d5588485f 100644 --- a/pcbnew/dialogs/dialog_plot.cpp +++ b/pcbnew/dialogs/dialog_plot.cpp @@ -395,7 +395,7 @@ void DIALOG_PLOT::OnOutputDirectoryBrowseClicked( wxCommandEvent& event ) // Test if making the path relative is possible before asking the user if they want to do it if( relPathTest.MakeRelativeTo( defaultPath ) ) { - msg.Printf( _( "Do you want to use a path relative to\n\"%s\"" ), defaultPath ); + msg.Printf( _( "Do you want to use a path relative to\n'%s'?" ), defaultPath ); wxMessageDialog dialog( this, msg, _( "Plot Output Directory" ), wxYES_NO | wxICON_QUESTION | wxYES_DEFAULT ); @@ -807,7 +807,7 @@ void DIALOG_PLOT::Plot( wxCommandEvent& event ) if( !EnsureFileDirectoryExists( &outputDir, boardFilename, &reporter ) ) { wxString msg; - msg.Printf( _( "Could not write plot files to folder \"%s\"." ), outputDir.GetPath() ); + msg.Printf( _( "Could not write plot files to folder '%s'." ), outputDir.GetPath() ); DisplayError( this, msg ); return; } @@ -899,12 +899,12 @@ void DIALOG_PLOT::Plot( wxCommandEvent& event ) delete plotter->RenderSettings(); delete plotter; - msg.Printf( _( "Plot file \"%s\" created." ), fn.GetFullPath() ); + msg.Printf( _( "Plotted to '%s'." ), fn.GetFullPath() ); reporter.Report( msg, RPT_SEVERITY_ACTION ); } else { - msg.Printf( _( "Unable to create file \"%s\"." ), fn.GetFullPath() ); + msg.Printf( _( "Unable to create file '%s'." ), fn.GetFullPath() ); reporter.Report( msg, RPT_SEVERITY_ERROR ); } diff --git a/pcbnew/exporters/gen_footprints_placefile.cpp b/pcbnew/exporters/gen_footprints_placefile.cpp index 2700f1a15c..7dc945996c 100644 --- a/pcbnew/exporters/gen_footprints_placefile.cpp +++ b/pcbnew/exporters/gen_footprints_placefile.cpp @@ -250,7 +250,7 @@ bool DIALOG_GEN_FOOTPRINT_POSITION::CreateGerberFiles() if( !EnsureFileDirectoryExists( &outputDir, boardFilename, m_reporter ) ) { - msg.Printf( _( "Could not write plot files to folder \"%s\"." ), + msg.Printf( _( "Could not write plot files to folder '%s'." ), outputDir.GetPath() ); DisplayError( this, msg ); return false; @@ -268,13 +268,13 @@ bool DIALOG_GEN_FOOTPRINT_POSITION::CreateGerberFiles() if( fpcount < 0 ) { - msg.Printf( _( "Unable to create \"%s\"." ), fn.GetFullPath() ); + msg.Printf( _( "Unable to create '%s'." ), fn.GetFullPath() ); wxMessageBox( msg ); m_reporter->Report( msg, RPT_SEVERITY_ERROR ); return false; } - msg.Printf( _( "Front (top side) placement file: \"%s\"." ), filename ); + msg.Printf( _( "Front (top side) placement file: '%s'." ), filename ); m_reporter->Report( msg, RPT_SEVERITY_INFO ); msg.Printf( _( "Component count: %d." ), fpcount ); @@ -289,14 +289,14 @@ bool DIALOG_GEN_FOOTPRINT_POSITION::CreateGerberFiles() if( fpcount < 0 ) { - msg.Printf( _( "Unable to create file \"%s\"." ), filename ); + msg.Printf( _( "Unable to create file '%s'." ), filename ); m_reporter->Report( msg, RPT_SEVERITY_ERROR ); wxMessageBox( msg ); return false; } // Display results - msg.Printf( _( "Back (bottom side) placement file: \"%s\"." ), filename ); + msg.Printf( _( "Back (bottom side) placement file: '%s'." ), filename ); m_reporter->Report( msg, RPT_SEVERITY_INFO ); msg.Printf( _( "Component count: %d." ), fpcount ); @@ -304,7 +304,7 @@ bool DIALOG_GEN_FOOTPRINT_POSITION::CreateGerberFiles() m_reporter->Report( msg, RPT_SEVERITY_INFO ); fullcount += fpcount; - msg.Printf( _( "Full component count: %d\n" ), fullcount ); + msg.Printf( _( "Full component count: %d.\n" ), fullcount ); m_reporter->Report( msg, RPT_SEVERITY_INFO ); m_reporter->Report( _( "File generation successful." ), RPT_SEVERITY_ACTION ); @@ -348,7 +348,7 @@ bool DIALOG_GEN_FOOTPRINT_POSITION::CreateAsciiFiles() if( !EnsureFileDirectoryExists( &outputDir, boardFilename, m_reporter ) ) { - msg.Printf( _( "Could not write plot files to folder \"%s\"." ), outputDir.GetPath() ); + msg.Printf( _( "Could not write plot files to folder '%s'." ), outputDir.GetPath() ); DisplayError( this, msg ); return false; } @@ -382,16 +382,16 @@ bool DIALOG_GEN_FOOTPRINT_POSITION::CreateAsciiFiles() useCSVfmt ); if( fpcount < 0 ) { - msg.Printf( _( "Unable to create \"%s\"." ), fn.GetFullPath() ); + msg.Printf( _( "Unable to create '%s'." ), fn.GetFullPath() ); wxMessageBox( msg ); m_reporter->Report( msg, RPT_SEVERITY_ERROR ); return false; } if( singleFile ) - msg.Printf( _( "Placement file: \"%s\"." ), fn.GetFullPath() ); + msg.Printf( _( "Placement file: '%s'." ), fn.GetFullPath() ); else - msg.Printf( _( "Front (top side) placement file: \"%s\"." ), + msg.Printf( _( "Front (top side) placement file: '%s'." ), fn.GetFullPath() ); m_reporter->Report( msg, RPT_SEVERITY_INFO ); @@ -425,7 +425,7 @@ bool DIALOG_GEN_FOOTPRINT_POSITION::CreateAsciiFiles() if( fpcount < 0 ) { - msg.Printf( _( "Unable to create file \"%s\"." ), fn.GetFullPath() ); + msg.Printf( _( "Unable to create file '%s'." ), fn.GetFullPath() ); m_reporter->Report( msg, RPT_SEVERITY_ERROR ); wxMessageBox( msg ); return false; @@ -434,7 +434,7 @@ bool DIALOG_GEN_FOOTPRINT_POSITION::CreateAsciiFiles() // Display results if( !singleFile ) { - msg.Printf( _( "Back (bottom side) placement file: \"%s\"." ), fn.GetFullPath() ); + msg.Printf( _( "Back (bottom side) placement file: '%s'." ), fn.GetFullPath() ); m_reporter->Report( msg, RPT_SEVERITY_INFO ); msg.Printf( _( "Component count: %d." ), fpcount ); @@ -445,7 +445,7 @@ bool DIALOG_GEN_FOOTPRINT_POSITION::CreateAsciiFiles() if( !singleFile ) { fullcount += fpcount; - msg.Printf( _( "Full component count: %d\n" ), fullcount ); + msg.Printf( _( "Full component count: %d.\n" ), fullcount ); m_reporter->Report( msg, RPT_SEVERITY_INFO ); } @@ -520,13 +520,13 @@ void PCB_EDIT_FRAME::GenFootprintsReport( wxCommandEvent& event ) wxString msg; if( success ) { - msg.Printf( _( "Footprint report file created:\n\"%s\"" ), fn.GetFullPath() ); + msg.Printf( _( "Footprint report file created:\n'%s'." ), fn.GetFullPath() ); wxMessageBox( msg, _( "Footprint Report" ), wxICON_INFORMATION ); } else { - msg.Printf( _( "Unable to create \"%s\"" ), fn.GetFullPath() ); + msg.Printf( _( "Unable to create '%s'." ), fn.GetFullPath() ); DisplayError( this, msg ); } } diff --git a/pcbnew/exporters/gerber_jobfile_writer.cpp b/pcbnew/exporters/gerber_jobfile_writer.cpp index 38b2408e95..4cb72c4c21 100644 --- a/pcbnew/exporters/gerber_jobfile_writer.cpp +++ b/pcbnew/exporters/gerber_jobfile_writer.cpp @@ -149,13 +149,13 @@ bool GERBER_JOBFILE_WRITER::CreateJobFile( const wxString& aFullFilename ) { if( m_reporter ) { - msg.Printf( _( "Unable to create job file \"%s\"" ), aFullFilename ); + msg.Printf( _( "Unable to create job file '%s'." ), aFullFilename ); m_reporter->Report( msg, RPT_SEVERITY_ERROR ); } } else if( m_reporter ) { - msg.Printf( _( "Create Gerber job file \"%s\"" ), aFullFilename ); + msg.Printf( _( "Create Gerber job file '%s'." ), aFullFilename ); m_reporter->Report( msg, RPT_SEVERITY_ACTION ); } diff --git a/pcbnew/files.cpp b/pcbnew/files.cpp index 428a023dfb..358ea486ee 100644 --- a/pcbnew/files.cpp +++ b/pcbnew/files.cpp @@ -344,12 +344,12 @@ bool PCB_EDIT_FRAME::Files_io_from_id( int id ) if( !fn.FileExists() ) { - msg.Printf( _( "Recovery file \"%s\" not found." ), fn.GetFullPath() ); + msg.Printf( _( "Recovery file '%s' not found." ), fn.GetFullPath() ); DisplayInfoMessage( this, msg ); return false; } - msg.Printf( _( "OK to load recovery file \"%s\"" ), fn.GetFullPath() ); + msg.Printf( _( "OK to load recovery file '%s'?" ), fn.GetFullPath() ); if( !IsOK( this, msg ) ) return false; @@ -1024,12 +1024,12 @@ bool PCB_EDIT_FRAME::SavePcbFile( const wxString& aFileName, bool addToHistory, // If save succeeded, replace the original with what we just wrote if( !wxRenameFile( tempFile.GetFullPath(), pcbFileName.GetFullPath() ) ) { - DisplayError( this, wxString::Format( _( "Error saving board file \"%s\".\n" - "Failed to rename temporary file \"%s\"" ), + DisplayError( this, wxString::Format( _( "Error saving board file '%s'.\n" + "Failed to rename temporary file '%s." ), pcbFileName.GetFullPath(), tempFile.GetFullPath() ) ); - lowerTxt.Printf( _( "Failed to rename temporary file \"%s\"" ), + lowerTxt.Printf( _( "Failed to rename temporary file '%s'." ), tempFile.GetFullPath() ); SetMsgPanel( upperTxt, lowerTxt ); diff --git a/pcbnew/netlist_reader/legacy_netlist_reader.cpp b/pcbnew/netlist_reader/legacy_netlist_reader.cpp index aff731e70f..918273c7a3 100644 --- a/pcbnew/netlist_reader/legacy_netlist_reader.cpp +++ b/pcbnew/netlist_reader/legacy_netlist_reader.cpp @@ -243,8 +243,8 @@ void LEGACY_NETLIST_READER::loadFootprintFilters() if( component == NULL ) { wxString msg; - msg.Printf( _( "Cannot find symbol \"%s\" in footprint filter section " - "of netlist." ), cmpRef ); + msg.Printf( _( "Cannot find symbol %s in footprint filter section of netlist." ), + cmpRef ); THROW_PARSE_ERROR( msg, m_lineReader->GetSource(), line, m_lineReader->LineNumber(), m_lineReader->Length() ); } diff --git a/pcbnew/netlist_reader/netlist.cpp b/pcbnew/netlist_reader/netlist.cpp index 75fcb622aa..e1df01e997 100644 --- a/pcbnew/netlist_reader/netlist.cpp +++ b/pcbnew/netlist_reader/netlist.cpp @@ -64,7 +64,7 @@ bool PCB_EDIT_FRAME::ReadNetlistFromFile( const wxString &aFilename, NETLIST& aN if( !netlistReader.get() ) { - msg.Printf( _( "Cannot open netlist file \"%s\"." ), aFilename ); + msg.Printf( _( "Cannot open netlist file '%s'." ), aFilename ); wxMessageBox( msg, _( "Netlist Load Error." ), wxOK | wxICON_ERROR, this ); return false; } @@ -152,7 +152,7 @@ void PCB_EDIT_FRAME::LoadFootprints( NETLIST& aNetlist, REPORTER& aReporter ) // The FPID is ok as long as there is a footprint portion coming from eeschema. if( !component->GetFPID().GetLibItemName().size() ) { - msg.Printf( _( "No footprint defined for symbol \"%s\".\n" ), + msg.Printf( _( "No footprint defined for symbol %s.\n" ), component->GetReference() ); aReporter.Report( msg, RPT_SEVERITY_ERROR ); @@ -179,7 +179,7 @@ void PCB_EDIT_FRAME::LoadFootprints( NETLIST& aNetlist, REPORTER& aReporter ) if( footprintMisMatch && !aNetlist.GetReplaceFootprints() ) { - msg.Printf( _( "Footprint of %s changed: board footprint \"%s\", netlist footprint \"%s\"." ), + msg.Printf( _( "Footprint of %s changed: board footprint '%s', netlist footprint '%s'." ), component->GetReference(), fpOnBoard->GetFPID().Format().wx_str(), component->GetFPID().Format().wx_str() ); @@ -202,7 +202,7 @@ void PCB_EDIT_FRAME::LoadFootprints( NETLIST& aNetlist, REPORTER& aReporter ) // it's needed. Nickname can be blank. if( !component->GetFPID().GetLibItemName().size() ) { - msg.Printf( _( "%s footprint ID \"%s\" is not valid." ), + msg.Printf( _( "%s footprint ID '%s' is not valid." ), component->GetReference(), component->GetFPID().Format().wx_str() ); aReporter.Report( msg, RPT_SEVERITY_ERROR ); @@ -219,7 +219,7 @@ void PCB_EDIT_FRAME::LoadFootprints( NETLIST& aNetlist, REPORTER& aReporter ) } else { - msg.Printf( _( "%s footprint \"%s\" not found in any libraries in the footprint " + msg.Printf( _( "%s footprint '%s' not found in any libraries in the footprint " "library table.\n" ), component->GetReference(), component->GetFPID().GetLibItemName().wx_str() ); diff --git a/pcbnew/netlist_reader/netlist_reader.cpp b/pcbnew/netlist_reader/netlist_reader.cpp index 485de7cec5..5083da8f98 100644 --- a/pcbnew/netlist_reader/netlist_reader.cpp +++ b/pcbnew/netlist_reader/netlist_reader.cpp @@ -178,7 +178,7 @@ bool CMP_READER::Load( NETLIST* aNetlist ) if( !footprint.IsEmpty() && fpid.Parse( footprint, true ) >= 0 ) { wxString error; - error.Printf( _( "Invalid footprint ID in\nfile: \"%s\"\nline: %d" ), + error.Printf( _( "Invalid footprint ID in\nfile: '%s'\nline: %d" ), m_lineReader->GetSource(), m_lineReader->LineNumber() ); THROW_IO_ERROR( error ); diff --git a/pcbnew/pcbnew.cpp b/pcbnew/pcbnew.cpp index 4c1c2dab65..4f25a09208 100644 --- a/pcbnew/pcbnew.cpp +++ b/pcbnew/pcbnew.cpp @@ -355,7 +355,7 @@ void IFACE::SaveFileAs( const wxString& aProjectBasePath, const wxString& aSrcPr if( !aErrors.empty() ) aErrors += "\n"; - msg.Printf( _( "Cannot copy file \"%s\"." ), destFile.GetFullPath() ); + msg.Printf( _( "Cannot copy file '%s'." ), destFile.GetFullPath() ); aErrors += msg; } }