[summary] Adjust summary text to setup mode

Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com>
This commit is contained in:
Arnaud Ferraris 2019-04-08 13:43:38 +02:00
parent 866afcfe47
commit 9b77e5b17d

View File

@ -2,6 +2,7 @@
* *
* Copyright 2014-2015, Teo Mrnjavac <teo@kde.org> * Copyright 2014-2015, Teo Mrnjavac <teo@kde.org>
* Copyright 2017, Adriaan de Groot <groot@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 * Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -25,6 +26,7 @@
#include "utils/Retranslator.h" #include "utils/Retranslator.h"
#include "utils/CalamaresUtilsGui.h" #include "utils/CalamaresUtilsGui.h"
#include "utils/Logger.h" #include "utils/Logger.h"
#include "Settings.h"
#include "ViewManager.h" #include "ViewManager.h"
#include <QBoxLayout> #include <QBoxLayout>
@ -46,6 +48,10 @@ SummaryPage::SummaryPage( const SummaryViewStep* thisViewStep, QWidget* parent )
QLabel* headerLabel = new QLabel( this ); QLabel* headerLabel = new QLabel( this );
CALAMARES_RETRANSLATE( CALAMARES_RETRANSLATE(
if ( Calamares::Settings::instance()->isSetupMode() )
headerLabel->setText( tr( "This is an overview of what will happen once you start "
"the setup procedure." ) );
else
headerLabel->setText( tr( "This is an overview of what will happen once you start " headerLabel->setText( tr( "This is an overview of what will happen once you start "
"the install procedure." ) ); "the install procedure." ) );
) )