From 12e38bc5fa62543d92acc32a8f57f2e98d51c2ab Mon Sep 17 00:00:00 2001 From: Baranovskiy Konstantin Date: Tue, 25 Sep 2018 14:17:29 +0300 Subject: [PATCH] Pcbnew: make units in ViaSizeSelectBox translatable. --- pcbnew/tool_pcb_editor.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pcbnew/tool_pcb_editor.cpp b/pcbnew/tool_pcb_editor.cpp index b5c64c3a10..f6f3c50bd7 100644 --- a/pcbnew/tool_pcb_editor.cpp +++ b/pcbnew/tool_pcb_editor.cpp @@ -686,17 +686,17 @@ void PCB_EDIT_FRAME::UpdateViaSizeSelectBox( wxChoice* aViaSizeSelectBox ) double hole = To_User_Unit( MILLIMETRES, viaDimension.m_Drill ); if( hole > 0 ) - mmStr.Printf( wxT( "%.2f / %.2f mm" ), diam, hole ); + mmStr.Printf( _( "%.2f / %.2f mm" ), diam, hole ); else - mmStr.Printf( wxT( "%.2f mm" ), diam ); + mmStr.Printf( _( "%.2f mm" ), diam ); diam = To_User_Unit( INCHES, viaDimension.m_Diameter ) * 1000; hole = To_User_Unit( INCHES, viaDimension.m_Drill ) * 1000; if( hole > 0 ) - milsStr.Printf( wxT( "%.1f / %.1f mils" ), diam, hole ); + milsStr.Printf( _( "%.1f / %.1f mils" ), diam, hole ); else - milsStr.Printf( wxT( "%.1f mils" ), diam ); + milsStr.Printf( _( "%.1f mils" ), diam ); msg.Printf( _( "Via: %s (%s)" ), mmFirst ? mmStr : milsStr, mmFirst ? milsStr : mmStr );