From 26392f80700023b36a4a3177a5e8678a1ed2d5cf Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Thu, 8 Mar 2018 19:32:01 -0800 Subject: [PATCH] Remove spaces from start of common translated words --- common/base_units.cpp | 11 ++++++----- pcbnew/class_text_mod.cpp | 4 ++-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/common/base_units.cpp b/common/base_units.cpp index 125d62b6c6..dbf4760a53 100644 --- a/common/base_units.cpp +++ b/common/base_units.cpp @@ -156,11 +156,12 @@ wxString LengthDoubleToString( double aValue, bool aConvertToMils ) } text.Printf( format, value ); + text += " "; if( g_UserUnit == INCHES ) - text += ( aConvertToMils ) ? _( " mils" ) : _( " in" ); + text += ( aConvertToMils ) ? _( "mils" ) : _( "in" ); else - text += _( " mm" ); + text += _( "mm" ); return text; } @@ -243,15 +244,15 @@ wxString StringFromValue( EDA_UNITS_T aUnit, int aValue, bool aAddUnitSymbol ) switch( aUnit ) { case INCHES: - stringValue += _( " \"" ); + stringValue += " " + _( "\"" ); break; case MILLIMETRES: - stringValue += _( " mm" ); + stringValue += " " + _( "mm" ); break; case DEGREES: - stringValue += _( " deg" ); + stringValue += " " + _( "deg" ); break; case UNSCALED_UNITS: diff --git a/pcbnew/class_text_mod.cpp b/pcbnew/class_text_mod.cpp index 2728d74e5b..6dfd2d1b47 100644 --- a/pcbnew/class_text_mod.cpp +++ b/pcbnew/class_text_mod.cpp @@ -394,9 +394,9 @@ void TEXTE_MODULE::GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList ) aList.push_back( MSG_PANEL_ITEM( _( "Layer" ), GetLayerName(), DARKGREEN ) ); if( IsMirrored() ) - msg = _( " Yes" ); + msg = _( "Yes" ); else - msg = _( " No" ); + msg = _( "No" ); aList.push_back( MSG_PANEL_ITEM( _( "Mirror" ), msg, DARKGREEN ) );