diff --git a/common/wildcards_and_files_ext.cpp b/common/wildcards_and_files_ext.cpp index 3911ce022d..ace1a52e2d 100644 --- a/common/wildcards_and_files_ext.cpp +++ b/common/wildcards_and_files_ext.cpp @@ -55,7 +55,7 @@ const wxString SchematicFileWildcard( _( "KiCad schematic files (*.sch)|*.sch" ) const wxString NetlistFileWildcard( _( "KiCad netlist files (*.net)|*.net" ) ); const wxString GerberFileWildcard( _( "Gerber files (*.pho)|*.pho" ) ); const wxString LegacyPcbFileWildcard( _( "KiCad printed circuit board files (*.brd)|*.brd" ) ); -const wxString EaglePcbFileWildcard( _( "Eagle printed circuit board files (*.brd)|*.brd" ) ); +const wxString EaglePcbFileWildcard( _( "Eagle ver. 6.x XML PCB files (*.brd)|*.brd" ) ); const wxString PcbFileWildcard( _( "KiCad s-expr printed circuit board files (*.kicad_pcb)|*.kicad_pcb" ) ); const wxString FootprintLibFileWildcard( _( "KiCad footprint library file (*.mod)|*.mod" ) ); const wxString PdfFileWildcard( _( "Portable document format files (*.pdf)|*.pdf" ) ); diff --git a/pcbnew/files.cpp b/pcbnew/files.cpp index 0945e1f441..ac50e01bdc 100644 --- a/pcbnew/files.cpp +++ b/pcbnew/files.cpp @@ -172,6 +172,10 @@ the changes?" ) ) ) IO_MGR::PCB_FILE_T pluginType = IO_MGR::LEGACY; + // This is a subset of all PLUGINs which are trusted to be able to + // load a BOARD. Order is subject to change as KICAD plugin matures. + // User may occasionally use the wrong pluging to load a *.brd file, + // but eventually *.kicad_pcb will be more common than legacy *.brd files. static const struct { const wxString& filter; IO_MGR::PCB_FILE_T pluginType; @@ -187,12 +191,12 @@ the changes?" ) ) ) wxString path = wxGetCwd(); wxString fileFilters; - for( unsigned i = 0; i 0 ) fileFilters += wxChar( '|' ); - fileFilters += loaders[i].filter; + fileFilters += wxGetTranslation( loaders[i].filter ); } if( aForceFileDialog && fileName.FileExists() )