From 31fa3af8d837550406019f5625690a91a1340c9f Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Mon, 14 Jan 2019 13:12:20 +0100 Subject: [PATCH] Fix a minor I18n issue Fixes: lp:1811640 https://bugs.launchpad.net/kicad/+bug/1811640 --- pcbnew/router/router_tool.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pcbnew/router/router_tool.cpp b/pcbnew/router/router_tool.cpp index 8ccb2e27c1..70a1809fe5 100644 --- a/pcbnew/router/router_tool.cpp +++ b/pcbnew/router/router_tool.cpp @@ -254,7 +254,7 @@ protected: if( i == 0 ) msg = _( "Track netclass width" ); else - msg = _( "Track " ) + MessageTextFromValue( units, width, true ); + msg.Printf( _( "Track %s" ), MessageTextFromValue( units, width, true ) ); int menuIdx = ID_POPUP_PCB_SELECT_WIDTH1 + i; Append( menuIdx, msg, wxEmptyString, wxITEM_CHECK ); @@ -271,10 +271,12 @@ protected: msg = _( "Via netclass values" ); else { - msg = _( "Via " ) + MessageTextFromValue( units, via.m_Diameter, true ); - if( via.m_Drill > 0 ) - msg << _(", drill " ) << MessageTextFromValue( units, via.m_Drill, true ); + msg.Printf( _("Via %s, drill %s" ), + MessageTextFromValue( units, via.m_Diameter, true ), + MessageTextFromValue( units, via.m_Drill, true ) ); + else + msg.Printf( _( "Via %s" ), MessageTextFromValue( units, via.m_Diameter, true ) ); } int menuIdx = ID_POPUP_PCB_SELECT_VIASIZE1 + i; @@ -1279,7 +1281,7 @@ int ROUTER_TOOL::onTrackViaSizeChanged( const TOOL_EVENT& aEvent ) sizes.ImportCurrent( board()->GetDesignSettings() ); m_router->UpdateSizes( sizes ); - //Changing the track width can affect the placement, so call the + // Changing the track width can affect the placement, so call the // move routine without changing the destination m_router->Move( m_endSnapPoint, m_endItem );