Eagle PCB import: made warning strings translatable

This commit is contained in:
Maciej Suminski 2018-05-29 14:20:14 +02:00
parent d2436e7478
commit c5f56ef573
1 changed files with 9 additions and 9 deletions

View File

@ -865,7 +865,7 @@ void EAGLE_PLUGIN::loadElements( wxXmlNode* aElements )
{ {
if( element->GetName() != "element" ) if( element->GetName() != "element" )
{ {
wxLogMessage( "expected: <element> read <%s>. Skip it", element->GetName() ); wxLogDebug( "expected: <element> read <%s>. Skip it", element->GetName() );
// Get next item // Get next item
element = element->GetNext(); element = element->GetNext();
continue; continue;
@ -959,7 +959,7 @@ void EAGLE_PLUGIN::loadElements( wxXmlNode* aElements )
{ {
if( attribute->GetName() != "attribute" ) if( attribute->GetName() != "attribute" )
{ {
wxLogMessage( "expected: <attribute> read <%s>. Skip it", attribute->GetName() ); wxLogDebug( "expected: <attribute> read <%s>. Skip it", attribute->GetName() );
attribute = attribute->GetNext(); attribute = attribute->GetNext();
continue; continue;
} }
@ -1392,8 +1392,8 @@ void EAGLE_PLUGIN::packageWire( MODULE* aModule, wxXmlNode* aTree ) const
if( IsCopperLayer( layer ) ) // skip copper "package.circle"s if( IsCopperLayer( layer ) ) // skip copper "package.circle"s
{ {
wxLogMessage( wxString::Format( wxLogMessage( wxString::Format(
"Line on copper layer in package %s (%f mm, %f mm) (%f mm, %f mm)." _( "Line on copper layer in package %s (%f mm, %f mm) (%f mm, %f mm)."
"\nMoving to Dwgs.User layer", "\nMoving to Dwgs.User layer" ),
aModule->GetFPID().GetLibItemName().c_str(), w.x1.ToMm(), w.y1.ToMm(), aModule->GetFPID().GetLibItemName().c_str(), w.x1.ToMm(), w.y1.ToMm(),
w.x2.ToMm(), w.y2.ToMm() ) ); w.x2.ToMm(), w.y2.ToMm() ) );
layer = Dwgs_User; layer = Dwgs_User;
@ -1513,7 +1513,7 @@ void EAGLE_PLUGIN::packageText( MODULE* aModule, wxXmlNode* aTree ) const
if( IsCopperLayer( layer ) ) // skip copper texts if( IsCopperLayer( layer ) ) // skip copper texts
{ {
wxLogMessage( wxString::Format( wxLogMessage( wxString::Format(
"Unsupported text on copper layer in package %s.\nMoving to Dwgs.User layer.", _( "Unsupported text on copper layer in package %s.\nMoving to Dwgs.User layer." ),
aModule->GetFPID().GetLibItemName().c_str() ) ); aModule->GetFPID().GetLibItemName().c_str() ) );
layer = Dwgs_User; layer = Dwgs_User;
} }
@ -1627,7 +1627,7 @@ void EAGLE_PLUGIN::packageRectangle( MODULE* aModule, wxXmlNode* aTree ) const
if( IsCopperLayer( layer ) ) // skip copper "package.circle"s if( IsCopperLayer( layer ) ) // skip copper "package.circle"s
{ {
wxLogMessage( wxString::Format( wxLogMessage( wxString::Format(
"Unsupported rectangle on copper layer in package %s.\nMoving to Dwgs.User layer.", _( "Unsupported rectangle on copper layer in package %s.\nMoving to Dwgs.User layer." ),
aModule->GetFPID().GetLibItemName().c_str() ) ); aModule->GetFPID().GetLibItemName().c_str() ) );
layer = Dwgs_User; layer = Dwgs_User;
} }
@ -1670,7 +1670,7 @@ void EAGLE_PLUGIN::packagePolygon( MODULE* aModule, wxXmlNode* aTree ) const
if( IsCopperLayer( layer ) ) // skip copper "package.circle"s if( IsCopperLayer( layer ) ) // skip copper "package.circle"s
{ {
wxLogMessage( wxString::Format( wxLogMessage( wxString::Format(
"Unsupported polygon on copper layer in package %s.\nMoving to Dwgs.User layer.", _( "Unsupported polygon on copper layer in package %s.\nMoving to Dwgs.User layer." ),
aModule->GetFPID().GetLibItemName().c_str() ) ); aModule->GetFPID().GetLibItemName().c_str() ) );
layer = Dwgs_User; layer = Dwgs_User;
} }
@ -1755,7 +1755,7 @@ void EAGLE_PLUGIN::packageCircle( MODULE* aModule, wxXmlNode* aTree ) const
if( IsCopperLayer( layer ) ) // skip copper "package.circle"s if( IsCopperLayer( layer ) ) // skip copper "package.circle"s
{ {
wxLogMessage( wxString::Format( wxLogMessage( wxString::Format(
"Unsupported circle on copper layer in package %s.\nMoving to Dwgs.User layer.", _( "Unsupported circle on copper layer in package %s.\nMoving to Dwgs.User layer." ),
aModule->GetFPID().GetLibItemName().c_str() ) ); aModule->GetFPID().GetLibItemName().c_str() ) );
layer = Dwgs_User; layer = Dwgs_User;
} }
@ -2212,7 +2212,7 @@ PCB_LAYER_ID EAGLE_PLUGIN::kicad_layer( int aEagleLayer ) const
case EAGLE_LAYER::HOLES: case EAGLE_LAYER::HOLES:
default: default:
// some layers do not map to KiCad // some layers do not map to KiCad
wxLogMessage( wxString::Format( "Unsupported Eagle layer '%s' (%d), converted to Dwgs.User layer", wxLogMessage( wxString::Format( _( "Unsupported Eagle layer '%s' (%d), converted to Dwgs.User layer" ),
eagle_layer_name( aEagleLayer ), aEagleLayer ) ); eagle_layer_name( aEagleLayer ), aEagleLayer ) );
kiLayer = Dwgs_User; kiLayer = Dwgs_User;