Enable translations for "Open cancelled by user." in some sch plugins.

This commit is contained in:
Alex Shvartzkop 2023-10-05 10:55:52 +03:00
parent e48256d41a
commit f197882f78
3 changed files with 4 additions and 4 deletions

View File

@ -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;
}

View File

@ -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++;

View File

@ -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;