From 34651693c18284188942374e539c082dc0bfdb1f Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sun, 5 Apr 2020 13:45:55 +0200 Subject: [PATCH] Altium importer: more about do not mark translatable strings used in debug messages. --- pcbnew/altium2kicadpcb_plugin/altium_parser.cpp | 4 ++-- pcbnew/altium2kicadpcb_plugin/altium_pcb.cpp | 15 +++++++-------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/pcbnew/altium2kicadpcb_plugin/altium_parser.cpp b/pcbnew/altium2kicadpcb_plugin/altium_parser.cpp index 13bc19d8ec..7f927a1601 100644 --- a/pcbnew/altium2kicadpcb_plugin/altium_parser.cpp +++ b/pcbnew/altium2kicadpcb_plugin/altium_parser.cpp @@ -70,7 +70,7 @@ ALTIUM_PARSER::ALTIUM_PARSER( m_subrecord_end = nullptr; if( aEntry->size > std::numeric_limits::max() ) { - THROW_IO_ERROR( _( "stream too large" ) ); + THROW_IO_ERROR( "stream too large" ); } m_size = static_cast( aEntry->size ); @@ -216,7 +216,7 @@ int32_t ALTIUM_PARSER::PropertiesReadKicadUnit( const std::mapGetReference() ) ); } pad->SetAttribute( elem.plated ? PAD_ATTR_T::PAD_ATTRIB_STANDARD : @@ -1529,7 +1528,7 @@ void ALTIUM_PCB::ParsePads6Data( default: case ALTIUM_PAD_HOLE_SHAPE::UNKNOWN: wxLogError( wxString::Format( - _( "Pad '%s' of Footprint %s uses a hole of unknown kind %d" ), + "Pad '%s' of Footprint %s uses a hole of unknown kind %d", elem.name, module->GetReference(), elem.sizeAndShape->holeshape ) ); pad->SetDrillShape( PAD_DRILL_SHAPE_T::PAD_DRILL_SHAPE_CIRCLE ); pad->SetDrillSize( wxSize( elem.holesize, elem.holesize ) ); // Workaround @@ -1574,7 +1573,7 @@ void ALTIUM_PCB::ParsePads6Data( break; case ALTIUM_PAD_SHAPE::UNKNOWN: default: - wxLogError( wxString::Format( _( "Pad '%s' of Footprint %s uses a unknown pad-shape" ), + wxLogError( wxString::Format( "Pad '%s' of Footprint %s uses a unknown pad-shape", elem.name, module->GetReference() ) ); break; } @@ -1661,7 +1660,7 @@ void ALTIUM_PCB::ParseVias6Data( if( !IsCopperLayer( start_klayer ) || !IsCopperLayer( end_klayer ) ) { wxLogError( wxString::Format( - _( "Via from layer %d <-> %d uses non-copper layer. This should not happen." ), + "Via from layer %d <-> %d uses non-copper layer. This should not happen.", elem.layer_start, elem.layer_end ) ); continue; // just assume through-hole instead. }