[welcome] Use welcome message from Config object
This commit is contained in:
parent
4a852facb3
commit
f9f18e5d3b
@ -209,20 +209,7 @@ WelcomePage::setLanguageIcon( QPixmap i )
|
|||||||
void
|
void
|
||||||
WelcomePage::retranslate()
|
WelcomePage::retranslate()
|
||||||
{
|
{
|
||||||
QString message;
|
const QString message = m_conf->genericWelcomeMessage();
|
||||||
|
|
||||||
if ( Calamares::Settings::instance()->isSetupMode() )
|
|
||||||
{
|
|
||||||
message = Calamares::Branding::instance()->welcomeStyleCalamares()
|
|
||||||
? tr( "<h1>Welcome to the Calamares setup program for %1.</h1>" )
|
|
||||||
: tr( "<h1>Welcome to %1 setup.</h1>" );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
message = Calamares::Branding::instance()->welcomeStyleCalamares()
|
|
||||||
? tr( "<h1>Welcome to the Calamares installer for %1.</h1>" )
|
|
||||||
: tr( "<h1>Welcome to the %1 installer.</h1>" );
|
|
||||||
}
|
|
||||||
|
|
||||||
ui->mainText->setText( message.arg( Calamares::Branding::instance()->versionedName() ) );
|
ui->mainText->setText( message.arg( Calamares::Branding::instance()->versionedName() ) );
|
||||||
ui->retranslateUi( this );
|
ui->retranslateUi( this );
|
||||||
|
Loading…
Reference in New Issue
Block a user