mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-11 11:50:10 +00:00
Better strings for the translators (converted concatenations to formats)
This commit is contained in:
parent
20eaf66d5b
commit
42709330e0
common
cvpcb
eeschema
component_references_lister.cppdatabase.cpp
dialogs
annotate_dialog.cppdialog_build_BOM.cppdialog_edit_component_in_lib.cppdialog_edit_label.cppdialog_eeschema_config.cpp
eelibs_read_libraryfiles.cppfiles-io.cppfind.cppgetpart.cpplib_arc.cpplib_circle.cpplib_export.cpplib_polyline.cpplib_rectangle.cpplib_text.cpplibarch.cpplibedit.cpplibeditframe.cppload_one_schematic_file.cppnetform.cppnetlist.cpponrightclick.cpppinedit.cppplot_schematic_DXF.cppplot_schematic_HPGL.cppplot_schematic_PDF.cppplot_schematic_PS.cppplot_schematic_SVG.cppsheet.cppsymbedit.cppgerbview
kicad
pcbnew
autorouter
build_BOM_from_board.cppclass_dimension.cppclass_edge_mod.cppclass_marker_pcb.cppclass_module.cppclass_pcb_text.cppclass_text_mod.cppclass_track.cppclass_zone.cppdialogs
dialog_edit_module_for_BoardEditor.cppdialog_global_deletion.cppdialog_orient_footprints.cppdialog_pcbnew_config_libs_and_paths.cpp
editedge.cppexport_gencad.cppgen_modules_placefile.cppgpcb_plugin.cppkicad_plugin.cpplayer_widget.cpplegacy_plugin.cpplibrairi.cpploadcmp.cppnetlist.cppnetlist_reader_common.cppnetlist_reader_firstformat.cpponleftclick.cpppcb_parser.cpppcbplot.cppspecctra_export.cppxchgmod.cpp@ -388,7 +388,8 @@ void EDA_BASE_FRAME::OnSelectPreferredEditor( wxCommandEvent& event )
|
||||
wildcard += wxT( ".exe" );
|
||||
#endif
|
||||
|
||||
wildcard = _( "Executable file (" ) + wildcard + wxT( ")|" ) + wildcard;
|
||||
wildcard.Printf( _( "Executable file (%s)|%s" ),
|
||||
GetChars( wildcard ), GetChars( wildcard ) );
|
||||
|
||||
wxFileDialog dlg( this, _( "Select Preferred Editor" ), fn.GetPath(),
|
||||
fn.GetFullName(), wildcard,
|
||||
@ -644,7 +645,8 @@ edits you made?" ),
|
||||
// Rename the old file to the backup file name.
|
||||
if( !wxRenameFile( aFileName.GetFullPath(), backupFileName.GetFullPath() ) )
|
||||
{
|
||||
msg = _( "Could not create backup file " ) + backupFileName.GetFullPath();
|
||||
msg.Printf( _( "Could not create backup file <%s>" ),
|
||||
GetChars( backupFileName.GetFullPath() ) );
|
||||
wxMessageBox( msg );
|
||||
}
|
||||
}
|
||||
|
@ -63,9 +63,9 @@ const wxString pageFmts[] =
|
||||
_("C 17x22in"),
|
||||
_("D 22x34in"),
|
||||
_("E 34x44in"),
|
||||
_("USLetter 8.5x11in"),
|
||||
_("USLegal 8.5x14in"),
|
||||
_("USLedger 11x17in"),
|
||||
_("US Letter 8.5x11in"),
|
||||
_("US Legal 8.5x14in"),
|
||||
_("US Ledger 11x17in"),
|
||||
_("User (Custom)"),
|
||||
wxT("") // end of list
|
||||
};
|
||||
|
@ -280,24 +280,25 @@ bool DSNLEXER::IsSymbol( int aTok )
|
||||
|
||||
void DSNLEXER::Expecting( int aTok ) throw( IO_ERROR )
|
||||
{
|
||||
wxString errText( _("Expecting") );
|
||||
errText << wxT(" ") << GetTokenString( aTok );
|
||||
wxString errText;
|
||||
errText.Printf( _("Expecting %s"), GetChars( GetTokenString( aTok ) ) );
|
||||
THROW_PARSE_ERROR( errText, CurSource(), CurLine(), CurLineNumber(), CurOffset() );
|
||||
}
|
||||
|
||||
|
||||
void DSNLEXER::Expecting( const char* text ) throw( IO_ERROR )
|
||||
{
|
||||
wxString errText( _("Expecting") );
|
||||
errText << wxT(" '") << wxString::FromUTF8( text ) << wxT("'");
|
||||
wxString errText;
|
||||
errText.Printf( _("Expecting '%s'"),
|
||||
GetChars( wxString::FromUTF8( text ) ) );
|
||||
THROW_PARSE_ERROR( errText, CurSource(), CurLine(), CurLineNumber(), CurOffset() );
|
||||
}
|
||||
|
||||
|
||||
void DSNLEXER::Unexpected( int aTok ) throw( IO_ERROR )
|
||||
{
|
||||
wxString errText( _("Unexpected") );
|
||||
errText << wxT(" ") << GetTokenString( aTok );
|
||||
wxString errText;
|
||||
errText.Printf( _("Unexpected %s"), GetChars( GetTokenString( aTok ) ) );
|
||||
THROW_PARSE_ERROR( errText, CurSource(), CurLine(), CurLineNumber(), CurOffset() );
|
||||
}
|
||||
|
||||
@ -312,8 +313,9 @@ void DSNLEXER::Duplicate( int aTok ) throw( IO_ERROR )
|
||||
|
||||
void DSNLEXER::Unexpected( const char* text ) throw( IO_ERROR )
|
||||
{
|
||||
wxString errText( _("Unexpected") );
|
||||
errText << wxT(" '") << wxString::FromUTF8( text ) << wxT("'");
|
||||
wxString errText;
|
||||
errText.Printf( _("Unexpected '%s'"),
|
||||
GetChars( wxString::FromUTF8( text ) ) );
|
||||
THROW_PARSE_ERROR( errText, CurSource(), CurLine(), CurLineNumber(), CurOffset() );
|
||||
}
|
||||
|
||||
|
@ -122,8 +122,7 @@ bool GetAssociatedDocument( wxFrame* aFrame,
|
||||
|
||||
if( !wxFileExists( fullfilename ) )
|
||||
{
|
||||
msg = _( "Doc File " );
|
||||
msg << wxT("\"") << aDocName << wxT("\"") << _( " not found" );
|
||||
msg.Printf( _( "Doc File <%s> not found" ), GetChars( aDocName ) );
|
||||
DisplayError( aFrame, msg );
|
||||
return false;
|
||||
}
|
||||
|
@ -652,15 +652,16 @@ bool OpenPDF( const wxString& file )
|
||||
|
||||
if( !success )
|
||||
{
|
||||
wxString msg = _( "Problem while running the PDF viewer" );
|
||||
msg << _( "\n command is " ) << command;
|
||||
wxString msg;
|
||||
msg.Printf( _( "Problem while running the PDF viewer\nCommand is '%s'" ),
|
||||
GetChars( command ) );
|
||||
DisplayError( NULL, msg );
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
wxString msg = _( "Unable to find a PDF viewer for" );
|
||||
msg << wxT( " " ) << filename;
|
||||
wxString msg;
|
||||
msg.Printf( _( "Unable to find a PDF viewer for <%s>" ), GetChars( filename ) );
|
||||
DisplayError( NULL, msg );
|
||||
success = false;
|
||||
}
|
||||
|
@ -57,7 +57,8 @@ EDA_GRAPHIC_TEXT_CTRL::EDA_GRAPHIC_TEXT_CTRL( wxWindow* parent,
|
||||
|
||||
if( !Title.IsEmpty() )
|
||||
{
|
||||
wxString msg = _( "Size" ) + ReturnUnitSymbol( m_UserUnit );
|
||||
wxString msg;
|
||||
msg.Printf( _( "Size%s" ), GetChars( ReturnUnitSymbol( m_UserUnit ) ) );
|
||||
wxStaticText* text = new wxStaticText( parent, -1, msg );
|
||||
|
||||
BoxSizer->Add( text, 0, wxGROW | wxLEFT | wxRIGHT, 5 );
|
||||
|
@ -27,7 +27,6 @@ const wxString RetroFileExtension( wxT( "stf" ) );
|
||||
const wxString FootprintAliasFileExtension( wxT( "equ" ) );
|
||||
|
||||
// Wildcard for schematic retroannotation (import footprint names in schematic):
|
||||
const wxString RetroFileWildcard( _( "KiCad retroannotation files (*.stf)|*.stf" ) );
|
||||
const wxString FootprintAliasFileWildcard( _( "KiCad footprint alias files (*.equ)|*.equ" ) );
|
||||
|
||||
const wxString titleLibLoadError( _( "Library Load Error" ) );
|
||||
|
@ -54,7 +54,7 @@ DIALOG_CVPCB_CONFIG::DIALOG_CVPCB_CONFIG( CVPCB_MAINFRAME* parent ) :
|
||||
m_Config = wxGetApp().GetCommonSettings();
|
||||
|
||||
Init( );
|
||||
title = _( "Project file: " ) + fn.GetFullPath();
|
||||
title.Format( _( "Project file: <%s>" ), GetChars( fn.GetFullPath() ) );
|
||||
SetTitle( title );
|
||||
|
||||
if( GetSizer() )
|
||||
|
@ -60,15 +60,16 @@ void DISPLAY_FOOTPRINTS_FRAME::InitDisplay()
|
||||
|
||||
if( !footprintName.IsEmpty() )
|
||||
{
|
||||
msg = _( "Footprint: " ) + footprintName;
|
||||
msg.Printf( _( "Footprint: %s" ), GetChars( footprintName ) );
|
||||
SetTitle( msg );
|
||||
FOOTPRINT_INFO* module_info = parentframe->m_footprints.GetModuleInfo( footprintName );
|
||||
msg = _( "Lib: " );
|
||||
|
||||
const wxChar *libname;
|
||||
if( module_info )
|
||||
msg += module_info->m_LibName;
|
||||
libname = GetChars( module_info->m_LibName );
|
||||
else
|
||||
msg += wxT( "???" );
|
||||
libname = GetChars( wxT( "???" ) );
|
||||
msg.Printf( _( "Lib: %s" ), libname );
|
||||
|
||||
SetStatusText( msg, 0 );
|
||||
|
||||
|
@ -708,14 +708,20 @@ int SCH_REFERENCE_LIST::CheckAnnotation( wxArrayString* aMessageList )
|
||||
else
|
||||
tmp = wxT( "?" );
|
||||
|
||||
msg.Printf( _( "Item not annotated: %s%s" ),
|
||||
GetChars( componentFlatList[ii].GetRef() ), GetChars( tmp ) );
|
||||
|
||||
if( ( componentFlatList[ii].m_Unit > 0 )
|
||||
&& ( componentFlatList[ii].m_Unit < 0x7FFFFFFF ) )
|
||||
{
|
||||
tmp.Printf( _( " (unit %d)" ), componentFlatList[ii].m_Unit );
|
||||
msg << tmp;
|
||||
msg.Printf( _( "Item not annotated: %s%s (unit %d)\n" ),
|
||||
GetChars( componentFlatList[ii].GetRef() ),
|
||||
GetChars( tmp ),
|
||||
componentFlatList[ii].m_Unit );
|
||||
}
|
||||
else
|
||||
{
|
||||
msg.Printf( _( "Item not annotated: %s%s\n" ),
|
||||
GetChars( componentFlatList[ii].GetRef() ),
|
||||
GetChars( tmp ) );
|
||||
}
|
||||
|
||||
if( aMessageList )
|
||||
@ -736,16 +742,14 @@ int SCH_REFERENCE_LIST::CheckAnnotation( wxArrayString* aMessageList )
|
||||
else
|
||||
tmp = wxT( "?" );
|
||||
|
||||
msg.Printf( _( "Error item %s%s" ), GetChars( componentFlatList[ii].GetRef() ),
|
||||
GetChars( tmp ) );
|
||||
|
||||
tmp.Printf( _( " unit %d and no more than %d parts" ),
|
||||
msg.Printf( _( "Error item %s%s unit %d and no more than %d parts\n" ),
|
||||
GetChars( componentFlatList[ii].GetRef() ),
|
||||
GetChars( tmp ),
|
||||
componentFlatList[ii].m_Unit,
|
||||
componentFlatList[ii].GetLibComponent()->GetPartCount() );
|
||||
msg << tmp;
|
||||
|
||||
if( aMessageList )
|
||||
aMessageList->Add( msg + wxT( "\n" ) );
|
||||
aMessageList->Add( msg );
|
||||
|
||||
error++;
|
||||
break;
|
||||
@ -775,18 +779,23 @@ int SCH_REFERENCE_LIST::CheckAnnotation( wxArrayString* aMessageList )
|
||||
else
|
||||
tmp = wxT( "?" );
|
||||
|
||||
msg.Printf( _( "Multiple item %s%s" ),
|
||||
GetChars( componentFlatList[ii].GetRef() ), GetChars( tmp ) );
|
||||
|
||||
if( ( componentFlatList[ii].m_Unit > 0 )
|
||||
&& ( componentFlatList[ii].m_Unit < 0x7FFFFFFF ) )
|
||||
if( ( componentFlatList[ii].m_Unit > 0 )
|
||||
&& ( componentFlatList[ii].m_Unit < 0x7FFFFFFF ) )
|
||||
{
|
||||
tmp.Printf( _( " (unit %d)" ), componentFlatList[ii].m_Unit );
|
||||
msg << tmp;
|
||||
msg.Printf( _( "Multiple item %s%s (unit %d)\n" ),
|
||||
GetChars( componentFlatList[ii].GetRef() ),
|
||||
GetChars( tmp ),
|
||||
componentFlatList[ii].m_Unit );
|
||||
}
|
||||
else
|
||||
{
|
||||
msg.Printf( _( "Multiple item %s%s\n" ),
|
||||
GetChars( componentFlatList[ii].GetRef() ),
|
||||
GetChars( tmp ) );
|
||||
}
|
||||
|
||||
if( aMessageList )
|
||||
aMessageList->Add( msg + wxT( "\n" ) );
|
||||
aMessageList->Add( msg );
|
||||
|
||||
error++;
|
||||
continue;
|
||||
@ -802,18 +811,23 @@ int SCH_REFERENCE_LIST::CheckAnnotation( wxArrayString* aMessageList )
|
||||
else
|
||||
tmp = wxT( "?" );
|
||||
|
||||
msg.Printf( _( "Multiple item %s%s" ),
|
||||
GetChars( componentFlatList[ii].GetRef() ), GetChars( tmp ) );
|
||||
|
||||
if( ( componentFlatList[ii].m_Unit > 0 )
|
||||
&& ( componentFlatList[ii].m_Unit < 0x7FFFFFFF ) )
|
||||
if( ( componentFlatList[ii].m_Unit > 0 )
|
||||
&& ( componentFlatList[ii].m_Unit < 0x7FFFFFFF ) )
|
||||
{
|
||||
tmp.Printf( _( " (unit %d)" ), componentFlatList[ii].m_Unit );
|
||||
msg << tmp;
|
||||
msg.Printf( _( "Multiple item %s%s (unit %d)\n" ),
|
||||
GetChars( componentFlatList[ii].GetRef() ),
|
||||
GetChars( tmp ),
|
||||
componentFlatList[ii].m_Unit );
|
||||
}
|
||||
else
|
||||
{
|
||||
msg.Printf( _( "Multiple item %s%s\n" ),
|
||||
GetChars( componentFlatList[ii].GetRef() ),
|
||||
GetChars( tmp ) );
|
||||
}
|
||||
|
||||
if( aMessageList )
|
||||
aMessageList->Add( msg + wxT( "\n" ));
|
||||
aMessageList->Add( msg );
|
||||
|
||||
error++;
|
||||
}
|
||||
|
@ -56,18 +56,31 @@ wxString DataBaseGetName( EDA_DRAW_FRAME* frame, wxString& Keys, wxString& BufNa
|
||||
|
||||
if( nameList.empty() )
|
||||
{
|
||||
msg = _( "No components found matching " );
|
||||
|
||||
if( !BufName.IsEmpty() )
|
||||
if( !BufName.IsEmpty() )
|
||||
{
|
||||
msg += _( "name search criteria <" ) + BufName + wxT( "> " );
|
||||
|
||||
if( !Keys.IsEmpty() )
|
||||
msg += _( "and " );
|
||||
if( !Keys.IsEmpty() )
|
||||
{
|
||||
msg.Printf( _( "No components found matching name search criteria '%s' and key search criteria '%s'" ),
|
||||
GetChars( BufName ), GetChars( Keys ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
msg.Printf( _( "No components found matching name search criteria '%s'" ),
|
||||
GetChars( BufName ) );
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if( !Keys.IsEmpty() )
|
||||
{
|
||||
msg.Printf( _( "No components found matching key search criteria '%s'" ),
|
||||
GetChars( Keys ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
msg = _( "No components found matching" );
|
||||
}
|
||||
}
|
||||
|
||||
if( !Keys.IsEmpty() )
|
||||
msg += _( "key search criteria <" ) + Keys + wxT( "> " );
|
||||
|
||||
DisplayInfoMessage( frame, msg );
|
||||
|
||||
|
@ -132,16 +132,19 @@ void DIALOG_ANNOTATE::OnApplyClick( wxCommandEvent& event )
|
||||
|
||||
if( GetResetItems() )
|
||||
{
|
||||
message = _( "Clear and annotate all of the components " );
|
||||
if( GetLevel() )
|
||||
message += _( "Clear and annotate all of the components on the entire schematic?" );
|
||||
else
|
||||
message += _( "Clear and annotate all of the components on the current sheet?" );
|
||||
promptUser = true;
|
||||
}
|
||||
else
|
||||
message = _( "Annotate only the unannotated components " );
|
||||
|
||||
if( GetLevel() )
|
||||
message += _( "on the entire schematic?" );
|
||||
else
|
||||
message += _( "on the current sheet?" );
|
||||
{
|
||||
if( GetLevel() )
|
||||
message += _( "Annotate only the unannotated components on the entire schematic?" );
|
||||
else
|
||||
message += _( "Annotate only the unannotated components on the current sheet?" );
|
||||
}
|
||||
|
||||
message += _( "\n\nThis operation will change the current annotation and cannot be undone." );
|
||||
|
||||
@ -179,11 +182,11 @@ void DIALOG_ANNOTATE::OnClearAnnotationCmpClick( wxCommandEvent& event )
|
||||
{
|
||||
int response;
|
||||
|
||||
wxString message = _( "Clear the existing annotation for " );
|
||||
wxString message;
|
||||
if( GetLevel() )
|
||||
message += _( "the entire schematic?" );
|
||||
message = _( "Clear the existing annotation for the entire schematic?" );
|
||||
else
|
||||
message += _( "the current sheet?" );
|
||||
message = _( "Clear the existing annotation for the current sheet?" );
|
||||
|
||||
message += _( "\n\nThis operation will clear the existing annotation and cannot be undone." );
|
||||
response = wxMessageBox( message, wxT( "" ), wxICON_EXCLAMATION | wxOK | wxCANCEL );
|
||||
|
@ -472,7 +472,7 @@ void DIALOG_BUILD_BOM::CreateSpreadSheetPartsShortList( )
|
||||
if( ( f = wxFopen( m_listFileName, wxT( "wt" ) ) ) == NULL )
|
||||
{
|
||||
wxString msg;
|
||||
msg.Printf( _( "Failed to open file '%s'" ), GetChars(m_listFileName) );
|
||||
msg.Printf( _( "Failed to open file <%s>" ), GetChars(m_listFileName) );
|
||||
DisplayError( this, msg );
|
||||
return;
|
||||
}
|
||||
@ -509,8 +509,7 @@ void DIALOG_BUILD_BOM::CreateSpreadSheetPartsFullList( bool aIncludeSubComponent
|
||||
|
||||
if( ( f = wxFopen( m_listFileName, wxT( "wt" ) ) ) == NULL )
|
||||
{
|
||||
msg = _( "Failed to open file " );
|
||||
msg << m_listFileName;
|
||||
msg.Printf( _( "Failed to open file <%s>" ), GetChars( m_listFileName ) );
|
||||
DisplayError( this, msg );
|
||||
return;
|
||||
}
|
||||
@ -553,8 +552,7 @@ void DIALOG_BUILD_BOM::CreatePartsAndLabelsFullList( bool aIncludeSubComponents
|
||||
|
||||
if( ( f = wxFopen( m_listFileName, wxT( "wt" ) ) ) == NULL )
|
||||
{
|
||||
msg = _( "Failed to open file " );
|
||||
msg << m_listFileName;
|
||||
msg.Printf( _( "Failed to open file <%s>" ), GetChars( m_listFileName ) );
|
||||
DisplayError( this, msg );
|
||||
return;
|
||||
}
|
||||
|
@ -49,18 +49,17 @@ void DIALOG_EDIT_COMPONENT_IN_LIBRARY::initDlg()
|
||||
return;
|
||||
}
|
||||
|
||||
wxString title = _( "Properties for " );
|
||||
|
||||
wxString title;
|
||||
bool isRoot = m_Parent->GetAliasName().CmpNoCase( component->GetName() ) == 0;
|
||||
|
||||
if( !isRoot )
|
||||
{
|
||||
title += m_Parent->GetAliasName() + _( " (alias of " ) + component->GetName() + wxT( ")" );
|
||||
title.Printf( _( "Properties for %s (alias of %s)" ),
|
||||
GetChars( m_Parent->GetAliasName() ),
|
||||
GetChars( component->GetName() ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
title += component->GetName();
|
||||
}
|
||||
title.Printf( _( "Properties for %s" ), GetChars( component->GetName() ) );
|
||||
|
||||
SetTitle( title );
|
||||
InitPanelDoc();
|
||||
@ -453,7 +452,7 @@ void DIALOG_EDIT_COMPONENT_IN_LIBRARY::BrowseAndSelectDocFile( wxCommandEvent& e
|
||||
|
||||
void DIALOG_EDIT_COMPONENT_IN_LIBRARY::DeleteAllFootprintFilter( wxCommandEvent& event )
|
||||
{
|
||||
if( IsOK( this, _( "Ok to Delete FootprintFilter LIST" ) ) )
|
||||
if( IsOK( this, _( "OK to Delete FootprintFilter LIST" ) ) )
|
||||
{
|
||||
m_FootprintFilterListBox->Clear();
|
||||
m_ButtonDeleteAllFootprintFilter->Enable( false );
|
||||
|
@ -194,7 +194,7 @@ void DIALOG_LABEL_EDITOR::InitDialog()
|
||||
m_TextStyle->SetSelection( style );
|
||||
|
||||
wxString units = ReturnUnitSymbol( g_UserUnit, wxT( "(%s)" ) );
|
||||
msg = _( "H" ) + units + _( " x W" ) + units;
|
||||
msg.Printf( _( "H%s x W%s" ), GetChars( units ), GetChars( units ) );
|
||||
m_staticSizeUnits->SetLabel( msg );
|
||||
|
||||
msg = ReturnStringFromValue( g_UserUnit, m_CurrentText->GetSize().x );
|
||||
|
@ -54,7 +54,7 @@ DIALOG_EESCHEMA_CONFIG::DIALOG_EESCHEMA_CONFIG( SCH_EDIT_FRAME* aSchFrame,
|
||||
|
||||
Init();
|
||||
|
||||
msg = _( "from " ) + wxGetApp().GetCurrentOptionFile();
|
||||
msg.Printf( _( "from <%s>" ), GetChars( wxGetApp().GetCurrentOptionFile() ) );
|
||||
SetTitle( msg );
|
||||
|
||||
if( GetSizer() )
|
||||
|
@ -68,12 +68,11 @@ void SCH_EDIT_FRAME::LoadLibraries( void )
|
||||
}
|
||||
|
||||
// Loaded library statusbar message
|
||||
msg = _( "Library " ) + tmp;
|
||||
fn = tmp;
|
||||
|
||||
if( CMP_LIBRARY::AddLibrary( fn, errMsg ) )
|
||||
{
|
||||
msg += _( " loaded" );
|
||||
msg.Printf( _( "Library <%s> loaded" ), GetChars( tmp ) );
|
||||
sortOrder.Add( fn.GetName() );
|
||||
}
|
||||
else
|
||||
@ -84,7 +83,7 @@ void SCH_EDIT_FRAME::LoadLibraries( void )
|
||||
GetChars( fn.GetFullPath() ),
|
||||
GetChars( errMsg ) );
|
||||
DisplayError( this, prompt );
|
||||
msg += _( " error!" );
|
||||
msg.Printf( _( "Library <%s> error!" ), GetChars( tmp ) );
|
||||
}
|
||||
|
||||
PrintMsg( msg );
|
||||
|
@ -336,7 +336,7 @@ bool SCH_EDIT_FRAME::LoadOneEEProject( const wxString& aFileName, bool aIsNew )
|
||||
}
|
||||
|
||||
// Reloading configuration.
|
||||
msg = _( "Ready\nWorking dir: \n" ) + wxGetCwd();
|
||||
msg.Printf( _( "Ready\nWorking dir: <%s>\n" ), GetChars( wxGetCwd() ) );
|
||||
PrintMsg( msg );
|
||||
|
||||
LoadProjectFile( wxEmptyString, false );
|
||||
|
@ -122,7 +122,6 @@ SCH_ITEM* SCH_EDIT_FRAME::FindComponentAndItem( const wxString& aReference,
|
||||
wxPoint pos, curpos;
|
||||
bool centerAndRedraw = false;
|
||||
bool notFound = true;
|
||||
wxString msg;
|
||||
LIB_PIN* pin;
|
||||
SCH_SHEET_LIST sheetList;
|
||||
|
||||
@ -236,28 +235,29 @@ SCH_ITEM* SCH_EDIT_FRAME::FindComponentAndItem( const wxString& aReference,
|
||||
|
||||
/* Print diag */
|
||||
wxString msg_item;
|
||||
msg = aReference;
|
||||
wxString msg;
|
||||
|
||||
switch( aSearchType )
|
||||
{
|
||||
default:
|
||||
case FIND_COMPONENT_ONLY: // Find component only
|
||||
msg_item = _( "component" );
|
||||
break;
|
||||
|
||||
case FIND_PIN: // find a pin
|
||||
msg_item = _( "Pin " ) + aSearchText;
|
||||
msg_item.Printf( _( "pin %s" ), GetChars( aSearchText ) );
|
||||
break;
|
||||
|
||||
case FIND_REFERENCE: // find reference
|
||||
msg_item = _( "Ref " ) + aSearchText;
|
||||
msg_item.Printf( _( "reference %s" ), GetChars( aSearchText ) );
|
||||
break;
|
||||
|
||||
case FIND_VALUE: // find value
|
||||
msg_item = _( "Value " ) + aSearchText;
|
||||
msg_item.Printf( _( "value " ), GetChars( aSearchText ) );
|
||||
break;
|
||||
|
||||
case FIND_FIELD: // find field. todo
|
||||
msg_item = _( "Field " ) + aSearchText;
|
||||
msg_item.Printf( _( "field " ), GetChars( aSearchText ) );
|
||||
break;
|
||||
}
|
||||
|
||||
@ -265,27 +265,19 @@ SCH_ITEM* SCH_EDIT_FRAME::FindComponentAndItem( const wxString& aReference,
|
||||
{
|
||||
if( !notFound )
|
||||
{
|
||||
if( !msg_item.IsEmpty() )
|
||||
msg += wxT( " " ) + msg_item;
|
||||
|
||||
msg += _( " found" );
|
||||
msg.Printf( _( "%s %s found" ),
|
||||
GetChars( aReference ), GetChars( msg_item ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
msg += _( " found" );
|
||||
|
||||
if( !msg_item.IsEmpty() )
|
||||
{
|
||||
msg += wxT( " but " ) + msg_item + _( " not found" );
|
||||
}
|
||||
msg.Printf( _( "%s found but %s not found" ),
|
||||
GetChars( aReference ), GetChars( msg_item ) );
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if( !msg_item.IsEmpty() )
|
||||
msg += wxT( " " ) + msg_item;
|
||||
|
||||
msg += _( " not found" );
|
||||
msg.Printf( _( "Component %s not found" ),
|
||||
GetChars( aReference ) );
|
||||
}
|
||||
|
||||
SetStatusText( msg );
|
||||
|
@ -117,8 +117,8 @@ wxString SCH_BASE_FRAME::SelectComponentFromLibrary( const wxString& aLibname,
|
||||
}
|
||||
}
|
||||
|
||||
/* Ask for a component name or key words */
|
||||
msg.Printf( _( "component selection (%d items loaded):" ), CmpCount );
|
||||
// Ask for a component name or key words
|
||||
msg.Printf( _( "Component selection (%d items loaded):" ), CmpCount );
|
||||
|
||||
DIALOG_GET_COMPONENT dlg( this, aHistoryList, msg, aUseLibBrowser );
|
||||
|
||||
|
@ -131,7 +131,7 @@ bool LIB_ARC::Load( LINE_READER& aLineReader, wxString& aErrorMsg )
|
||||
&m_Convert, &m_Width, tmp, &startx, &starty, &endx, &endy );
|
||||
if( cnt < 8 )
|
||||
{
|
||||
aErrorMsg.Printf( _( "arc only had %d parameters of the required 8" ), cnt );
|
||||
aErrorMsg.Printf( _( "Arc only had %d parameters of the required 8" ), cnt );
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -74,7 +74,7 @@ bool LIB_CIRCLE::Load( LINE_READER& aLineReader, wxString& aErrorMsg )
|
||||
|
||||
if( cnt < 6 )
|
||||
{
|
||||
aErrorMsg.Printf( _( "circle only had %d parameters of the required 6" ), cnt );
|
||||
aErrorMsg.Printf( _( "Circle only had %d parameters of the required 6" ), cnt );
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -149,19 +149,19 @@ void LIB_EDIT_FRAME::OnExportPart( wxCommandEvent& event )
|
||||
{
|
||||
if( createLib )
|
||||
{
|
||||
msg = fn.GetFullPath() + _( " - OK" );
|
||||
msg.Printf( _( "<%s> - OK" ), GetChars( fn.GetFullPath() ) );
|
||||
DisplayInfoMessage( this, _( "This library will not be available \
|
||||
until it is loaded by Eeschema.\n\nModify the Eeschema library configuration \
|
||||
if you want to include it as part of this project." ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
msg = fn.GetFullPath() + _( " - Export OK" );
|
||||
msg.Printf( _( "<%s> - Export OK" ), GetChars( fn.GetFullPath() ) );
|
||||
}
|
||||
} // Error
|
||||
else
|
||||
{
|
||||
msg = _( "Error creating " ) + fn.GetFullName();
|
||||
msg.Printf( _( "Error creating <%s>" ), GetChars( fn.GetFullName() ) );
|
||||
}
|
||||
|
||||
SetStatusText( msg );
|
||||
|
@ -85,13 +85,13 @@ bool LIB_POLYLINE::Load( LINE_READER& aLineReader, wxString& aErrorMsg )
|
||||
|
||||
if( i < 4 )
|
||||
{
|
||||
aErrorMsg.Printf( _( "polyline only had %d parameters of the required 4" ), i );
|
||||
aErrorMsg.Printf( _( "Polyline only had %d parameters of the required 4" ), i );
|
||||
return false;
|
||||
}
|
||||
|
||||
if( ccount <= 0 )
|
||||
{
|
||||
aErrorMsg.Printf( _( "polyline count parameter %d is invalid" ), ccount );
|
||||
aErrorMsg.Printf( _( "Polyline count parameter %d is invalid" ), ccount );
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -107,7 +107,7 @@ bool LIB_POLYLINE::Load( LINE_READER& aLineReader, wxString& aErrorMsg )
|
||||
|
||||
if( p == NULL || sscanf( p, "%d", &pt.x ) != 1 )
|
||||
{
|
||||
aErrorMsg.Printf( _( "polyline point %d X position not defined" ), i );
|
||||
aErrorMsg.Printf( _( "Polyline point %d X position not defined" ), i );
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -115,7 +115,7 @@ bool LIB_POLYLINE::Load( LINE_READER& aLineReader, wxString& aErrorMsg )
|
||||
|
||||
if( p == NULL || sscanf( p, "%d", &pt.y ) != 1 )
|
||||
{
|
||||
aErrorMsg.Printf( _( "polyline point %d Y position not defined" ), i );
|
||||
aErrorMsg.Printf( _( "Polyline point %d Y position not defined" ), i );
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -76,7 +76,7 @@ bool LIB_RECTANGLE::Load( LINE_READER& aLineReader, wxString& aErrorMsg )
|
||||
|
||||
if( cnt < 7 )
|
||||
{
|
||||
aErrorMsg.Printf( _( "rectangle only had %d parameters of the required 7" ), cnt );
|
||||
aErrorMsg.Printf( _( "Rectangle only had %d parameters of the required 7" ), cnt );
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user