Allow translation of simulation error messages.
This commit is contained in:
parent
f00ec339fd
commit
bf1c4e7bcd
|
@ -597,10 +597,8 @@ void SIM_PLOT_FRAME::UpdateTunerValue( const SCH_SHEET_PATH& aSheetPath, const K
|
||||||
|
|
||||||
if( !symbol )
|
if( !symbol )
|
||||||
{
|
{
|
||||||
// TODO: 8.0: wxT() --> _()
|
DisplayErrorMessage( this, _( "Could not apply tuned value(s):" ) + wxS( " " )
|
||||||
DisplayErrorMessage( this, wxString::Format( wxT( "Could not apply tuned value.\n"
|
+ wxString::Format( _( "%s not found" ), aRef ) );
|
||||||
"%s not found." ),
|
|
||||||
aRef ) );
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -611,10 +609,8 @@ void SIM_PLOT_FRAME::UpdateTunerValue( const SCH_SHEET_PATH& aSheetPath, const K
|
||||||
|
|
||||||
if( !tunerParam )
|
if( !tunerParam )
|
||||||
{
|
{
|
||||||
// TODO: 8.0: wxT() --> _()
|
DisplayErrorMessage( this, _( "Could not apply tuned value(s):" ) + wxS( " " )
|
||||||
DisplayErrorMessage( this, wxString::Format( wxT( "Could not apply tuned value.\n"
|
+ wxString::Format( _( "%s is not tunable" ), aRef ) );
|
||||||
"%s is not tunable." ),
|
|
||||||
aRef ) );
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -913,7 +909,7 @@ void SIM_PLOT_FRAME::applyTuners()
|
||||||
|
|
||||||
if( !symbol )
|
if( !symbol )
|
||||||
{
|
{
|
||||||
reporter.Report( wxString::Format( _( "%s not found." ), ref ) );
|
reporter.Report( wxString::Format( _( "%s not found" ), ref ) );
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -921,8 +917,7 @@ void SIM_PLOT_FRAME::applyTuners()
|
||||||
|
|
||||||
if( !item || !item->model->GetTunerParam() )
|
if( !item || !item->model->GetTunerParam() )
|
||||||
{
|
{
|
||||||
// TODO: 8.0: wxT() --> _()
|
reporter.Report( wxString::Format( _( "%s is not tunable" ), ref ) );
|
||||||
reporter.Report( wxString::Format( wxT( "%s is not tunable." ), ref ) );
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -931,9 +926,8 @@ void SIM_PLOT_FRAME::applyTuners()
|
||||||
m_simulator->Command( item->model->SpiceGenerator().TunerCommand( *item, floatVal ) );
|
m_simulator->Command( item->model->SpiceGenerator().TunerCommand( *item, floatVal ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: 8.0: wxT() --> _()
|
|
||||||
if( reporter.HasMessage() )
|
if( reporter.HasMessage() )
|
||||||
DisplayErrorMessage( this, wxT( "Errors applying tuned values.\n\n" ) + errors );
|
DisplayErrorMessage( this, _( "Could not apply tuned value(s):" ) + wxS( "\n\n" ) + errors );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1598,7 +1592,7 @@ void SIM_PLOT_FRAME::onShowNetlist( wxCommandEvent& event )
|
||||||
}
|
}
|
||||||
|
|
||||||
NETLIST_VIEW_DIALOG( wxWindow* parent, const wxString& source) :
|
NETLIST_VIEW_DIALOG( wxWindow* parent, const wxString& source) :
|
||||||
DIALOG_SHIM( parent, wxID_ANY, wxT( "SPICE Netlist" ), wxDefaultPosition,
|
DIALOG_SHIM( parent, wxID_ANY, _( "SPICE Netlist" ), wxDefaultPosition,
|
||||||
wxDefaultSize, wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER )
|
wxDefaultSize, wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER )
|
||||||
{
|
{
|
||||||
wxStyledTextCtrl* textCtrl = new wxStyledTextCtrl( this, wxID_ANY );
|
wxStyledTextCtrl* textCtrl = new wxStyledTextCtrl( this, wxID_ANY );
|
||||||
|
|
Loading…
Reference in New Issue