Do not translate proper nouns and empty strings.

This commit is contained in:
jean-pierre charras 2024-10-02 14:55:53 +02:00
parent 12ef2b8a88
commit c5120cc3a1
2 changed files with 10 additions and 10 deletions

View File

@ -84,13 +84,12 @@ enum PANEL_NETLIST_INDEX
std::map<JOB_EXPORT_SCH_NETLIST::FORMAT, wxString> jobNetlistNameLookup =
{
{ JOB_EXPORT_SCH_NETLIST::FORMAT::KICADSEXPR, _( "KiCad" ) },
{ JOB_EXPORT_SCH_NETLIST::FORMAT::ORCADPCB2, _( "OrcadPCB2" ) },
{ JOB_EXPORT_SCH_NETLIST::FORMAT::ALLEGRO, _( "Allegro" ) },
{ JOB_EXPORT_SCH_NETLIST::FORMAT::PADS, _( "PADS" ) },
{ JOB_EXPORT_SCH_NETLIST::FORMAT::CADSTAR, _( "CadStar" ) },
{ JOB_EXPORT_SCH_NETLIST::FORMAT::SPICE, _( "SPICE" ) },
{ JOB_EXPORT_SCH_NETLIST::FORMAT::SPICEMODEL, _( "SPICE Model" ) }
{ JOB_EXPORT_SCH_NETLIST::FORMAT::KICADSEXPR, wxT( "KiCad" ) },
{ JOB_EXPORT_SCH_NETLIST::FORMAT::ORCADPCB2, wxT( "OrcadPCB2" ) },
{ JOB_EXPORT_SCH_NETLIST::FORMAT::ALLEGRO, wxT( "Allegro" ) },
{ JOB_EXPORT_SCH_NETLIST::FORMAT::PADS, wxT( "CadStar" ) },
{ JOB_EXPORT_SCH_NETLIST::FORMAT::SPICE, wxT( "SPICE" ) },
{ JOB_EXPORT_SCH_NETLIST::FORMAT::SPICEMODEL, wxT( "SPICE Model" ) }
};
/* wxPanels for creating the NoteBook pages for each netlist format: */
@ -279,8 +278,9 @@ DIALOG_EXPORT_NETLIST::DIALOG_EXPORT_NETLIST( SCH_EDIT_FRAME* aEditFrame, wxWind
// custom netlist (external invokes, not supported)
auto it = jobNetlistNameLookup.find( m_job->format );
if( it != jobNetlistNameLookup.end() )
selectedPageFormatName = it->second;
selectedPageFormatName = it->second;
m_buttonAddGenerator->Hide();
m_buttonDelGenerator->Hide();

View File

@ -108,7 +108,7 @@ bool JOBS_RUNNER::RunJobsForOutput( JOBSET_OUTPUT* aOutput, bool aBail )
{
msg = wxT( "|--------------------------------\n" );
msg += wxString::Format( wxT( "| Running job %d, %s" ), jobNum, job.m_job->GetDescription() );
msg += _( "\n" );
msg += wxT( "\n" );
msg += wxT( "|--------------------------------\n" );
m_reporter->Report( msg, RPT_SEVERITY_INFO );
@ -135,7 +135,7 @@ bool JOBS_RUNNER::RunJobsForOutput( JOBSET_OUTPUT* aOutput, bool aBail )
failCount++;
}
msg += _( "\n\n" );
msg += wxT( "\n\n" );
m_reporter->Report( msg, RPT_SEVERITY_INFO );
}