Pcbnew: make units in ViaSizeSelectBox translatable.

This commit is contained in:
Baranovskiy Konstantin 2018-09-25 14:17:29 +03:00 committed by Seth Hillbrand
parent 682cb3abe1
commit 12e38bc5fa
1 changed files with 4 additions and 4 deletions

View File

@ -686,17 +686,17 @@ void PCB_EDIT_FRAME::UpdateViaSizeSelectBox( wxChoice* aViaSizeSelectBox )
double hole = To_User_Unit( MILLIMETRES, viaDimension.m_Drill ); double hole = To_User_Unit( MILLIMETRES, viaDimension.m_Drill );
if( hole > 0 ) if( hole > 0 )
mmStr.Printf( wxT( "%.2f / %.2f mm" ), diam, hole ); mmStr.Printf( _( "%.2f / %.2f mm" ), diam, hole );
else else
mmStr.Printf( wxT( "%.2f mm" ), diam ); mmStr.Printf( _( "%.2f mm" ), diam );
diam = To_User_Unit( INCHES, viaDimension.m_Diameter ) * 1000; diam = To_User_Unit( INCHES, viaDimension.m_Diameter ) * 1000;
hole = To_User_Unit( INCHES, viaDimension.m_Drill ) * 1000; hole = To_User_Unit( INCHES, viaDimension.m_Drill ) * 1000;
if( hole > 0 ) if( hole > 0 )
milsStr.Printf( wxT( "%.1f / %.1f mils" ), diam, hole ); milsStr.Printf( _( "%.1f / %.1f mils" ), diam, hole );
else else
milsStr.Printf( wxT( "%.1f mils" ), diam ); milsStr.Printf( _( "%.1f mils" ), diam );
msg.Printf( _( "Via: %s (%s)" ), mmFirst ? mmStr : milsStr, mmFirst ? milsStr : mmStr ); msg.Printf( _( "Via: %s (%s)" ), mmFirst ? mmStr : milsStr, mmFirst ? milsStr : mmStr );