diff --git a/eeschema/sch_plugins/kicad/sch_sexpr_parser.cpp b/eeschema/sch_plugins/kicad/sch_sexpr_parser.cpp index ac122c2c29..22dfa5855e 100644 --- a/eeschema/sch_plugins/kicad/sch_sexpr_parser.cpp +++ b/eeschema/sch_plugins/kicad/sch_sexpr_parser.cpp @@ -97,7 +97,7 @@ void SCH_SEXPR_PARSER::checkpoint() / std::max( 1U, m_lineCount ) ); if( !m_progressReporter->KeepRefreshing() ) - THROW_IO_ERROR( ( "Open cancelled by user." ) ); + THROW_IO_ERROR( _( "Open cancelled by user." ) ); m_lastProgressLine = curLine; } diff --git a/eeschema/sch_plugins/kicad/sch_sexpr_plugin.cpp b/eeschema/sch_plugins/kicad/sch_sexpr_plugin.cpp index f10a4fb13c..22703d106a 100644 --- a/eeschema/sch_plugins/kicad/sch_sexpr_plugin.cpp +++ b/eeschema/sch_plugins/kicad/sch_sexpr_plugin.cpp @@ -304,7 +304,7 @@ void SCH_SEXPR_PLUGIN::loadFile( const wxString& aFileName, SCH_SHEET* aSheet ) m_progressReporter->Report( wxString::Format( _( "Loading %s..." ), aFileName ) ); if( !m_progressReporter->KeepRefreshing() ) - THROW_IO_ERROR( ( "Open cancelled by user." ) ); + THROW_IO_ERROR( _( "Open cancelled by user." ) ); while( reader.ReadLine() ) lineCount++; diff --git a/eeschema/sch_plugins/legacy/sch_legacy_plugin.cpp b/eeschema/sch_plugins/legacy/sch_legacy_plugin.cpp index d9ff884048..fb138dc545 100644 --- a/eeschema/sch_plugins/legacy/sch_legacy_plugin.cpp +++ b/eeschema/sch_plugins/legacy/sch_legacy_plugin.cpp @@ -114,7 +114,7 @@ void SCH_LEGACY_PLUGIN::checkpoint() / std::max( 1U, m_lineCount ) ); if( !m_progressReporter->KeepRefreshing() ) - THROW_IO_ERROR( ( "Open cancelled by user." ) ); + THROW_IO_ERROR( _( "Open cancelled by user." ) ); m_lastProgressLine = curLine; } @@ -286,7 +286,7 @@ void SCH_LEGACY_PLUGIN::loadFile( const wxString& aFileName, SCH_SCREEN* aScreen m_progressReporter->Report( wxString::Format( _( "Loading %s..." ), aFileName ) ); if( !m_progressReporter->KeepRefreshing() ) - THROW_IO_ERROR( ( "Open cancelled by user." ) ); + THROW_IO_ERROR( _( "Open cancelled by user." ) ); m_lineReader = &reader; m_lineCount = 0;