[users] Adjust messages to setup mode
Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com>
This commit is contained in:
parent
dddebc98b5
commit
6463e5f83c
@ -2,6 +2,7 @@
|
||||
*
|
||||
* Copyright 2014-2017, Teo Mrnjavac <teo@kde.org>
|
||||
* Copyright 2017-2018, Adriaan de Groot <groot@kde.org>
|
||||
* Copyright 2019, Collabora Ltd <arnaud.ferraris@collabora.com>
|
||||
*
|
||||
* Portions from the Manjaro Installation Framework
|
||||
* by Roland Singer <roland@manjaro.org>
|
||||
@ -31,6 +32,7 @@
|
||||
#include "utils/Logger.h"
|
||||
#include "utils/CalamaresUtilsGui.h"
|
||||
#include "utils/Retranslator.h"
|
||||
#include "Settings.h"
|
||||
|
||||
#include <QBoxLayout>
|
||||
#include <QLabel>
|
||||
@ -106,7 +108,21 @@ UsersPage::UsersPage( QWidget* parent )
|
||||
ui->hostname_extra_label_2->setMaximumWidth( 3 * boxWidth );
|
||||
ui->password_extra_label_3->setMaximumWidth( 3 * boxWidth );
|
||||
|
||||
CALAMARES_RETRANSLATE( ui->retranslateUi( this ); )
|
||||
CALAMARES_RETRANSLATE(
|
||||
ui->retranslateUi( this );
|
||||
if ( Calamares::Settings::instance()->isSetupMode() )
|
||||
{
|
||||
ui->username_extra_label_2->setText( tr( "<small>If more than one person will "
|
||||
"use this computer, you can create multiple "
|
||||
"accounts after setup.</small>" ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
ui->username_extra_label_2->setText( tr( "<small>If more than one person will "
|
||||
"use this computer, you can create multiple "
|
||||
"accounts after installation.</small>" ) );
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
|
@ -197,7 +197,7 @@
|
||||
<string notr="true">font-weight: normal</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string><small>If more than one person will use this computer, you can set up multiple accounts after installation.</small></string>
|
||||
<string><Username extra label 2 text></string>
|
||||
</property>
|
||||
<property name="wordWrap">
|
||||
<bool>true</bool>
|
||||
|
Loading…
Reference in New Issue
Block a user