Make a few strings not internationalized, because they must not be translated (html format strings)

This commit is contained in:
jean-pierre charras 2018-07-28 12:47:23 +02:00
parent 9a6fe2b8cd
commit d73db8c73a
2 changed files with 6 additions and 6 deletions

View File

@ -71,7 +71,7 @@ wxString DRC_ITEM::GetErrorText() const
wxString DRC_ITEM::ShowCoord( EDA_UNITS_T aUnits, const wxPoint& aPos ) wxString DRC_ITEM::ShowCoord( EDA_UNITS_T aUnits, const wxPoint& aPos )
{ {
return wxString::Format( _( "@(%s, %s)" ), return wxString::Format( "@(%s, %s)",
MessageTextFromValue( aUnits, aPos.x ), MessageTextFromValue( aUnits, aPos.x ),
MessageTextFromValue( aUnits, aPos.y ) ); MessageTextFromValue( aUnits, aPos.y ) );
} }
@ -94,7 +94,7 @@ wxString DRC_ITEM::ShowHtml( EDA_UNITS_T aUnits ) const
if( m_noCoordinate ) if( m_noCoordinate )
{ {
// omit the coordinate, a NETCLASS has no location // omit the coordinate, a NETCLASS has no location
return wxString::Format( _( "<p><b>%s</b><br>&nbsp;&nbsp; %s" ), errText, mainText ); return wxString::Format( "<p><b>%s</b><br>&nbsp;&nbsp; %s", errText, mainText );
} }
else if( m_hasSecondItem ) else if( m_hasSecondItem )
{ {
@ -104,7 +104,7 @@ wxString DRC_ITEM::ShowHtml( EDA_UNITS_T aUnits ) const
// an html fragment for the entire message in the listbox. feel free // an html fragment for the entire message in the listbox. feel free
// to add color if you want: // to add color if you want:
return wxString::Format( _( "<p><b>%s</b><br>&nbsp;&nbsp; <font color='%s'><a href=''>%s</a></font>: %s<br>&nbsp;&nbsp; %s: %s" ), return wxString::Format( "<p><b>%s</b><br>&nbsp;&nbsp; <font color='%s'><a href=''>%s</a></font>: %s<br>&nbsp;&nbsp; %s: %s",
errText, errText,
hrefColour.GetAsString( wxC2S_HTML_SYNTAX ), hrefColour.GetAsString( wxC2S_HTML_SYNTAX ),
ShowCoord( aUnits, m_MainPosition ), ShowCoord( aUnits, m_MainPosition ),
@ -114,7 +114,7 @@ wxString DRC_ITEM::ShowHtml( EDA_UNITS_T aUnits ) const
} }
else else
{ {
return wxString::Format( _( "<p><b>%s</b><br>&nbsp;&nbsp; <font color='%s'><a href=''>%s</a></font>: %s" ), return wxString::Format( "<p><b>%s</b><br>&nbsp;&nbsp; <font color='%s'><a href=''>%s</a></font>: %s",
errText, errText,
hrefColour.GetAsString( wxC2S_HTML_SYNTAX ), hrefColour.GetAsString( wxC2S_HTML_SYNTAX ),
ShowCoord( aUnits, m_MainPosition ), ShowCoord( aUnits, m_MainPosition ),

View File

@ -482,10 +482,10 @@ void DRAWSEGMENT::GetMsgPanelInfo( EDA_UNITS_T aUnits, std::vector< MSG_PANEL_IT
} }
} }
wxString start = wxString::Format( _( "@(%s, %s)" ), wxString start = wxString::Format( "@(%s, %s)",
MessageTextFromValue( aUnits, GetStart().x ), MessageTextFromValue( aUnits, GetStart().x ),
MessageTextFromValue( aUnits, GetStart().y ) ); MessageTextFromValue( aUnits, GetStart().y ) );
wxString end = wxString::Format( _( "@(%s, %s)" ), wxString end = wxString::Format( "@(%s, %s)",
MessageTextFromValue( aUnits, GetEnd().x ), MessageTextFromValue( aUnits, GetEnd().x ),
MessageTextFromValue( aUnits, GetEnd().y ) ); MessageTextFromValue( aUnits, GetEnd().y ) );