Fix a few minor I18n issues.

Avoid translation of debug messages.
This commit is contained in:
jean-pierre charras 2018-11-11 10:46:26 +01:00
parent 7783290161
commit 0d3637c2ee
2 changed files with 9 additions and 9 deletions

View File

@ -614,26 +614,26 @@ wxString SCH_LINE::GetSelectMenuText( EDA_UNITS_T aUnits ) const
wxString txtfmt, orient; wxString txtfmt, orient;
if( m_start.x == m_end.x ) if( m_start.x == m_end.x )
orient = _( "Vertical " ); orient = _( "Vertical" );
else if( m_start.y == m_end.y ) else if( m_start.y == m_end.y )
orient = _( "Horizontal " ); orient = _( "Horizontal" );
switch( m_Layer ) switch( m_Layer )
{ {
case LAYER_NOTES: case LAYER_NOTES:
txtfmt = _( "%sGraphic Line from (%s, %s) to (%s, %s)" ); txtfmt = _( "%s Graphic Line from (%s, %s) to (%s, %s)" );
break; break;
case LAYER_WIRE: case LAYER_WIRE:
txtfmt = _( "%sWire from (%s, %s) to (%s, %s)" ); txtfmt = _( "%s Wire from (%s, %s) to (%s, %s)" );
break; break;
case LAYER_BUS: case LAYER_BUS:
txtfmt = _( "%sBus from (%s, %s) to (%s, %s)" ); txtfmt = _( "%s Bus from (%s, %s) to (%s, %s)" );
break; break;
default: default:
txtfmt = _( "%sLine on Unknown Layer from (%s, %s) to (%s, %s)" ); txtfmt = _( "%s Line on Unknown Layer from (%s, %s) to (%s, %s)" );
} }
return wxString::Format( txtfmt, return wxString::Format( txtfmt,

View File

@ -409,8 +409,8 @@ bool ConvertOutlineToPolygon( std::vector<DRAWSEGMENT*>& aSegList, SHAPE_POLY_SE
default: default:
if( aErrorText ) if( aErrorText )
{ {
msg.Printf( _( "Unsupported DRAWSEGMENT type %s." ), msg.Printf( "Unsupported DRAWSEGMENT type %s.",
GetChars( BOARD_ITEM::ShowShape( graphic->GetShape() ) ) ); BOARD_ITEM::ShowShape( graphic->GetShape() ) );
*aErrorText << msg << "\n"; *aErrorText << msg << "\n";
} }
@ -588,7 +588,7 @@ bool ConvertOutlineToPolygon( std::vector<DRAWSEGMENT*>& aSegList, SHAPE_POLY_SE
default: default:
if( aErrorText ) if( aErrorText )
{ {
msg.Printf( _( "Unsupported DRAWSEGMENT type %s." ), msg.Printf( "Unsupported DRAWSEGMENT type %s.",
BOARD_ITEM::ShowShape( graphic->GetShape() ) ); BOARD_ITEM::ShowShape( graphic->GetShape() ) );
*aErrorText << msg << "\n"; *aErrorText << msg << "\n";