mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-20 09:51:40 +00:00
More error message regularization.
This commit is contained in:
parent
d9a11c30ef
commit
a1dfc36233
common
cvpcb
eeschema
gerbview
pagelayout_editor
pcb_calculator
pcbnew
build_BOM_from_board.cpp
dialogs
dialog_board_statistics.cppdialog_export_vrml.cppdialog_find.cppdialog_global_fp_lib_table_config.cppdialog_plot.cpppanel_setup_layers.cpp
exporters
export_footprint_associations.cppgen_footprints_placefile.cppgendrill_Excellon_writer.cppgendrill_file_writer_base.cppgendrill_gerber_writer.cpp
footprint_libraries_utils.cppload_select_footprint.cppnetlist_reader
pcb_edit_frame.cpppcb_group.cppplugins
altium
eagle
geda
kicad
legacy
@ -911,7 +911,7 @@ bool DS_DATA_MODEL::LoadDrawingSheet( const wxString& aFullFileName, bool Append
|
||||
|
||||
if( wksFile.Read( buffer.get(), filelen ) != filelen )
|
||||
{
|
||||
wxLogMessage( _( "The file \"%s\" was not fully read" ), fullFileName.GetData() );
|
||||
wxLogMessage( _( "The file '%s' was not fully read." ), fullFileName.GetData() );
|
||||
return false;
|
||||
}
|
||||
else
|
||||
|
@ -63,7 +63,7 @@ FOOTPRINT_INFO* FOOTPRINT_LIST::GetFootprintInfo( const wxString& aFootprintName
|
||||
LIB_ID fpid;
|
||||
|
||||
wxCHECK_MSG( fpid.Parse( aFootprintName ) < 0, NULL,
|
||||
wxString::Format( wxT( "\"%s\" is not a valid LIB_ID." ), aFootprintName ) );
|
||||
wxString::Format( wxT( "'%s' is not a valid LIB_ID." ), aFootprintName ) );
|
||||
|
||||
return GetFootprintInfo( fpid.GetLibNickname(), fpid.GetLibItemName() );
|
||||
}
|
||||
|
@ -197,8 +197,8 @@ void FP_LIB_TABLE::Parse( LIB_TABLE_LEXER* in )
|
||||
{
|
||||
delete tmp; // The table did not take ownership of the row.
|
||||
|
||||
wxString msg = wxString::Format( _( "Duplicate library nickname \"%s\" found in "
|
||||
"footprint library table file line %d" ),
|
||||
wxString msg = wxString::Format( _( "Duplicate library nickname '%s' found in "
|
||||
"footprint library table file line %d." ),
|
||||
nickname,
|
||||
lineNum );
|
||||
|
||||
|
@ -416,7 +416,7 @@ bool WIDGET_HOTKEY_LIST::resolveKeyConflicts( TOOL_ACTION* aAction, long aKey )
|
||||
return true;
|
||||
|
||||
TOOL_ACTION* conflictingAction = conflictingHotKey->m_Actions[ 0 ];
|
||||
wxString msg = wxString::Format( _( "\"%s\" is already assigned to \"%s\" in section \"%s\". "
|
||||
wxString msg = wxString::Format( _( "'%s' is already assigned to '%s' in section '%s'. "
|
||||
"Are you sure you want to change its assignment?" ),
|
||||
KeyNameFromKeyCode( aKey ),
|
||||
conflictingAction->GetLabel(),
|
||||
|
@ -48,7 +48,7 @@ DIALOG_CONFIG_EQUFILES::DIALOG_CONFIG_EQUFILES( CVPCB_MAINFRAME* aParent ) :
|
||||
m_Parent = aParent;
|
||||
|
||||
PROJECT& prj = Prj();
|
||||
SetTitle( wxString::Format( _( "Project file: \"%s\"" ), prj.GetProjectFullName() ) );
|
||||
SetTitle( wxString::Format( _( "Project file: '%s'" ), prj.GetProjectFullName() ) );
|
||||
|
||||
Init( );
|
||||
|
||||
|
@ -397,7 +397,7 @@ FOOTPRINT* DISPLAY_FOOTPRINTS_FRAME::GetFootprint( const wxString& aFootprintNam
|
||||
|
||||
if( fpid.Parse( aFootprintName ) >= 0 )
|
||||
{
|
||||
aReporter.Report( wxString::Format( _( "Footprint ID \"%s\" is not valid." ),
|
||||
aReporter.Report( wxString::Format( _( "Footprint ID '%s' is not valid." ),
|
||||
aFootprintName ),
|
||||
RPT_SEVERITY_ERROR );
|
||||
return NULL;
|
||||
@ -412,7 +412,7 @@ FOOTPRINT* DISPLAY_FOOTPRINTS_FRAME::GetFootprint( const wxString& aFootprintNam
|
||||
// See if the library requested is in the library table
|
||||
if( !fpTable->HasLibrary( libNickname ) )
|
||||
{
|
||||
aReporter.Report( wxString::Format( _( "Library \"%s\" is not in the footprint library table." ),
|
||||
aReporter.Report( wxString::Format( _( "Library '%s' is not in the footprint library table." ),
|
||||
libNickname ),
|
||||
RPT_SEVERITY_ERROR );
|
||||
return NULL;
|
||||
@ -421,7 +421,7 @@ FOOTPRINT* DISPLAY_FOOTPRINTS_FRAME::GetFootprint( const wxString& aFootprintNam
|
||||
// See if the footprint requested is in the library
|
||||
if( !fpTable->FootprintExists( libNickname, fpName ) )
|
||||
{
|
||||
aReporter.Report( wxString::Format( _( "Footprint \"%s\" not found." ), aFootprintName ),
|
||||
aReporter.Report( wxString::Format( _( "Footprint '%s' not found." ), aFootprintName ),
|
||||
RPT_SEVERITY_ERROR );
|
||||
return NULL;
|
||||
}
|
||||
@ -446,7 +446,7 @@ FOOTPRINT* DISPLAY_FOOTPRINTS_FRAME::GetFootprint( const wxString& aFootprintNam
|
||||
return footprint;
|
||||
}
|
||||
|
||||
aReporter.Report( wxString::Format( _( "Footprint \"%s\" not found." ), aFootprintName ),
|
||||
aReporter.Report( wxString::Format( _( "Footprint '%s' not found." ), aFootprintName ),
|
||||
RPT_SEVERITY_ERROR );
|
||||
return NULL;
|
||||
}
|
||||
|
@ -141,19 +141,17 @@ bool CVPCB_MAINFRAME::ReadNetListAndFpFiles( const std::string& aNetlist )
|
||||
break;
|
||||
|
||||
case 1:
|
||||
msg += wxString::Format( _(
|
||||
"Component \"%s\" footprint \"%s\" was <b>not found</b> in any library.\n" ),
|
||||
component->GetReference(),
|
||||
component->GetFPID().GetLibItemName().wx_str()
|
||||
);
|
||||
msg += wxString::Format( _( "Component '%s' footprint '%s' <b>not "
|
||||
"found</b> in any library.\n" ),
|
||||
component->GetReference(),
|
||||
component->GetFPID().GetLibItemName().wx_str() );
|
||||
break;
|
||||
|
||||
case 2:
|
||||
msg += wxString::Format( _(
|
||||
"Component \"%s\" footprint \"%s\" was found in <b>multiple</b> libraries.\n" ),
|
||||
component->GetReference(),
|
||||
component->GetFPID().GetLibItemName().wx_str()
|
||||
);
|
||||
msg += wxString::Format( _( "Component '%s' footprint '%s' was found "
|
||||
"in <b>multiple</b> libraries.\n" ),
|
||||
component->GetReference(),
|
||||
component->GetFPID().GetLibItemName().wx_str() );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -204,8 +204,8 @@ int CVPCB_ASSOCIATION_TOOL::Associate( const TOOL_EVENT& aEvent )
|
||||
// Test for validity of the requested footprint
|
||||
if( !fpid.IsValid() )
|
||||
{
|
||||
wxString msg =
|
||||
wxString::Format( _( "\"%s\" is not a valid footprint." ), fpid.Format().wx_str() );
|
||||
wxString msg = wxString::Format( _( "'%s' is not a valid footprint." ),
|
||||
fpid.Format().wx_str() );
|
||||
DisplayErrorMessage( m_frame, msg );
|
||||
}
|
||||
|
||||
|
@ -388,7 +388,7 @@ void DIALOG_BOM::OnAddGenerator( wxCommandEvent& event )
|
||||
// Verify if it does not exists
|
||||
if( pluginExists( name ) )
|
||||
{
|
||||
wxMessageBox( wxString::Format( _( "Nickname \"%s\" already in use." ), name ) );
|
||||
wxMessageBox( wxString::Format( _( "Nickname '%s' already in use." ), name ) );
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -435,7 +435,7 @@ wxFileName DIALOG_PLOT_SCHEMATIC::createPlotFileName( const wxString& aPlotFileN
|
||||
if( !EnsureFileDirectoryExists( &tmp, retv.GetFullName(), aReporter )
|
||||
|| !tmp.IsDirWritable() )
|
||||
{
|
||||
wxString msg = wxString::Format( _( "Could not write plot files to folder \"%s\"." ),
|
||||
wxString msg = wxString::Format( _( "Failed to write plot files to folder '%s'." ),
|
||||
tmp.GetPath() );
|
||||
aReporter->Report( msg, RPT_SEVERITY_ERROR );
|
||||
retv.Clear();
|
||||
@ -510,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( _( "Plotted to '%s'.\n" ), plotFileName.GetFullPath() );
|
||||
msg.Printf( _( "Plotted to '%s'." ), plotFileName.GetFullPath() );
|
||||
reporter.Report( msg, RPT_SEVERITY_ACTION );
|
||||
}
|
||||
else // Error
|
||||
{
|
||||
msg.Printf( _( "Unable to create file '%s'.\n" ), plotFileName.GetFullPath() );
|
||||
msg.Printf( _( "Failed to create file '%s'." ), plotFileName.GetFullPath() );
|
||||
reporter.Report( msg, RPT_SEVERITY_ERROR );
|
||||
}
|
||||
}
|
||||
catch( IO_ERROR& e )
|
||||
{
|
||||
msg.Printf( wxT( "DXF Plotter exception: %s\n"), e.What() );
|
||||
msg.Printf( wxT( "DXF Plotter exception: %s"), e.What() );
|
||||
reporter.Report( msg, RPT_SEVERITY_ERROR );
|
||||
schframe->SetCurrentSheet( oldsheetpath );
|
||||
schframe->GetCurrentSheet().UpdateAllScreenReferences();
|
||||
@ -680,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( _( "Plotted to '%s'.\n" ), plotFileName.GetFullPath() );
|
||||
msg.Printf( _( "Plotted to '%s'." ), plotFileName.GetFullPath() );
|
||||
reporter.Report( msg, RPT_SEVERITY_ACTION );
|
||||
}
|
||||
else
|
||||
{
|
||||
msg.Printf( _( "Unable to create file '%s'.\n" ), plotFileName.GetFullPath() );
|
||||
msg.Printf( _( "Failed to create file '%s'." ), plotFileName.GetFullPath() );
|
||||
reporter.Report( msg, RPT_SEVERITY_ERROR );
|
||||
}
|
||||
}
|
||||
catch( IO_ERROR& e )
|
||||
{
|
||||
msg.Printf( wxT( "HPGL Plotter exception: %s\n"), e.What() );
|
||||
msg.Printf( wxT( "HPGL Plotter exception: %s"), e.What() );
|
||||
reporter.Report( msg, RPT_SEVERITY_ERROR );
|
||||
}
|
||||
|
||||
@ -837,8 +837,7 @@ void DIALOG_PLOT_SCHEMATIC::createPDFFile( bool aPlotAll, bool aPlotDrawingSheet
|
||||
|
||||
if( !plotter->OpenFile( plotFileName.GetFullPath() ) )
|
||||
{
|
||||
msg.Printf( _( "Unable to create file '%s'.\n" ),
|
||||
plotFileName.GetFullPath() );
|
||||
msg.Printf( _( "Failed to create file '%s'." ), plotFileName.GetFullPath() );
|
||||
reporter.Report( msg, RPT_SEVERITY_ERROR );
|
||||
delete plotter;
|
||||
return;
|
||||
@ -851,7 +850,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\n" ), e.What() );
|
||||
msg.Printf( wxT( "PDF Plotter exception: %s" ), e.What() );
|
||||
reporter.Report( msg, RPT_SEVERITY_ERROR );
|
||||
|
||||
restoreEnvironment( plotter, oldsheetpath );
|
||||
@ -1034,20 +1033,20 @@ void DIALOG_PLOT_SCHEMATIC::createPSFile( bool aPlotAll, bool aPlotFrameRef,
|
||||
if( plotOneSheetPS( plotFileName.GetFullPath(), screen, aRenderSettings, plotPage,
|
||||
plot_offset, scale, aPlotFrameRef ) )
|
||||
{
|
||||
msg.Printf( _( "Plotted to '%s'.\n" ), plotFileName.GetFullPath() );
|
||||
msg.Printf( _( "Plotted to '%s'." ), plotFileName.GetFullPath() );
|
||||
reporter.Report( msg, RPT_SEVERITY_ACTION );
|
||||
}
|
||||
else
|
||||
{
|
||||
// Error
|
||||
msg.Printf( _( "Unable to create file '%s'.\n" ), plotFileName.GetFullPath() );
|
||||
msg.Printf( _( "Failed to create file '%s'." ), plotFileName.GetFullPath() );
|
||||
reporter.Report( msg, RPT_SEVERITY_ERROR );
|
||||
}
|
||||
|
||||
}
|
||||
catch( IO_ERROR& e )
|
||||
{
|
||||
msg.Printf( wxT( "PS Plotter exception: %s\n"), e.What() );
|
||||
msg.Printf( wxT( "PS Plotter exception: %s"), e.What() );
|
||||
reporter.Report( msg, RPT_SEVERITY_ERROR );
|
||||
}
|
||||
}
|
||||
@ -1160,19 +1159,19 @@ void DIALOG_PLOT_SCHEMATIC::createSVGFile( bool aPrintAll, bool aPrintFrameRef,
|
||||
|
||||
if( !success )
|
||||
{
|
||||
msg.Printf( _( "Cannot create file '%s'.\n" ), plotFileName.GetFullPath() );
|
||||
msg.Printf( _( "Failed to create file '%s'." ), plotFileName.GetFullPath() );
|
||||
reporter.Report( msg, RPT_SEVERITY_ERROR );
|
||||
}
|
||||
else
|
||||
{
|
||||
msg.Printf( _( "Plotted to '%s'.\n" ), plotFileName.GetFullPath() );
|
||||
msg.Printf( _( "Plotted to '%s'." ), plotFileName.GetFullPath() );
|
||||
reporter.Report( msg, RPT_SEVERITY_ACTION );
|
||||
}
|
||||
}
|
||||
catch( const IO_ERROR& e )
|
||||
{
|
||||
// Cannot plot SVG file
|
||||
msg.Printf( wxT( "SVG Plotter exception: %s\n" ), e.What() );
|
||||
msg.Printf( wxT( "SVG Plotter exception: %s" ), e.What() );
|
||||
reporter.Report( msg, RPT_SEVERITY_ERROR );
|
||||
break;
|
||||
}
|
||||
|
@ -55,8 +55,8 @@ DIALOG_SYMBOL_REMAP::DIALOG_SYMBOL_REMAP( SCH_EDIT_FRAME* aParent ) :
|
||||
|
||||
if( !wxFileName::IsDirWritable( Prj().GetProjectPath() ) )
|
||||
{
|
||||
DisplayInfoMessage( this, _( "Remapping is not possible because you do not have "
|
||||
"write privileges to the project folder \"%s\"." ) );
|
||||
DisplayInfoMessage( this, _( "Remapping is not possible because you have insufficient "
|
||||
"privileges to the project folder '%s'." ) );
|
||||
|
||||
// Disable the remap button.
|
||||
m_remapped = true;
|
||||
|
@ -436,11 +436,10 @@ bool PANEL_SYM_LIB_TABLE::verifyTables()
|
||||
}
|
||||
catch( const IO_ERROR& ioe )
|
||||
{
|
||||
msg = wxString::Format( _( "Symbol library \"%s\" failed to load.\n %s" ),
|
||||
row.GetNickName(),
|
||||
ioe.What() );
|
||||
msg.Printf( _( "Symbol library '%s' failed to load." ), row.GetNickName() );
|
||||
|
||||
wxMessageDialog errdlg( this, msg, _( "Error Loading Library" ) );
|
||||
wxMessageDialog errdlg( this, msg + wxS( "\n" ) + ioe.What(),
|
||||
_( "Error Loading Library" ) );
|
||||
errdlg.ShowModal();
|
||||
|
||||
return false;
|
||||
|
@ -649,7 +649,7 @@ bool SCH_EDIT_FRAME::canCloseWindow( wxCloseEvent& aEvent )
|
||||
if( sheetlist.IsModified() )
|
||||
{
|
||||
wxFileName fileName = Schematic().RootScreen()->GetFileName();
|
||||
wxString msg = _( "Save changes to \"%s\" before closing?" );
|
||||
wxString msg = _( "Save changes to '%s' before closing?" );
|
||||
|
||||
if( !HandleUnsavedChanges( this, wxString::Format( msg, fileName.GetFullName() ),
|
||||
[&]()->bool { return SaveProject(); } ) )
|
||||
|
@ -2246,9 +2246,8 @@ void SCH_SEXPR_PLUGIN::CreateSymbolLib( const wxString& aLibraryPath,
|
||||
{
|
||||
if( wxFileExists( aLibraryPath ) )
|
||||
{
|
||||
THROW_IO_ERROR( wxString::Format(
|
||||
_( "symbol library \"%s\" already exists, cannot create a new library" ),
|
||||
aLibraryPath.GetData() ) );
|
||||
THROW_IO_ERROR( wxString::Format( _( "Symbol library '%s' already exists." ),
|
||||
aLibraryPath.GetData() ) );
|
||||
}
|
||||
|
||||
LOCALE_IO toggle;
|
||||
@ -2273,7 +2272,7 @@ bool SCH_SEXPR_PLUGIN::DeleteSymbolLib( const wxString& aLibraryPath,
|
||||
// we don't want that. we want bare metal portability with no UI here.
|
||||
if( wxRemove( aLibraryPath ) )
|
||||
{
|
||||
THROW_IO_ERROR( wxString::Format( _( "library \"%s\" cannot be deleted" ),
|
||||
THROW_IO_ERROR( wxString::Format( _( "Symbol library '%s' cannot be deleted." ),
|
||||
aLibraryPath.GetData() ) );
|
||||
}
|
||||
|
||||
|
@ -868,8 +868,8 @@ void SCH_LEGACY_PLUGIN::loadHeader( LINE_READER& aReader, SCH_SCREEN* aScreen )
|
||||
|
||||
if( !line || !strCompare( "Eeschema Schematic File Version", line, &line ) )
|
||||
{
|
||||
m_error.Printf(
|
||||
_( "\"%s\" does not appear to be an Eeschema file" ), aScreen->GetFileName() );
|
||||
m_error.Printf( _( "'%s' does not appear to be an Eeschema file." ),
|
||||
aScreen->GetFileName() );
|
||||
THROW_IO_ERROR( m_error );
|
||||
}
|
||||
|
||||
@ -4396,9 +4396,8 @@ void SCH_LEGACY_PLUGIN::CreateSymbolLib( const wxString& aLibraryPath,
|
||||
{
|
||||
if( wxFileExists( aLibraryPath ) )
|
||||
{
|
||||
THROW_IO_ERROR( wxString::Format(
|
||||
_( "symbol library \"%s\" already exists, cannot create a new library" ),
|
||||
aLibraryPath.GetData() ) );
|
||||
THROW_IO_ERROR( wxString::Format( _( "Symbol library '%s' already exists." ),
|
||||
aLibraryPath.GetData() ) );
|
||||
}
|
||||
|
||||
LOCALE_IO toggle;
|
||||
@ -4423,7 +4422,7 @@ bool SCH_LEGACY_PLUGIN::DeleteSymbolLib( const wxString& aLibraryPath,
|
||||
// we don't want that. we want bare metal portability with no UI here.
|
||||
if( wxRemove( aLibraryPath ) )
|
||||
{
|
||||
THROW_IO_ERROR( wxString::Format( _( "library \"%s\" cannot be deleted" ),
|
||||
THROW_IO_ERROR( wxString::Format( _( "Symbol library '%s' cannot be deleted." ),
|
||||
aLibraryPath.GetData() ) );
|
||||
}
|
||||
|
||||
|
@ -61,8 +61,8 @@ bool SCH_EDIT_FRAME::CheckSheetForRecursion( SCH_SHEET* aSheet, SCH_SHEET_PATH*
|
||||
if( hierarchy.TestForRecursion( sheetHierarchy, destFile.GetFullPath() ) )
|
||||
{
|
||||
msg.Printf( _( "The sheet changes cannot be made because the destination sheet already "
|
||||
"has the sheet \"%s\" or one of it's subsheets as a parent somewhere in "
|
||||
"the schematic hierarchy." ),
|
||||
"has the sheet '%s' or one of its subsheets as a parent somewhere in the "
|
||||
"schematic hierarchy." ),
|
||||
destFile.GetFullPath() );
|
||||
DisplayError( this, msg );
|
||||
return true;
|
||||
|
@ -320,7 +320,7 @@ bool SYMBOL_EDIT_FRAME::LoadOneLibrarySymbolAux( LIB_SYMBOL* aEntry, const wxStr
|
||||
|
||||
if( aEntry->GetName().IsEmpty() )
|
||||
{
|
||||
wxLogWarning( "Symbol in library \"%s\" has empty name field.", aLibrary );
|
||||
wxLogWarning( "Symbol in library '%s' has empty name field.", aLibrary );
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -418,8 +418,9 @@ void SYMBOL_EDIT_FRAME::CreateNewSymbol()
|
||||
// Test if there is a symbol with this name already.
|
||||
if( !lib.empty() && m_libMgr->SymbolExists( name, lib ) )
|
||||
{
|
||||
wxString msg = wxString::Format( _( "Symbol \"%s\" already exists in library \"%s\"" ),
|
||||
name, lib );
|
||||
wxString msg = wxString::Format( _( "Symbol '%s' already exists in library '%s'." ),
|
||||
name,
|
||||
lib );
|
||||
DisplayError( this, msg );
|
||||
return;
|
||||
}
|
||||
@ -730,9 +731,9 @@ void SYMBOL_EDIT_FRAME::DeleteSymbolFromLibrary()
|
||||
LIB_ID libId = GetTargetLibId();
|
||||
|
||||
if( m_libMgr->IsSymbolModified( libId.GetLibItemName(), libId.GetLibNickname() )
|
||||
&& !IsOK( this, _( wxString::Format( "The symbol \"%s\" has been modified\n"
|
||||
"Do you want to remove it from the library?",
|
||||
libId.GetUniStringLibItemName() ) ) ) )
|
||||
&& !IsOK( this, wxString::Format( _( "The symbol '%s' has been modified.\n"
|
||||
"Do you want to remove it from the library?" ),
|
||||
libId.GetUniStringLibItemName() ) ) )
|
||||
{
|
||||
return;
|
||||
}
|
||||
@ -743,7 +744,7 @@ void SYMBOL_EDIT_FRAME::DeleteSymbolFromLibrary()
|
||||
|
||||
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?" ),
|
||||
"Do you wish to delete this symbol and all of its derivatives?" ),
|
||||
libId.GetLibItemName().wx_str() );
|
||||
|
||||
wxMessageDialog::ButtonLabel yesButtonLabel( _( "Delete Symbol" ) );
|
||||
@ -890,7 +891,7 @@ void SYMBOL_EDIT_FRAME::Revert( bool aConfirm )
|
||||
// Empty if this is the library itself that is selected.
|
||||
const wxString& symbolName = libId.GetLibItemName();
|
||||
|
||||
wxString msg = wxString::Format( _( "Revert \"%s\" to last version saved?" ),
|
||||
wxString msg = wxString::Format( _( "Revert '%s' to last version saved?" ),
|
||||
symbolName.IsEmpty() ? libName : symbolName );
|
||||
|
||||
if( aConfirm && !ConfirmRevertDialog( this, msg ) )
|
||||
@ -1006,7 +1007,7 @@ bool SYMBOL_EDIT_FRAME::saveLibrary( const wxString& aLibrary, bool aNewFile )
|
||||
|
||||
wxString wildcards = KiCadSymbolLibFileWildcard();
|
||||
|
||||
wxFileDialog dlg( this, wxString::Format( _( "Save Library \"%s\" As..." ), aLibrary ),
|
||||
wxFileDialog dlg( this, wxString::Format( _( "Save Library '%s' As..." ), aLibrary ),
|
||||
default_path, fn.GetFullName(), wildcards,
|
||||
wxFD_SAVE | wxFD_OVERWRITE_PROMPT );
|
||||
|
||||
|
@ -172,8 +172,8 @@ SYMBOL_LIB_TABLE_ROW* SYMBOL_LIBRARY_MANAGER::GetLibrary( const wxString& aLibra
|
||||
}
|
||||
catch( const IO_ERROR& e )
|
||||
{
|
||||
wxLogMessage( _( "Cannot find library \"%s\" in the Symbol Library Table (%s)" ),
|
||||
aLibrary, e.What() );
|
||||
wxLogMessage( _( "Library '%s' not found in the Symbol Library Table." ) + e.What(),
|
||||
aLibrary );
|
||||
}
|
||||
|
||||
return row;
|
||||
@ -615,8 +615,9 @@ LIB_SYMBOL* SYMBOL_LIBRARY_MANAGER::GetAlias( const wxString& aAlias,
|
||||
}
|
||||
catch( const IO_ERROR& e )
|
||||
{
|
||||
wxLogMessage( _( "Cannot load symbol \"%s\" from library \"%s\" (%s)" ),
|
||||
aAlias, aLibrary, e.What() );
|
||||
wxLogMessage( _( "Cannot load symbol '%s' from library '%s'." ) + e.What(),
|
||||
aAlias,
|
||||
aLibrary );
|
||||
}
|
||||
|
||||
return alias;
|
||||
@ -770,7 +771,7 @@ std::set<LIB_SYMBOL*> SYMBOL_LIBRARY_MANAGER::getOriginalSymbols( const wxString
|
||||
}
|
||||
catch( const IO_ERROR& e )
|
||||
{
|
||||
wxLogMessage( _( "Cannot enumerate library \"%s\" (%s)" ), aLibrary, e.What() );
|
||||
wxLogMessage( _( "Cannot enumerate library '%s'." ) + e.What(), aLibrary );
|
||||
}
|
||||
|
||||
return symbols;
|
||||
|
@ -547,11 +547,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." ), filename );
|
||||
|
||||
wxLogError( msg );
|
||||
wxLogError( msg + wxS( "\n" ) + ioe.What() );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -230,7 +230,7 @@ int SCH_EDITOR_CONTROL::ImportFPAssignments( const TOOL_EVENT& aEvent )
|
||||
|
||||
if( !processCmpToFootprintLinkFile( filename, forceVisibility, visibilityState ) )
|
||||
{
|
||||
wxString msg = wxString::Format( _( "Failed to open symbol-footprint link file \"%s\"" ),
|
||||
wxString msg = wxString::Format( _( "Failed to open symbol-footprint link file '%s'." ),
|
||||
filename.GetData() );
|
||||
|
||||
DisplayError( m_frame, msg );
|
||||
|
@ -513,7 +513,7 @@ int SCH_DRAWING_TOOLS::PlaceImage( const TOOL_EVENT& aEvent )
|
||||
|
||||
if( !image || !image->ReadImageFile( fullFilename ) )
|
||||
{
|
||||
wxMessageBox( _( "Couldn't load image from \"%s\"" ), fullFilename );
|
||||
wxMessageBox( _( "Could not load image from '%s'." ), fullFilename );
|
||||
delete image;
|
||||
image = nullptr;
|
||||
continue;
|
||||
|
@ -1537,7 +1537,7 @@ int SCH_EDITOR_CONTROL::Paste( const TOOL_EVENT& aEvent )
|
||||
|
||||
if( hierarchy.TestForRecursion( sheetHierarchy, destFn.GetFullPath( wxPATH_UNIX ) ) )
|
||||
{
|
||||
auto msg = wxString::Format( _( "The pasted sheet \"%s\"\n"
|
||||
auto msg = wxString::Format( _( "The pasted sheet '%s'\n"
|
||||
"was dropped because the destination already has "
|
||||
"the sheet or one of its subsheets as a parent." ),
|
||||
sheet->GetFileName() );
|
||||
|
@ -405,7 +405,7 @@ int SYMBOL_EDITOR_CONTROL::ExportView( const TOOL_EVENT& aEvent )
|
||||
|
||||
if( !SaveCanvasImageToFile( editFrame, dlg.GetPath(), BITMAP_TYPE::PNG ) )
|
||||
{
|
||||
wxMessageBox( wxString::Format( _( "Can't save file \"%s\"." ), dlg.GetPath() ) );
|
||||
wxMessageBox( wxString::Format( _( "Can't save file '%s'." ), dlg.GetPath() ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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( _( "Failed to create file '%s'." ), m_pcb_file_name );
|
||||
DisplayError( m_gerbview_frame, msg );
|
||||
return false;
|
||||
}
|
||||
|
@ -372,7 +372,7 @@ bool PL_EDITOR_FRAME::canCloseWindow( wxCloseEvent& aEvent )
|
||||
if( IsContentModified() )
|
||||
{
|
||||
wxFileName filename = GetCurrentFileName();
|
||||
wxString msg = _( "Save changes to \"%s\" before closing?" );
|
||||
wxString msg = _( "Save changes to '%s' before closing?" );
|
||||
|
||||
if( !HandleUnsavedChanges( this, wxString::Format( msg, filename.GetFullName() ),
|
||||
[&]() -> bool
|
||||
@ -852,7 +852,7 @@ DS_DATA_ITEM* PL_EDITOR_FRAME::AddDrawingSheetItem( int aType )
|
||||
|
||||
if( !wxFileExists( fullFilename ) )
|
||||
{
|
||||
wxMessageBox( _( "Couldn't load image from \"%s\"" ), fullFilename );
|
||||
wxMessageBox( _( "Could not load image from '%s'." ), fullFilename );
|
||||
break;
|
||||
}
|
||||
|
||||
@ -860,7 +860,7 @@ DS_DATA_ITEM* PL_EDITOR_FRAME::AddDrawingSheetItem( int aType )
|
||||
|
||||
if( !image->ReadImageFile( fullFilename ) )
|
||||
{
|
||||
wxMessageBox( _( "Couldn't load image from \"%s\"" ), fullFilename );
|
||||
wxMessageBox( _( "Could not load image from '%s'." ), fullFilename );
|
||||
delete image;
|
||||
break;
|
||||
}
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user