diff --git a/eeschema/dialogs/dialog_sim_settings.cpp b/eeschema/dialogs/dialog_sim_settings.cpp index f67582653a..78bafc0fa1 100644 --- a/eeschema/dialogs/dialog_sim_settings.cpp +++ b/eeschema/dialogs/dialog_sim_settings.cpp @@ -96,7 +96,7 @@ bool DIALOG_SIM_SETTINGS::TransferDataFromWindow() // At least one source has to be enabled if( !m_dcEnable1->IsChecked() && !m_dcEnable2->IsChecked() ) { - DisplayError( this, wxT( "You need to enable at least one source" ) ); + DisplayError( this, _( "You need to enable at least one source" ) ); return false; } @@ -106,7 +106,7 @@ bool DIALOG_SIM_SETTINGS::TransferDataFromWindow() { if( empty( m_dcSource1 ) ) { - DisplayError( this, wxT( "You need to select DC source (sweep 1)" ) ); + DisplayError( this, _( "You need to select DC source (sweep 1)" ) ); return false; } @@ -136,7 +136,7 @@ bool DIALOG_SIM_SETTINGS::TransferDataFromWindow() { if( empty( m_dcSource2 ) ) { - DisplayError( this, wxT( "You need to select DC source (sweep 2)" ) ); + DisplayError( this, _( "You need to select DC source (sweep 2)" ) ); return false; } diff --git a/eeschema/sim/spice_value.cpp b/eeschema/sim/spice_value.cpp index 18017cc5ba..3296b7b0aa 100644 --- a/eeschema/sim/spice_value.cpp +++ b/eeschema/sim/spice_value.cpp @@ -37,12 +37,12 @@ SPICE_VALUE::SPICE_VALUE( const wxString& aString ) char buf[8] = { 0, }; if( aString.IsEmpty() ) - throw std::invalid_argument( "Spice value cannot be empty" ); + throw std::invalid_argument( _( "Spice value cannot be empty" ) ); LOCALE_IO dummy; // All numeric values should be in "C" locale(decimal separator = .) if( sscanf( (const char*) aString.c_str(), "%lf%7s", &m_base, buf ) == 0 ) - throw std::invalid_argument( "Invalid Spice value string" ); + throw std::invalid_argument( _( "Invalid Spice value string" ) ); if( *buf == 0 ) { @@ -75,7 +75,7 @@ SPICE_VALUE::SPICE_VALUE( const wxString& aString ) case 't': m_prefix = PFX_TERA; break; default: - throw std::invalid_argument( "Invalid unit prefix" ); + throw std::invalid_argument( _( "Invalid unit prefix" ) ); } }