Simulator: Make a few strings translatable.

This commit is contained in:
jean-pierre charras 2016-08-20 17:37:51 +02:00
parent 13cfe74956
commit 2456db3817
1 changed files with 16 additions and 16 deletions

View File

@ -181,13 +181,13 @@ void SIM_PLOT_FRAME::StartSimulation()
if( !m_exporter->Format( &formatter, m_settingsDlg.GetNetlistOptions() ) ) if( !m_exporter->Format( &formatter, m_settingsDlg.GetNetlistOptions() ) )
{ {
DisplayError( this, wxT( "There were errors during netlist export, aborted." ) ); DisplayError( this, _( "There were errors during netlist export, aborted." ) );
return; return;
} }
if( m_exporter->GetSimType() == ST_UNKNOWN ) if( m_exporter->GetSimType() == ST_UNKNOWN )
{ {
DisplayInfoMessage( this, wxT( "You need to select the simulation settings first." ) ); DisplayInfoMessage( this, _( "You need to select the simulation settings first." ) );
return; return;
} }
@ -638,8 +638,8 @@ void SIM_PLOT_FRAME::menuNewPlot( wxCommandEvent& aEvent )
void SIM_PLOT_FRAME::menuOpenWorkbook( wxCommandEvent& event ) void SIM_PLOT_FRAME::menuOpenWorkbook( wxCommandEvent& event )
{ {
wxFileDialog openDlg( this, wxT( "Open simulation workbook" ), "", "", wxFileDialog openDlg( this, _( "Open simulation workbook" ), "", "",
"Workbook file (*.wbk)|*.wbk", wxFD_OPEN | wxFD_FILE_MUST_EXIST ); _( "Workbook file (*.wbk)|*.wbk" ), wxFD_OPEN | wxFD_FILE_MUST_EXIST );
if( openDlg.ShowModal() == wxID_CANCEL ) if( openDlg.ShowModal() == wxID_CANCEL )
return; return;
@ -654,14 +654,14 @@ void SIM_PLOT_FRAME::menuSaveWorkbook( wxCommandEvent& event )
if( !CurrentPlot() ) if( !CurrentPlot() )
return; return;
wxFileDialog saveDlg( this, wxT( "Save simulation workbook" ), "", "", wxFileDialog saveDlg( this, _( "Save simulation workbook" ), "", "",
"Workbook file (*.wbk)|*.wbk", wxFD_SAVE | wxFD_OVERWRITE_PROMPT ); _( "Workbook file (*.wbk)|*.wbk" ), wxFD_SAVE | wxFD_OVERWRITE_PROMPT );
if( saveDlg.ShowModal() == wxID_CANCEL ) if( saveDlg.ShowModal() == wxID_CANCEL )
return; return;
if( !saveWorkbook( saveDlg.GetPath() ) ) if( !saveWorkbook( saveDlg.GetPath() ) )
DisplayError( this, wxT( "There was an error while saving the workbook file" ) ); DisplayError( this, _( "There was an error while saving the workbook file" ) );
} }
@ -670,8 +670,8 @@ void SIM_PLOT_FRAME::menuSaveImage( wxCommandEvent& event )
if( !CurrentPlot() ) if( !CurrentPlot() )
return; return;
wxFileDialog saveDlg( this, wxT( "Save plot as image" ), "", "", wxFileDialog saveDlg( this, _( "Save plot as image" ), "", "",
"PNG file (*.png)|*.png", wxFD_SAVE | wxFD_OVERWRITE_PROMPT ); _( "PNG file (*.png)|*.png" ), wxFD_SAVE | wxFD_OVERWRITE_PROMPT );
if( saveDlg.ShowModal() == wxID_CANCEL ) if( saveDlg.ShowModal() == wxID_CANCEL )
return; return;
@ -687,7 +687,7 @@ void SIM_PLOT_FRAME::menuSaveCsv( wxCommandEvent& event )
const wxChar SEPARATOR = ';'; const wxChar SEPARATOR = ';';
wxFileDialog saveDlg( this, wxT( "Save plot data" ), "", "", wxFileDialog saveDlg( this, _( "Save plot data" ), "", "",
"CSV file (*.csv)|*.csv", wxFD_SAVE | wxFD_OVERWRITE_PROMPT ); "CSV file (*.csv)|*.csv", wxFD_SAVE | wxFD_OVERWRITE_PROMPT );
if( saveDlg.ShowModal() == wxID_CANCEL ) if( saveDlg.ShowModal() == wxID_CANCEL )
@ -849,7 +849,7 @@ void SIM_PLOT_FRAME::onSettings( wxCommandEvent& event )
if( !m_exporter->ProcessNetlist( NET_ALL_FLAGS ) ) if( !m_exporter->ProcessNetlist( NET_ALL_FLAGS ) )
{ {
DisplayError( this, wxT( "There were errors during netlist export, aborted." ) ); DisplayError( this, _( "There were errors during netlist export, aborted." ) );
return; return;
} }
@ -880,7 +880,7 @@ void SIM_PLOT_FRAME::onAddSignal( wxCommandEvent& event )
if( !plotPanel || !m_exporter || plotPanel->GetType() != m_exporter->GetSimType() ) if( !plotPanel || !m_exporter || plotPanel->GetType() != m_exporter->GetSimType() )
{ {
DisplayInfoMessage( this, wxT( "You need to run simulation first." ) ); DisplayInfoMessage( this, _( "You need to run simulation first." ) );
return; return;
} }
@ -927,7 +927,7 @@ void SIM_PLOT_FRAME::onCursorUpdate( wxCommandEvent& event )
if( !plotPanel ) if( !plotPanel )
return; return;
const long SIGNAL_COL = m_cursors->AppendColumn( wxT( "Signal" ), wxLIST_FORMAT_LEFT, size.x / 2 ); const long SIGNAL_COL = m_cursors->AppendColumn( _( "Signal" ), wxLIST_FORMAT_LEFT, size.x / 2 );
const long X_COL = m_cursors->AppendColumn( plotPanel->GetLabelX(), wxLIST_FORMAT_LEFT, size.x / 4 ); const long X_COL = m_cursors->AppendColumn( plotPanel->GetLabelX(), wxLIST_FORMAT_LEFT, size.x / 4 );
wxString labelY1 = plotPanel->GetLabelY1(); wxString labelY1 = plotPanel->GetLabelY1();
@ -1051,14 +1051,14 @@ SIM_PLOT_FRAME::SIGNAL_CONTEXT_MENU::SIGNAL_CONTEXT_MENU( const wxString& aSigna
{ {
SIM_PLOT_PANEL* plot = m_plotFrame->CurrentPlot(); SIM_PLOT_PANEL* plot = m_plotFrame->CurrentPlot();
Append( HIDE_SIGNAL, wxT( "Hide signal" ) ); Append( HIDE_SIGNAL, _( "Hide signal" ) );
TRACE* trace = plot->GetTrace( m_signal ); TRACE* trace = plot->GetTrace( m_signal );
if( trace->HasCursor() ) if( trace->HasCursor() )
Append( HIDE_CURSOR, wxT( "Hide cursor" ) ); Append( HIDE_CURSOR, _( "Hide cursor" ) );
else else
Append( SHOW_CURSOR, wxT( "Show cursor" ) ); Append( SHOW_CURSOR, _( "Show cursor" ) );
Connect( wxEVT_COMMAND_MENU_SELECTED, wxMenuEventHandler( SIGNAL_CONTEXT_MENU::onMenuEvent ), NULL, this ); Connect( wxEVT_COMMAND_MENU_SELECTED, wxMenuEventHandler( SIGNAL_CONTEXT_MENU::onMenuEvent ), NULL, this );
} }