[plasmalnf] Adjust explanation message to setup mode

Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com>
main
Arnaud Ferraris 6 years ago
parent 9b77e5b17d
commit e3cebd9da9

@ -1,6 +1,7 @@
/* === This file is part of Calamares - <https://github.com/calamares> === /* === This file is part of Calamares - <https://github.com/calamares> ===
* *
* Copyright 2017-2018, Adriaan de Groot <groot@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 * 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
@ -22,6 +23,7 @@
#include "utils/Logger.h" #include "utils/Logger.h"
#include "utils/Retranslator.h" #include "utils/Retranslator.h"
#include "Settings.h"
#include <QAbstractButton> #include <QAbstractButton>
@ -64,11 +66,18 @@ PlasmaLnfPage::PlasmaLnfPage( QWidget* parent )
CALAMARES_RETRANSLATE( CALAMARES_RETRANSLATE(
{ {
ui->retranslateUi( this ); ui->retranslateUi( this );
ui->generalExplanation->setText( tr( if ( Calamares::Settings::instance()->isSetupMode() )
"Please choose a look-and-feel for the KDE Plasma Desktop. " ui->generalExplanation->setText( tr(
"You can also skip this step and configure the look-and-feel " "Please choose a look-and-feel for the KDE Plasma Desktop. "
"once the system is installed. Clicking on a look-and-feel " "You can also skip this step and configure the look-and-feel "
"selection will give you a live preview of that look-and-feel.") ); "once the system is set up. Clicking on a look-and-feel "
"selection will give you a live preview of that look-and-feel.") );
else
ui->generalExplanation->setText( tr(
"Please choose a look-and-feel for the KDE Plasma Desktop. "
"You can also skip this step and configure the look-and-feel "
"once the system is installed. Clicking on a look-and-feel "
"selection will give you a live preview of that look-and-feel.") );
updateThemeNames(); updateThemeNames();
fillUi(); fillUi();
} }

Loading…
Cancel
Save