i18n: try to trick Transifex into recognizing these strings
This commit is contained in:
parent
b703151420
commit
9a9c6da6db
@ -253,42 +253,44 @@ System::doChroot() const
|
|||||||
Calamares::JobResult
|
Calamares::JobResult
|
||||||
ProcessResult::explainProcess( const QObject* parent, int ec, const QString& command, const QString& output, int timeout )
|
ProcessResult::explainProcess( const QObject* parent, int ec, const QString& command, const QString& output, int timeout )
|
||||||
{
|
{
|
||||||
|
#define tr parent->tr
|
||||||
using Calamares::JobResult;
|
using Calamares::JobResult;
|
||||||
|
|
||||||
if ( ec == 0 )
|
if ( ec == 0 )
|
||||||
return JobResult::ok();
|
return JobResult::ok();
|
||||||
|
|
||||||
QString outputMessage = output.isEmpty() ? QStringLiteral("\nThere was no output from the command.")
|
QString outputMessage = output.isEmpty() ? QStringLiteral("\nThere was no output from the command.")
|
||||||
: (parent->tr("\nOutput:\n") + output);
|
: (tr("\nOutput:\n") + output);
|
||||||
|
|
||||||
if ( ec == -1 ) //Crash!
|
if ( ec == -1 ) //Crash!
|
||||||
return JobResult::error( parent->tr( "External command crashed." ),
|
return JobResult::error( tr( "External command crashed." ),
|
||||||
parent->tr( "Command <i>%1</i> crashed." )
|
tr( "Command <i>%1</i> crashed." )
|
||||||
.arg( command )
|
.arg( command )
|
||||||
+ outputMessage );
|
+ outputMessage );
|
||||||
|
|
||||||
if ( ec == -2 )
|
if ( ec == -2 )
|
||||||
return JobResult::error( parent->tr( "External command failed to start." ),
|
return JobResult::error( tr( "External command failed to start." ),
|
||||||
parent->tr( "Command <i>%1</i> failed to start." )
|
tr( "Command <i>%1</i> failed to start." )
|
||||||
.arg( command ) );
|
.arg( command ) );
|
||||||
|
|
||||||
if ( ec == -3 )
|
if ( ec == -3 )
|
||||||
return JobResult::error( parent->tr( "Internal error when starting command." ),
|
return JobResult::error( tr( "Internal error when starting command." ),
|
||||||
parent->tr( "Bad parameters for process job call." ) );
|
tr( "Bad parameters for process job call." ) );
|
||||||
|
|
||||||
if ( ec == -4 )
|
if ( ec == -4 )
|
||||||
return JobResult::error( parent->tr( "External command failed to finish." ),
|
return JobResult::error( tr( "External command failed to finish." ),
|
||||||
parent->tr( "Command <i>%1</i> failed to finish in %2 seconds." )
|
tr( "Command <i>%1</i> failed to finish in %2 seconds." )
|
||||||
.arg( command )
|
.arg( command )
|
||||||
.arg( timeout )
|
.arg( timeout )
|
||||||
+ outputMessage );
|
+ outputMessage );
|
||||||
|
|
||||||
//Any other exit code
|
//Any other exit code
|
||||||
return JobResult::error( parent->tr( "External command finished with errors." ),
|
return JobResult::error( tr( "External command finished with errors." ),
|
||||||
parent->tr( "Command <i>%1</i> finished with exit code %2." )
|
tr( "Command <i>%1</i> finished with exit code %2." )
|
||||||
.arg( command )
|
.arg( command )
|
||||||
.arg( ec )
|
.arg( ec )
|
||||||
+ outputMessage );
|
+ outputMessage );
|
||||||
|
#undef tr
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
Loading…
Reference in New Issue
Block a user