[finished] Adjust messages to setup mode
Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com>
This commit is contained in:
parent
e3cebd9da9
commit
dddebc98b5
@ -2,6 +2,7 @@
|
||||
*
|
||||
* Copyright 2014-2015, Teo Mrnjavac <teo@kde.org>
|
||||
* Copyright 2017-2018, Adriaan de Groot <groot@kde.org>
|
||||
* Copyright 2019, Collabora Ltd <arnaud.ferraris@collabora.com>
|
||||
*
|
||||
* Calamares is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -33,7 +34,7 @@
|
||||
#include <QProcess>
|
||||
|
||||
#include "Branding.h"
|
||||
|
||||
#include "Settings.h"
|
||||
|
||||
FinishedPage::FinishedPage( QWidget* parent )
|
||||
: QWidget( parent )
|
||||
@ -48,12 +49,33 @@ FinishedPage::FinishedPage( QWidget* parent )
|
||||
|
||||
CALAMARES_RETRANSLATE(
|
||||
ui->retranslateUi( this );
|
||||
ui->mainText->setText( tr( "<h1>All done.</h1><br/>"
|
||||
"%1 has been installed on your computer.<br/>"
|
||||
"You may now restart into your new system, or continue "
|
||||
"using the %2 Live environment." )
|
||||
.arg( *Calamares::Branding::VersionedName )
|
||||
.arg( *Calamares::Branding::ProductName ) );
|
||||
if ( Calamares::Settings::instance()->isSetupMode() )
|
||||
{
|
||||
ui->mainText->setText( tr( "<h1>All done.</h1><br/>"
|
||||
"%1 has been set up on your computer.<br/>"
|
||||
"You may now start using your new system." )
|
||||
.arg( *Calamares::Branding::VersionedName )
|
||||
.arg( *Calamares::Branding::ProductName ) );
|
||||
ui->restartCheckBox->setToolTip( tr ( "<html><head/><body>"
|
||||
"<p>When this box is checked, your system will "
|
||||
"restart immediately when you click on "
|
||||
"<span style=\"font-style:italic;\">Done</span> "
|
||||
"or close the setup program.</p></body></html>" ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
ui->mainText->setText( tr( "<h1>All done.</h1><br/>"
|
||||
"%1 has been installed on your computer.<br/>"
|
||||
"You may now restart into your new system, or continue "
|
||||
"using the %2 Live environment." )
|
||||
.arg( *Calamares::Branding::VersionedName )
|
||||
.arg( *Calamares::Branding::ProductName ) );
|
||||
ui->restartCheckBox->setToolTip( tr ( "<html><head/><body>"
|
||||
"<p>When this box is checked, your system will "
|
||||
"restart immediately when you click on "
|
||||
"<span style=\"font-style:italic;\">Done</span> "
|
||||
"or close the installer.</p></body></html>" ) );
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
@ -106,10 +128,17 @@ void
|
||||
FinishedPage::onInstallationFailed( const QString& message, const QString& details )
|
||||
{
|
||||
Q_UNUSED( details );
|
||||
ui->mainText->setText( tr( "<h1>Installation Failed</h1><br/>"
|
||||
"%1 has not been installed on your computer.<br/>"
|
||||
"The error message was: %2." )
|
||||
.arg( *Calamares::Branding::VersionedName )
|
||||
.arg( message ) );
|
||||
if ( Calamares::Settings::instance()->isSetupMode() )
|
||||
ui->mainText->setText( tr( "<h1>Setup Failed</h1><br/>"
|
||||
"%1 has not been set up on your computer.<br/>"
|
||||
"The error message was: %2." )
|
||||
.arg( *Calamares::Branding::VersionedName )
|
||||
.arg( message ) );
|
||||
else
|
||||
ui->mainText->setText( tr( "<h1>Installation Failed</h1><br/>"
|
||||
"%1 has not been installed on your computer.<br/>"
|
||||
"The error message was: %2." )
|
||||
.arg( *Calamares::Branding::VersionedName )
|
||||
.arg( message ) );
|
||||
setRestartNowEnabled( false );
|
||||
}
|
||||
|
@ -92,7 +92,7 @@
|
||||
<item>
|
||||
<widget class="QCheckBox" name="restartCheckBox">
|
||||
<property name="toolTip">
|
||||
<string><html><head/><body><p>When this box is checked, your system will restart immediately when you click on <span style=" font-style:italic;">Done</span> or close the installer.</p></body></html></string>
|
||||
<string><Restart checkbox tooltip></string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Restart now</string>
|
||||
|
@ -2,6 +2,7 @@
|
||||
*
|
||||
* Copyright 2014-2015, Teo Mrnjavac <teo@kde.org>
|
||||
* Copyright 2017, Adriaan de Groot <groot@kde.org>
|
||||
* Copyright 2019, Collabora Ltd <arnaud.ferraris@collabora.com>
|
||||
*
|
||||
* Calamares is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -29,6 +30,7 @@
|
||||
#include <QVariantMap>
|
||||
|
||||
#include "Branding.h"
|
||||
#include "Settings.h"
|
||||
|
||||
FinishedViewStep::FinishedViewStep( QObject* parent )
|
||||
: Calamares::ViewStep( parent )
|
||||
@ -109,8 +111,12 @@ FinishedViewStep::sendNotification()
|
||||
QString( "Calamares" ),
|
||||
QVariant( 0U ),
|
||||
QString( "calamares" ),
|
||||
tr( "Installation Complete" ),
|
||||
tr( "The installation of %1 is complete." ).arg( *Calamares::Branding::VersionedName ),
|
||||
Calamares::Settings::instance()->isSetupMode()
|
||||
? tr( "Setup Complete" )
|
||||
: tr( "Installation Complete" ),
|
||||
Calamares::Settings::instance()->isSetupMode()
|
||||
? tr( "The setup of %1 is complete." ).arg( *Calamares::Branding::VersionedName )
|
||||
: tr( "The installation of %1 is complete." ).arg( *Calamares::Branding::VersionedName ),
|
||||
QStringList(),
|
||||
QVariantMap(),
|
||||
QVariant( 0 )
|
||||
|
Loading…
Reference in New Issue
Block a user